Last Updated on March 1, 2022 by Admin 3

Navigating the Filesystem M07 Exam

  1. Hidden files are files that begin with what character?

    • A plus (+)
    • An asterisk (*)
    • A period (.)
    • A dash (-)
  2. What option for the ls command will display all files, including hidden files?

    • -a
    • -H
    • -w
    • -L
  3. The top-level directory on a Linux system is represented as:

    • /
    • /root
    • /home
    • C:
  4. Is the following path absolute or relative?

    /etc/ppp

    • Absolute
    • Relative
  5. Is the following path absolute or relative?

    sysadmin/Documents

    • Relative
    • Absolute
  6. Is the following path absolute or relative?

    ../../home/sysadmin

    • Relative
    • Absolute
  7. The tilde (~) is used to represent:

    • The directory above the current working directory
    • Any two single characters
    • A user’s home directory
    • Nothing; it has no special meaning
  8. Which of the following commands can be used to access the home directory of the user “bob” while logged in as root? (choose two)

    • cd &&
    • cd ~bob
    • cd /home/bob
    • ~bob
  9. The double dot (..) can be used with the cd command to represent:

    • The directory above the current working directory
    • A user’s home directory.
    • Nothing; it has no special meaning.
    • Any two single characters
  10. The cd command by itself will take you to what directory?

    • The directory above the current working directory
    • The system root directory
    • Your home directory
    • None; it is not a valid command
  11. What command will allow you to change your current working directory?

    • ls
    • list
    • cd
    • chdir
  12. The double dot (..) can be used to represent the directory…

    • …above the current directory.
    • …with any two single numbers.
    • …below the current directory.
    • …above the current directory only when using the cd command.
  13. The ls command without options or arguments…

    • …generates an error as this command requires arguments.
    • …prompts for a directory to list.
    • …lists the contents of a user’s home directory.
    • …lists the contents of the current directory.
  14. The first character in a long listing (ls -l) indicates:

    • If something is a file, directory, or symbolic link
    • The owner
    • The size
    • The permissions
  15. Which option for the ls command, when used in conjunction with the -l option, will display human-readable file sizes?

    • -M
    • -h
    • -H
    • -S
  16. Which of the following commands will prevent any aliased options to the ls command?

    • /ls
    • %ls
    • `ls
    • \ls
  17. The ls command color codes results by default.

    True or False?

    • True
    • False
  18. The command ls -S will sort files:

    • By size, largest to smallest
    • By size, smallest to largest
    • By number of symlinks, largest to smallest
    • By modification date, newest to oldest
  •