cd command

The cd command changes the working directory. You can go to any directory with this command at the terminal. Let’s look at our example.

  1. Change your directory using below command.

cd /home/pi/Pictures/

Your current directory is /home/pi/Pictures after above command

2. Go to Documents directory using below command.

cd /home/pi/Documents/

Your current directory is /home/pi/Documents/ after above command

3. Go to your home directory using cd command

cd

Now, your are at your home directory.

In this lesson you’ve learnt the cd command and you’re free to go to any directory.