RHEL Linux - Red Hat System Administration Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Study for the RHEL Linux - Red Hat System Administration Exam. Enhance your knowledge with flashcards and multiple-choice questions, complete with hints and explanations. Prepare for your certification!

Practice this question and more.


Which command allows a user to navigate up to the parent of the current location?

  1. cd../..

  2. cd..

  3. pwd

  4. cd

The correct answer is: cd..

The command that allows a user to navigate up to the parent directory of the current working directory is "cd..". When used, it effectively takes you one level up in the directory hierarchy. For example, if you are in the directory "/home/user/documents" and you execute "cd..", you will move to "/home/user". The command "cd" without any arguments changes the current directory to the home directory of the user, but it does not specify navigating to a parent directory. The command "pwd" is useful for displaying the current working directory, but it does not move you to a different directory. The option "cd../.." resembles a command that attempts to move up two levels in the directory hierarchy, but it is incorrectly formatted—it requires a space between `cd` and `..` to function properly. Therefore, "cd.." is the correct command to achieve the desired action of moving to the parent directory.