Cart 0
No products in the cart.


How to use the Pwd command in Linux ?

This guide covers the pwd command in different Linux distributions. 

 

How to fix the "Pwd Command Not Found" Error on Any Linux Distribution ?

The "Pwd command not found" error is a common problem that Linux users may encounter when trying to run the pwd command. This error occurs when the pwd command is not installed on the system or the installation is corrupted. Fortunately, this error is easy to fix. Below are the steps for fixing this error on any Linux distribution.

 

1. Check if the pwd command is installed

To do this, open a terminal window and type in the command "whereis pwd". If the command is installed, the system will display the path to the pwd executable.

 

2. If the pwd command is not installed, you will need to install it 

To do this, you will need to use your Linux distribution's package manager. 

On Ubuntu and other Debian-based systems, use the command "sudo apt-get install coreutils" to install the pwd command. 

On Red Hat and other RPM-based systems, use the command "sudo yum install coreutils" to install the pwd command.

 

3. If the pwd command is already installed but the error persists, you may need to reinstall the package. 

To do this, you will need to use your Linux distribution's package manager. 

On Ubuntu and other Debian-based systems, use the command "sudo apt-get --reinstall install coreutils" to reinstall the pwd command. 

On Red Hat and other RPM-based systems, use the command "sudo yum reinstall coreutils" to reinstall the pwd command.

 

4. If the error still persists, try running the command with sudo.

The pwd command may require root privileges to run properly. 

To do this, open a terminal window and type in the command "sudo pwd".

 

 



icon

Sign up to Newsletter

...and receive a free support ticket.