Krishna Logo
qa training in canada now
Divied
Call: Anusha @ 1 (877) 864-8462

 

Latest News
Home Navigation Divied
INTERVIEW Navigation Divied UNIX INTERVIEW QUESTIONS Navigation Divied What is use of 'cd' command?
What Is Use Of 'cd' Command?
What is use of 'cd' command?

 

Ans: 'cd' command is basically used for change directory.
The various use of ‘cd’ command are:
Cd (also chdir in some shells) --> change directory
Cd/ -->changes directory to the system's root
Cd... -->goes up one directory level
Cd. /. -->goes up two directory levels
Cd /full/path/name/from/root --> changes directory to absolute path named (note the leading slash)
Cd path/from/current/location --> changes directory to path relative to current location (no leading slash)
Cd ~username/directory --> changes directory to the named username's indicated directory
 

Shadow Bottom
 
 
© 2005 -