Linux Essentials Chapter 6 Exam

Last Updated on April 29, 2018 by Admin

Linux Essentials Chapter 6 Exam Answer

  1. Question ID 47

    Hidden files are files that begin with what character?

    • A dash (-)
    • A plus (+)
    • A period (.)
    • An asterisk (*)
  2. Question ID 48

    What option for the ls command will display all files, including hidden files?

    • -L
    • -H
    • -w
    • -a
  3.  

  4. Question ID 49

    The top-level directory on a Linux system is represented as:

    • /
    • C:
    • /home
    • /root
  5. Question ID 50

    Is the following path absolute or relative?

    /etc/ppp

    • Absolute
    • Relative
  6.  

  7. Question ID 51

    Is the following path absolute or relative?

    sysadmin/Documents

    • Relative
    • Absolute
  8. Question ID 52

    Is the following path absolute or relative?

    ../../home/sysadmin

    • Relative
    • Absolute
  9.  

  10. Question ID 53

    The tilde (~) is used to represent:

    • A user’s home directory
    • Any two single characters
    • The directory above the current working directory
    • Nothing; it has no special meaning
  11. Question ID 54

    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 /home/bob
    • cd ~bob
    • cd &&
    • ~bob
  12.  

  13. Question ID 55

    The double dot (..) can be used with the cd command to represent:

    • The directory above the current working directory
    • Nothing; it has no special meaning.
    • Any two single characters
    • A user’s home directory.
  14. Question ID 56

    The cd command by itself will take you to what directory?

    • The system root directory
    • None; it is not a valid command
    • The directory above the current working directory
    • Your home directory
  15.  

  16. Question ID 57

    What command will allow you to change your current working directory?

    • chdir
    • list
    • cd
    • ls
  17. Question ID 58

    The double dot (..) can be used to represent the directory…

    • …above the current directory.
    • …below the current directory.
    • …with any two single numbers.
    • …above the current directory only when using the cd command.
  18. Question ID 59

    The ls command without options or arguments…

    • …generates an error as this command requires arguments.
    • …lists the contents of the current directory.
    • …prompts for a directory to list.
    • …lists the contents of a user’s home directory.
  19.  

  20. Question ID 60

    The first character in a long listing (ls -l) indicates:

    • The permissions
    • If something is a file, directory, or symbolic link
    • The owner
    • The size
  21. Question ID 61

    Which option for the ls command, when used in conjunction with the -l option, will display human-readable sizes?

    • -M
    • -S
    • -H
    • -h
  22.  

  23. Question ID 62

    Which of the following commands will prevent any aliased options to the ls command?

    • /ls
    • %ls
    • %ls
    • ls
  24. Question ID 63

    The ls command color codes results by default.

    True or False?

    • True
    • False
  25. Question ID 64

    The command ls -S will sort files:

    • By size, smallest to largest
    • By number of symlinks, largest to smallest
    • By modification date, newest to oldest
    • By size, largest to smallest
  26. Question ID 65

    When using the cp command, you must provide both a source and a destination.

    True or False?

    • True
    • False
  27. Question ID 66

    Which option(s) can be used to prevent cp from overwriting an existing file?

    (choose two)

    • -n
    • -N
    • -z
    • -i
  28. Question ID 67

    The command rm -r will…

    • remove a directory along with any files or subdirectories.
    • prompt for each confirmation before deleting each file in a directory.
    • remove only empty directories.
    • generate an error; -r isn’t a valid option.
  29. Question ID 68

    Which option can be used with the rm command to prompt before deleting?

    • -i
    • I
    • -P
    • A
  30. Question ID 69

    The rm command can delete multiple files at once.

    True or False?

    • True
    • False
  31. Question ID 70

    Which of the following commands can be used to rename a file?

    • name
    • mv
    • rn
    • cp
  32. Question ID 72

    The touch command can be used to:

    (choose two)

    • Create new files
    • Change a file’s name
    • Update the time stamp of existing files
    • Change ownership of a file