Which of the following tools would you use to accomplish the task?

You work as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based
network. You are a root user on the Red Hat operating system. You want to know which directory
you are currently working on. Which of the following tools would you use to accomplish the task?

You work as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based
network. You are a root user on the Red Hat operating system. You want to know which directory
you are currently working on. Which of the following tools would you use to accomplish the task?

A.
ls

B.
pwd

C.
mv

D.
cd

Explanation:

The pwd command-line utility is used to display the current working directory.
What is the pwd command?
The pwd command prints the complete pathname of the current working directory to the standard
output.
pwd [ -L | -P]
The options are described as follows:
OptionDescription
-LDisplays the logical current working directory.
-PDisplays the physical current working directory.
If no options are specified, the -L option is assumed.
Answer option A is incorrect. The ls command lists the contents of the current directory or the
specified directory.
Answer option D is incorrect. The cd command with no argument is used to move to your home
directory.
Answer option C is incorrect. The mv command is used to move and/or rename files and
directories.



Leave a Reply 0

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