How to get current directory Linux? You can use the PWD command. It will print the full system path of the current working directory. The PWD command is a command-line utility for printing the current working directory.

Example for get current directory Linux:

How to get current directory Linux? pwd command
How to get current directory Linux.

In a bash shell script, you can get the current directory linux by using the code below:

echo $dir

Linux pwd command – help:

Linux pwd command help


Leave a Reply

Your email address will not be published. Required fields are marked *

Sign In


Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.