0 votes
in Linux by
Which are the Linux Directory Commands?

1 Answer

0 votes
by

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>

Related questions

+1 vote
asked Feb 20, 2021 in Linux by SakshiSharma
0 votes
asked Jan 7, 2020 in Linux by MBarbieri
...