Linux Commands

0
32

1PWD

It used to display the location of the current working directory.

Syntax

pwd

[vishal@localhost ~]$ pwd
/home/vishal

2mkdir

It used to  create a new directory under any directory.

Syntax

mkdir <directoryname or path>
[vishal@localhost ~]$ mkdir my_dir
[vishal@localhost ~]$ ls -ltr 
drwxrwxr-x. 2 vishal vishal 6 Mar 25 20:23 my_dir

3rmdir

It used to remove a directory.

Syntax

rmdir <directoryname or path>
[vishal@localhost ~]$ rmdir my_dir
[vishal@localhost ~]$ ls -ltr 
total 0

4Related

Previous articleLinux/Unix Shell, Kernel & Shell Scripts
Next articleC++ STL – Lists
Vishal Bhandari is an admin, editor and writer of this portfolio. He writes about himself, his interests, hobbies, activities. He manages many articles about tech, finance, history and geopolitics on his portfolio.

LEAVE A REPLY

Please enter your comment!
Please enter your name here