Create Linux Subdirectories with mkdir

To create a subdirectory in a Linux system, you can use the mkdir command. Here is the basic syntax for creating a subdirectory:

mkdir <directory_name>

For example, to create a subdirectory named “subdir” in the current directory, you can execute the following command:

mkdir subdir

To create a subdirectory in a specific path, you can add the path in the command.

mkdir /path/to/parent_dir/subdir

With this method, you can easily create subdirectories in a Linux system.

bannerAds