Introduction to Linux I Chapter 14 Exam

Last Updated on February 20, 2020 by Admin

Introduction to Linux I Chapter 14 Exam

  1. Question ID 754
    Which are valid link types in Linux?
    (choose two)

    • Filesystem links
    • Stable links
    • Hard links
    • Soft links
  2. Question ID 755
    The output of the ls -l command includes “/etc/grub.conf -> ../boot/grub/grub.conf”. Based on this information, which is the soft link file?

    • ../boot/grub/grub.conf
    • Both
    • Neither
    • /etc/grub.conf
  3. Question ID 757
    Which of the following commands will create a soft link from the /tmp/test file to the /tmp/data file?

    • ln /tmp/test /tmp/data
    • ln /tmp/data /tmp/test
    • ln -s /tmp/test /tmp/data
    • ln -s /tmp/data /tmp/test
  4. Question ID 758
    Which of the following commands will create a hard link from the /tmp/test file to the /tmp/data file?

    • ln -s /tmp/data /tmp/test
    • ln /tmp/data /tmp/test
    • ln /tmp/test /tmp/data
    • ln -s /tmp/test /tmp/data
  5. Question ID 760
    What permissions are typically placed on soft link files?

    • ———
    • rw-rw-rw-
    • rwxrwxrwx
    • rwx——
  6. Question ID 761
    When you create a soft link, it increases the hard link count by one.
    True or False?

    • True
    • False
  7. Question ID 762
    When you create a hard link, it increases the hard link count by one.
    True or False?

    • True
    • False
  8. Question ID 763
    Which is true about hard links?

    • They are created with the ln -s command
    • They share inodes
    • They can only be created by the root user
    • They can be made to directories
  9. Question ID 765
    What option to the find command allows you to search for files by inode numbers?

    • -links
    • -ipath
    • -inum
    • -mtime
  10. Question ID 766
    If you have 5 hard linked files and you delete four of them including the original one, then:

    • The file still exists, but the data in the file is deleted
    • You lose the data from the file
    • The hard link count goes to 0
    • The data is still available from the remaining file
  11. Question ID 771
    If you have a file named /tmp/hosts pointing to a file named /etc/hosts and the /etc/hosts file is deleted, then which of the following statements is true?

    • The /tmp/hosts file now points to nothing
    • You can still access the data by using /tmp/hosts
    • The data from /etc/hosts is automatically copied into /tmp/hosts before /etc/hosts is deleted
    • It is not possible to delete the /etc/hosts file while a soft link is pointing to it
  12. Question ID 772
    Which value represents the inode number in the following output of the ls -li command: 87589 -rw-r–r–. 2 root root 83 Mar 4 22:45 myhosts

    • 22:45
    • 83
    • 2
    • 87589
  13. Question ID 773
    Which value represents the hard link count in the following output of the ls -li command: 87589 -rw-r–r–. 2 root root 83 Mar 4 22:45 myhosts

    • 87589
    • 2
    • 22:45
    • 83
  14. Question ID 972
    A soft link is also called a _____ link.

    • symbolic
    • indirect
    • true
    • false
  15. Question ID 973
    Which type of link can be made to a file on another filesystem, hard or soft?

    • soft
    • hard
  16. Question ID 974
    Which type of link can be made to directories, hard or soft?

    • hard
    • soft
  17. Question ID 975
    Which type of link is easier to visually “see”, hard or soft?

    • hard
    • soft
  18. Question ID 976
    Which type of link is indistinguishable by programs from regular files, hard or soft?

    • soft
    • hard
  19. Question ID 977
    Which option to the ls command displays the inode numbers of files?

    • -inum
    • -i
    • -l
    • -N
  20. Question ID 978
    When viewing a file with the ls -l command, which character represents a file type of soft link?

    • d
    • f
    • l