pwd command
The pwd command prints the working current directory. It stands for Print Working Directory. Now, we print our current directory.
- Enter pwd command to print current directory
- It prints your current directory. (/home/pi)
- Change current directory with cd command
cd /home/pi/Music/
4. Enter pwd command to print current directory.
5. It prints your new current directory. (/home/pi/Music/)
As you can see the above example, it is very easy using pwd command.
In this lesson you’ve learnt how to print the current directory path using pwd command.