Latest web development tutorials

Linux cd Command

Linux command Daquan Linux command Daquan

Linux cd command is used to change the current working directory to dirName (directory arguments).

Wherein dirName notation may be absolute or relative path. If the directory name is omitted, then converted to the user's home directory (that is, the directory where just login).

In addition, the "~" is also expressed as a home directory meaning. "" It is currently located in the directory, ".." indicates that the current directory location to the parent directory.

grammar

cd [dirName]
  • dirName: To switch the destination directory.

Examples

Skip to / usr / bin /:

cd /usr/bin

Skip to their home directory:

cd ~

Jump to the upper layers of the current directory:

cd ../..

Linux command Daquan Linux command Daquan