Linux command that creates a new subdirectory

Transfered from Linux Config Disqus comments:

Question:
Give the exact command that creates a new subdirectory called TEMP?

Answer:
Creating directories on a linux system is done by use of mkdir command.
NOTE: linux is case sensitive. Therefore, temp and TEMP are two distinct directories.

mkdir TEMP

The command above will create a directory called TEMP within your current working directory.

mkdir /tmp/TEMP

will create a TEMP directory as a subdirectory of /tmp

mkdir -p /tmp/test/TEMP

will create a test as a subdirectory of /tmp/ and TEMP directory as a subdirectory of /tmp/test

1 Like