Introduction to Linux I – Chapter 14 Exam Answers 2019 + PDF file

How to find: Press “Ctrl + F” in the browser and fill in whatever wording is in the question to find that question/answer. If the question is not here, find it in Questions Bank.

NOTE: If you have the new question on this test, please comment Question and Multiple-Choice list in form below this article. We will update answers for you in the shortest time. Thank you! We truly value your contribution to the website.

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

  • Filesystem links
  • Stable links
  • Hard links
  • Soft links

2. 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. 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. 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. What permissions are typically placed on soft link files?

  • ———
  • rw-rw-rw-
  • rwxrwxrwx
  • rwx——

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

  • True
  • False

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

  • True
  • False

8. 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. What option to the find command allows you to search for files by inode numbers?

  • -links
  • -ipath
  • -inum
  • -mtime

10. 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. 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. 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. 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. A soft link is also called a _____ link.

  • symbolic
  • indirect
  • true
  • false

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?

  • soft
  • hard

19. Which option to the ls command displays the inode numbers of files?

  • -inum
  • -i
  • -l
  • -N

20. When viewing a file with the ls -l command, which character represents a file type of soft link?

  • d
  • f
  • l

Download PDF File below:

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x