Working on Linux Directory - Basic Commands
Working on Directories in Linux: In this articles we gonna see some useful commands while working on files and directory in a Linux system. Directory: The directory is the place where files and subdirectories are created. While coming in GUI we call a directory as a folder. A directory can hold more sub-directories or sub-folders inside it. In Linux the / is known as the root directory where everything on your Linux system is located under this directory. Creating directory: To create a directory use mkdir command, user@ljunix:/home$ mkdir Dir1 user@ljunix:/home$ mkdir Dir2 The above commands creates two directories as Dir1 and Dir2 , Creating Consecutive directory: To create consecutive directory use -p command with mkdir, this allows you to create sub-directory inside a directory. user@ljunix:/home$ mkdir -p Dir1/Subdir1/Subdir2/Subdir2 The above command creates all subdirectories in a single command. ...