The meaning and usage of linux cd

The meaning and usage of linux cd

What does linux cd mean?

In Linux, cd means change directory.

The 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, the directory is changed to the user's home directory (that is, the directory where the user is when he or she logs in).

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

grammar

cd [dirName]

dirName: The target directory to switch to.

Examples

Jump to /usr/bin/:

cd /usr/bin

Jump to your home directory:

cd ~

Jump to the two levels above the current directory:

cd ../..

You may also be interested in:
  • How to enter directory/folder in Linux without using CD command
  • Detailed explanation of Linux LCD driver writing
  • Detailed explanation of the use of common Linux commands pwd cd
  • How to install SSL certificate under Linux Nginx and configure WordPress CDN
  • Detailed explanation of cd command usage in Linux
  • How to configure a CDN cache server using Squid reverse proxy in Linux
  • Build your own CDN with DNSPod and Squid (Part 3) Install CentOS Linux

<<:  Master-slave synchronization configuration and read-write separation of MySQL database

>>:  JavaScript implements simple date effects

Recommend

Summary of problems encountered when installing docker on win10 home version

Docker download address: http://get.daocloud.io/#...

jQuery implements clicking left and right buttons to switch pictures

This article example shares the specific code of ...

Goodbye Docker: How to Transform to Containerd in 5 Minutes

Docker is a very popular container technology. Th...

How to delete a MySQL table

It is very easy to delete a table in MySQL, but y...

A simple way to change the password in MySQL 5.7

This is an official screenshot. After MySQL 5.7 i...

Some ways to solve the problem of Jenkins integrated docker plugin

Table of contents background Question 1 Error 2 E...

Various transformation effects of HTML web page switching

<META http-equiv="Page-Enter" CONTENT...

How to create a stored procedure in MySQL and add records in a loop

This article uses an example to describe how to c...

Native JavaScript to implement random roll call table

This article example shares the specific code of ...

Summarize the User-Agent of popular browsers

1. Basic knowledge: Http Header User-Agent User A...

Solve the problem of no my.cnf file in /etc when installing mysql on Linux

Today I wanted to change the mysql port, but I fo...

Problems encountered in using MySQL

Here are some problems encountered in the use of ...

How to execute PHP scheduled tasks in CentOS7

Preface This article mainly introduces the releva...