$PWD is an environment variable that stores the path to the current directory. This
variable can be printed using the
echo
command.
There are two flags for this command.
pwd -L is a command that prints the symbolic path.
pwd -P: Prints the actual path. Let’s see an illustration for the command.
PS Command
This is an important terminal command in Linux that will allow you to check what
processes are currently executing on your system. Processes are just running instances
of the operating system's applications.
It's a simple yet powerful method for evaluating system resources, and it allows you to
control system operations directly from the terminal. This command also prints the
process's PID, which can be used to terminate the process.
This is one of the simplest and most efficient Linux monitoring tools available to Linux
enthusiasts.
Locate Command
You may use the
locate
command to hunt for a file by name.
It functions similarly to the search command, except that it operates in the background.
The
locate
command analyses the database, whereas the
find
command explores the
file system.
The
locate
command can be used from any location inside the operating system.
It's more efficient than using the
search
command.
If you wish to use the
locate
command to find the file, keep your database up to date.