What other mkdir options exist?

Here are some common options for the mkdir command:

  1. -p: Create parent directories as needed (if they do not exist).
  2. -v: Verbose mode; outputs a message for each created directory.
  3. -m: Set the file mode (permissions) for the new directory. For example, mkdir -m 755 newdir sets the permissions to 755.
  4. --help: Display help information about the mkdir command and its options.
  5. --version: Show the version information of the mkdir command.

These options can be combined to customize the behavior of the mkdir command according to your needs.

0 Comments

no data
Be the first to share your comment!