LPI 101-500 - LPIC-1 Exam 101 Exam
Page: 2 / 24
Total 120 questions
Question #6 (Topic: Single Topic)
FILL BLANK
Which program updates the database that is used by the locate command? (Specify ONLY the command without any path or parameters).
Which program updates the database that is used by the locate command? (Specify ONLY the command without any path or parameters).
Answer: updatedb
Question #7 (Topic: Single Topic)
What does the command mount --bind do?
A. It makes the contents of one directory available in another directory
B. It mounts all available filesystems to the current directory
C. It mounts all user mountable filesystems to the user's home directory
D. It mounts all file systems listed in /etc/fstab which have the option userbind set
E. It permanently mounts a regular file to a directory
Answer: A
Question #8 (Topic: Single Topic)
Consider the following output from the command ls -i:

How would a new file named c.txt be created with the same inode number as a.txt (Inode 525385)?

How would a new file named c.txt be created with the same inode number as a.txt (Inode 525385)?
A. ln -h a.txt c.txt
B. ln c.txt a.txt
C. ln a.txt c.txt
D. ln -f c.txt a.txt
E. ln -i 525385 c.txt
Answer: C
Question #9 (Topic: Single Topic)
Consider the following directory:
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)
A. chmod g+s sales
B. setpol -R newgroup=sales sales
C. chgrp -p sales sales
D. chown --persistent *.sales sales
E. chmod 2775 sales
Answer: AE
Question #10 (Topic: Single Topic)
In order to display all currently mounted filesystems, which of the following commands could be used? (Choose two.)
A. cat /proc/self/mounts
B. free
C. lsmounts
D. mount
E. cat /proc/filesystems
Answer: AD