Home  >  Article  >  Operation and Maintenance  >  What does linux cd mean?

What does linux cd mean?

藏色散人
藏色散人Original
2019-05-18 11:31:0516584browse

cd in Linux means "change directory", which means switching directories. The cd command is used to switch the current working directory to dirName. Its syntax is "cd [dirName]", and the parameter "dirName" indicates the target to be switched. Table of contents.

What does linux cd mean?

What does linux cd mean?

cd in Linux means change directory, which means switching directories.

Linux cd command is used to switch the current working directory to dirName (directory parameter).

The dirName representation can be an absolute path or a relative path. If the directory name is omitted, it will change to the user's home directory (that is, the directory where the user just logged in).

In addition, "~" also means the home directory, "." means the current directory, and ".." means the directory above the current directory.

Syntax

cd [dirName]

dirName: The target directory to be switched.

Example

Jump to /usr/bin/ :

cd /usr/bin

Jump to your home directory:

cd ~

Jump to Two levels above the current directory:

cd ../..

The above is the detailed content of What does linux cd mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn