$ ./guess_the_languageLinux CLI
Linux CLI · easy · #2

What does the -p flag do here?

mkdir -p projects/web/assets
  1. Creates any missing parent directories
  2. Prints a message for each directory made
  3. Sets custom permissions on the dirs
  4. Fails if a parent directory is absent
mkdir -p builds the whole path, creating projects and web if needed, and does not complain if they already exist.
Play Linux CLI ▸