How Do I Find My Working Directory in Linux?
Contents

To display the location of your current working directory, enter the command pwd.

How do I find my current working directory?

To get the current working directory use the pwd command.

What is my current working directory Unix?

cd [path] changes the current working directory. ls [path] prints a listing of a specific file or directory; ls on its own lists the current working directory. pwd prints the user’s current working directory. / on its own is the root directory of the whole file system.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest