Introduction to Linux I Chapter 5 Exam

Last Updated on April 2, 2018 by Admin

Introduction to Linux I Chapter 5 Exam Answer

  1. Question ID 474

    The ls command will list which of the following by default?

    • The root directory
    • The current directory
    • Nothing; it requires an argument
    • User’s home directory
  2. Question ID 475

    User home directories often contain hidden files.

    True or False?

    • True
    • False
  3.  

  4. Question ID 476

    Use the ___ option to display hidden files with the ls command.

    • -A
    • -h
    • -D
    • -a
  5. Question ID 477

    The ls command can list the contents of only one directory at a time.

    True or False?

    • True
    • False
  6. Question ID 478

    The “.” in an ls listing represents:

    • Directories that can’t be accessed
    • Hidden files
    • The end of the command output
    • The current directory
  7.  

  8. Question ID 479

    To perform a “long listing” to show file details, use which of the following commands:

    • ls -D
    • ls -L
    • ll
    • ls -l
  9. Question ID 480

    Using the touch command and specifying a nonexistent file…

    • prompts the user to create a file.
    • creates a blank file with that name.
    • generates an error.
    • does nothing.
  10. Question ID 482

    The touch command can be used to change a file’s time-stamp to something other than the current system time.

    True or False?

    • True
    • False
  11. Question ID 483

    By default, what does the cp command preserve from the original file?

    • The timestamps
    • The name
    • The permissions and ownership
    • The contents
  12.  

  13. Question ID 484

    To copy the contents of a directory, use the following option(s) for the cp command:

    (choose two)

    • -A
    • -r
    • -d
    • -R
  14. Question ID 485

    To maintain timestamps when using the cp command, use:

    • -T
    • -A
    • -a
    • -t
  15. Question ID 486

    The mv command can be used to move more than one file at a time.

    True or False?

    • True
    • False
  16. Question ID 487

    The mv command will rename a file when a new directory is not specified.

    True or False?

    • True
    • False
  17. Question ID 488

    Which option for the rm command will cause it to prompt before deleting files?

    • -I
    • -p
    • -i
    • -a
  18. Question ID 489

    Which option(s) for the rm command can be used to delete directories that contain files?

    (choose two)

    • -r
    • -R
    • -A
    • -D
  19. Question ID 490

    The rm command can be used with glob characters to delete multiple files.

    True or False?

    • True
    • False
  20. Question ID 491

    The mkdir command cannot be used to:

    • Delete a directory
    • Create new directories
    • Create multiple directories at once
    • Create sub-directories in different parent directories
  21. Question ID 492

    Which mkdir option should be used to create parent directories (that don’t already exist) along with the specified directory?

    • -F
    • -d
    • -A
    • -p
  22. Question ID 493

    The rmdir command can be used to delete directories and their contents.

    True or False?

    • True
    • False
  23. Question ID 494

    The ls-l command output will not include:

    • File permissions
    • Timestamp
    • Hard link count
    • File contents
  24. Question ID 495

    Which character at the beginning of a long listing indicates a directory?

    • l
    • c
    • d
  25. Question ID 496

    Which character at the beginning of a long listing indicates a regular file?

    • l
    • d
    • c
  26. Question ID 497

    Which character at the beginning of a long listing indicates a symbolic link?

    • d
    • c
    • l
  27. Question ID 498

    The names of hidden files begin with the ___ character.

    • *
    • >
    • +
    • .
  28. Question ID 499

    Which option to the ls command will sort the output by size instead of alphabetically?

    • -r
    • -s
    • -S
    • -t
  29. Question ID 500

    Which option to the ls command will sort the output by time-stamp?

    • -t
    • -s
    • -S
    • -r
  30. Question ID 501

    Which option to the ls command will reverse the sort order?

    • -t
    • -r
    • -S
    • -s
  31. Question ID 502

    The file command uses _____ to determine file types.

    • magic
    • the “magic” file
    • alchemy
    • a random number generator
  32. Question ID 898

    By default, using the touch command on an existing file will update the file’s _____.

    • Timestamp
    • Type
    • Permissions
    • Ownership