What does linux cd mean?

藏色散人
Release: 2020-09-17 10:18:32
Original
16812 people have browsed it

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]
Copy after login

dirName: The target directory to be switched.

Example

Jump to /usr/bin/ :

cd /usr/bin
Copy after login

Jump to your home directory:

cd ~
Copy after login

Jump to Two levels above the current directory:

cd ../..
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template