Wednesday, 18 May 2011

The pwd,mkdir,rmdir.

PWD:

The 'pwd' command is used to display or print the present working directory.

Eg: pwd


/home/parthi/Documents/


MKDIR:

The 'mkdir' command is used to create a new directory.

Eg: mkdir new

A new directory named 'new' will be created.

you can also create multiple new directories.

Eg: mkdir hello abcd xyz

new directories named 'hello' ,'abcd' , 'xyz' will be created.

RMDIR:

The 'rmdir' command is used to delete or remove empty directory.

Eg: rmdir new

this deletes the directory called 'new' if its empty.

Eg: rmdir hello abcd xyz

multiple directories can also be deleted like this.


No comments:

Post a Comment