How to use cd command in Linux

Опубликовано: 17 Июль 2026
на канале: Technical Junction
2,495
55

Linux Tutorial | In this video you will learn how to change the directory by using cd command in Linux & Unix with different examples.

cd command is a Unix/Linux command which is used to change the directory or folder of terminal's shell.

cd : Typing this command by itself returns you to your home
directory.

cd ~ : Takes you to your home directory.

cd / : Change to root directory.

cd .. : Change to parent directory of your current working directory or to go one folder up from your current working directory.

cd ../.. : To go two folder up from current working directory.

cd technical_Junction : Change to sub-directory technical_Junction .

cd /home/youtuber/technical_Junction : Change the directory with absolute path .

cd - : Toggle between current working directory and previous
working directory.

You can also watch following videos regarding Linux command.

1. How to use date command in Linux

   • How to use date command  

2. How to use cal command in Linux.

   • How to use cal command in Linux  

3. How to use who & whoami command in Linux.

   • How to use who & whoami command in Linux  

4. How to use pwd command in Linux.

   • How to use pwd command in Linux