To use the pwd command in a Linux terminal, follow these simple steps:
-
Open the Terminal: Look for the terminal icon on your desktop and click to open it.
-
Type the Command: At the command prompt, simply type
pwd. -
Press Enter: Hit the Enter key to execute the command.
Example:
pwd
Output:
You will see the current working directory displayed, such as:
/home/user/documents
That's it! The pwd command will always show you your current location in the filesystem. If you have any more questions, feel free to ask!
