Linux Essentials 2.0 Chapter 7 Exam Answers

Last Updated on October 17, 2019 by Admin

NDG Linux Essentials 2.0 Chapter 7 Exam Answers

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

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

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

    • /home
    • C:
    • /root
    • /
  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

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

    • Any two single characters
    • Nothing; it has no special meaning
    • The directory above the current working directory
    • A user’s home directory
  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 /home/bob
    • cd ~bob
    • ~bob
  9. The double dot (..) can be used with the cd command to represent:

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

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

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

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

    • …prompts for a directory to list.
    • …generates an error as this command requires arguments.
    • …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:

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

    • -S
    • -H
    • -h
    • -M
  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 modification date, newest to oldest
    • By size, largest to smallest
    • By number of symlinks, largest to smallest
    • By size, smallest to largest