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

CSS3 uses var() and calc() functions to achieve animation effects

Preview knowledge points. Animation Frames Backgr...

How to install iso file in Linux system

How to install iso files under Linux system? Inst...

Summary of commonly used SQL in MySQL operation tables

1. View the types of fields in the table describe...

Ubuntu 20.04 turns on hidden recording noise reduction function (recommended)

Recently, when using kazam in Ubuntu 20.04 for re...

MySQL spatial data storage and functions

Table of contents 1. Data Type 1. What is MySQL s...

CSS transparent border background-clip magic

This article mainly introduces the wonderful use ...

Vue installation and use

Table of contents 1. Vue installation Method 1: C...

Examples of using MySQL covering indexes

What is a covering index? Creating an index that ...

JavaScript basics of this pointing

Table of contents this Method In the object Hidde...

Docker pull image and tag operation pull | tag

I re-read the source code of the Fabric project a...

Nginx proxy forwarding implementation code uploaded by Alibaba Cloud OSS

Preface Because the mini program upload requires ...