海之星科技
HY-STAR

專業電源IC供應 ⇒ DC-DC 降壓轉換器, DC-DC 升壓轉換器,LED 驅動 IC,MOSFETs / IGBTs


 The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

cd : Changing Directories



The command for changing directories iscd (change directory). Its usage is cd PATH, where PATH represents the path to the desired directory. This PATH can be an absolute path or a relative path.

Examples:
cd ../.. ← Navigate back two levels in the directory structure (relative path operation).
cd /usr/bin ←Enter the directory " /usr/bin" (using absolute path)
$ cd ~ ←Enter the home directory
$ cd - ←Return to the previous directory

Remember that the cd command only affects the current shell session. When you open a new terminal window or start a new shell session, you'll start in your home directory by default.

For more detailed explanations and examples of the cd command, please refer to the provided link.