Ch14 Filesystem Links Exam

  1. A soft link is also called a _____ link.

    • false
    • indirect
    • symbolic
    • true
  2. If you have 5 hard linked files and you delete four of them including the original one, then:

    • The data is still available from the remaining file
    • The hard link count goes to 0
    • You lose the data from the file
    • The file still exists, but the data in the file is deleted
  3. 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?

    • You can still access the data by using /tmp/hosts
    • The /tmp/hosts file now points to nothing
    • It is not possible to delete the /etc/hosts file while a soft link is pointing to it
    • The data from /etc/hosts is automatically copied into /tmp/hosts before /etc/hosts is deleted
  4. If the output of the ls -l command includes:

    /etc/grub.conf -> ../boot/grub/grub.con

    Based on this information, which is the soft link file?

    • Neither
    • Both
    • ../boot/grub/grub.conf
    • /etc/grub.con
  5. What option to the find command allows you to search for files by inode numbers?

    • -links
    • -inum
    • -ipath
    • -mtime
  6. What permissions are typically placed on soft link files?

    • ---------
    • rw-rw-rw-
    • rwxrwxrwx
    • rwx------
  7. When viewing a file with the ls -l command, which character represents a file type of soft link?

    • l
    • f
    • d
    • -
  8. When you create a hard link, it increases the hard link count by one.

    True or False?

    • True
    • False
  9. When you create a soft link, it increases the hard link count by one. rue or False?

    • True
    • False
  10. Which are valid link types in Linux? (choose two)

    • Soft links
    • Hard links
    • Stable links
    • Filesystem links
  11. Which is true about hard links?

    • They share inodes
    • They are created with the ln -s command
    • They can be made to directories
    • They can only be created by the root user
  12. Which of the following commands will create a hard link to /tmp/test named /tmp/data?

    • ln -s /tmp/test /tmp/data
    • ln /tmp/test /tmp/data
    • ln /tmp/data /tmp/test
    • ln -s /tmp/data /tmp/test
  13. Which of the following commands will create a soft link to /tmp/test named /tmp/data?

    • ln -s /tmp/data /tmp/test
    • ln -s /tmp/test /tmp/data
    • ln /tmp/test /tmp/data
    • ln /tmp/data /tmp/test
  14. Which option to the ls command displays the inode numbers of files?

    • -i
    • -l
    • -N
    • -inum
  15. Which type of link can be made to a file on another filesystem, hard or soft?

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

    • hard
    • soft
  17. Which type of link is easier to visually see, hard or soft?

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

    • hard
    • soft
  19. 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

    • 83
    • 87589
    • 22:45
    • 2
  20. 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

    • 87589
    • 2
    • 83
    • 22:45
  21. How do links support system administration tasks: (choose two)

    • Links do not support system administration tasks
    • They create icons on the desktop
    • Links help retain backward compatibility for programs and processes
    • Links are organized into groups that are updated automatically
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments