Ch14 Filesystem Links Exam
-
A soft link is also called a _____ link.
- false
- indirect
- symbolic
- true
-
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
-
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
-
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
-
What option to the
find
command allows you to search for files by inode numbers?-links
-inum
-ipath
-mtime
-
What permissions are typically placed on soft link files?
---------
rw-rw-rw-
rwxrwxrwx
rwx------
-
When viewing a file with the
ls -l
command, which character represents a file type of soft link?l
f
d
-
-
When you create a hard link, it increases the hard link count by one.
True or False?
- True
- False
-
When you create a soft link, it increases the hard link count by one. rue or False?
- True
- False
-
Which are valid link types in Linux? (choose two)
- Soft links
- Hard links
- Stable links
- Filesystem links
-
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
-
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
-
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
-
Which option to the
ls
command displays the inode numbers of files?-i
-l
-N
-inum
-
Which type of link can be made to a file on another filesystem, hard or soft?
- soft
- hard
-
Which type of link can be made to directories, hard or soft?
- hard
- soft
-
Which type of link is easier to visually see, hard or soft?
- hard
- soft
-
Which type of link is indistinguishable by programs from regular files, hard or soft?
- hard
- soft
-
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
-
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
-
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
0 Comments
Newest