Difference between revisions of "Cd"


From Knoppix Documentation Wiki
Jump to: navigation, search
(Created new Category:Useful Linux Commands to replace hand editing the page on Main_page)
Line 1: Line 1:
The cd command ('''change directory''') in the [[Unix]] and [[Linux]] operating systems, is used to change the current working directory.
+
The cd command ('''change directory''') in the [[Unix]] and [[linux | Linux]] operating systems, is used to change the current working directory.
  
 
Note that cd has different effects on different operating systems if given with no arguments. For example, if executed without arguments in DOS, the current working directory is printed. If executed without arguments in Unix, then the user is returned to the home directory.
 
Note that cd has different effects on different operating systems if given with no arguments. For example, if executed without arguments in DOS, the current working directory is printed. If executed without arguments in Unix, then the user is returned to the home directory.

Revision as of 07:55, 18 September 2005

The cd command (change directory) in the Unix and Linux operating systems, is used to change the current working directory.

Note that cd has different effects on different operating systems if given with no arguments. For example, if executed without arguments in DOS, the current working directory is printed. If executed without arguments in Unix, then the user is returned to the home directory.

It is a command which is frequently included built into certain shells such as the Bourne shell, tcsh, and bash.