Bookmark this page

Quiz: Locating Files and Directories

Match the following items to their counterparts in the table.

Drag and drop the items to the cell by the correct answer. Each cell should contain one answer. If you wish to change an answer, either drag it to another location, or click Reset to return the quiz to its original settings.

When you have completed the quiz, click Check. Your correct answers will have a blue background and your incorrect answers will be crossed out. If you wish to try again, click Reset. Note: if you have trouble getting the quiz to function a second time, try refreshing your browser. Click Show Solution to see all of the correct answers.

pwd
ls -l ~
cd
cd -
ls -al
cd ../..
cd /bin
cd ..
cd bin
  • Action to accomplishCommand
    List the current user's home directory (long format) in simplest syntax, when it is not the current location.
    ls -l ~
    Return to the current user's home directory.
    cd
    Determine the absolute path name of the current location.
    pwd
    Return to the most previous working directory.
    cd -
    Move up two levels from the current location.
    cd ../..
    List the current location (long format) with hidden files.
    ls -al
    Move to the binaries location, from any current location.
    cd /bin
    Move up to the parent of the current location.
    cd ..
    Move to the binaries location, from the root directory.
    cd bin
  • Revision: rh124-7-1b00421