Posts

Showing posts from October, 2023

15 Essential Directory Related Commands in Linux

Image
  Tamizh Tech Tutorial Linux Tutorial - Directory Related Commands                  (15 Examples) Linux Commands In this tutorial, you will find the 15 essential directory related commands in the linux / unix. 1. mkdir command This command is used to create a new directory in the linux terminal It takes only one argument which is the name of the directory name Usages Directory creation Sub directory creation with help of -p option Syntax  mkdir directoryname Where, directoryname is a user defined name. Example Sub-directories creation With the help of option -p , we can create multiple sub-directories under a directory. Syntax  mkdir -p existing_directoryname/sd mkdir -p existing_directoryname/{sd1, sd2, sd3, sd4, …sdn} Where, -p indicates parents (parent directory) existing_directoryname is a name of existing directory name sd is a name of sub-directory sd1, sd2,sd3,...sd4 are names of newly created sub directories under the parent directory. Example 2. rmdir command This command