To navigate the file system you will need to know a few commands. To locate where you are in the file system enter the following.
This will display you Present Working Directory:
Enter the following.
$ cd /
Enter the pwd command.
The terminal will display a / meaning that you are at the root of the file system.
Enter cd home
This command will change the directory to the home folder. Enter the pwd command to confirm this.
Enter the following command.
$ cd pi
Confirm the directory by enter the pwd command.
Move back a directory by enter the following.
This will move back a directory. Make sure you have a space after the cd command. Confirm this by entering the pwd command.
You can also jump directly down the file system without going into each folder.
$ cd /
Followed by this.
$ cd /home/pi
This command will jump directly down to the pi folder.
Next Raspberry Pi Week 4 – Day 5 File Manipulation >>