Horje

How to view the current working directory on your terminal

The pwd command allows you to print the current working directory on your terminal. It’s a very basic command and solves its purpose very well.

Now, your terminal prompt should usually have the complete directory anyway. But in case it doesn’t, this can be a quick command to see the directory that you’re in. Another application of this command is when creating scripts where this command can allow us to find the directory where the script has been saved.

Following command is an example to view filename.txt from root diretory.

Example: COMMAND
pwd > filename.txt



Single Articles
How to show folder in Terminal at Linux ServerServer Tutorial Tutorial
How to view the current working directory on your terminalServer Tutorial Tutorial
How to move from one directory to another directory in Linux CommandServer Tutorial Tutorial
How to create a directory in Linux CommandServer Tutorial Tutorial


Related Articles
How to change VPS/Dedicated Server root password using Command Server Tutorial Tutorial
How to restart Mysql of DirectAdmin Panel Server Tutorial Tutorial
How to Install VestaCP on Ubuntu VPS/Dedicated Server Server Tutorial Tutorial
All Important Command to Manage a Server for Putty/Bidvise Server Tutorial Tutorial

Type:
Command
Category:
Command
Sub Category:
Server Tutorial Tutorial
Uploaded by:
Admin



Share on: