Google News
logo
Linux - Interview Questions
Which are the Linux Directory Commands?
There are 5 main Directory Commands in Linux :

* pwd : Displays the path of the present working directory.

Syntax : $ pwd


* ls : Lists all the files and directories in the present working directory.

Syntax: $ ls


* cd : Used to change the present working directory.

Syntax : $ cd <path to new directory>


* mkdir : Creates a new directory

Syntax: $ mkdir <name (and path if required) of new directory>


* rmdir : Deletes a directory

Syntax : $ rmdir <name (and path if required) of directory>
Advertisement