linux command

cd – changes directory


cd [directory]

directory Name of the directory user wishes to enter.
cd .. Used to go back one directory on the majority of all Unix shells. It is important that the space be between the cd and the ..
cd – When in a Korn shell to get back one directory used to go back one directory.


cd hope

The above example would go into the hope directory if it exists.

cd ../var/html/home/users

The above example would go back one directory and then go into the var/html/home/users directory.

cd ../../

Next, the above example would go back two directories.


Finally, typing just cd alone will move you into the home directory. If you’re familiar with MS-DOS and how typing cd alone prints the working directory. Linux and Unix users can print the working directory by using the pwd command

dir ->Displays a list of files and subdirectories in a directory.


DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4]

unzip -> unzip file

Syntax :

unzip <filename(> -d /path/for/destination

chattr -> change attribute of file


chattr -i <filename>

rm -> Delete  a file without confirmation (by default)


rm -rvf <directory name> –> completely remove directory with



Useful links:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s