ExamGecko
Home Home / LPI / 101-500

LPI 101-500 Practice Test - Questions Answers, Page 12

Question list
Search
Search

CORRECT TEXT

The /etc/_______ file lists currently mounted devices.

A.
mtab
A.
mtab
Answers
Suggested answer: A

After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?

A.
foo and bar would both be removed.
A.
foo and bar would both be removed.
Answers
B.
foo would be removed while bar would remain accessible.
B.
foo would be removed while bar would remain accessible.
Answers
C.
foo would be removed. bar would still exist but would be unusable.
C.
foo would be removed. bar would still exist but would be unusable.
Answers
D.
Both foo and bar would remain accessible.
D.
Both foo and bar would remain accessible.
Answers
E.
The user is prompted whether bar should be removed, too.
E.
The user is prompted whether bar should be removed, too.
Answers
Suggested answer: B

After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)

A.
By creating an ACL redirection from the old to the new path of the data.
A.
By creating an ACL redirection from the old to the new path of the data.
Answers
B.
By creatinga hard link from the old to the new path of the data.
B.
By creatinga hard link from the old to the new path of the data.
Answers
C.
By creating a symbolic link from the old to the new path of the data.
C.
By creating a symbolic link from the old to the new path of the data.
Answers
D.
By running the command touch on the old path.
D.
By running the command touch on the old path.
Answers
E.
By mounting the new filesystem on the original path of the data.
E.
By mounting the new filesystem on the original path of the data.
Answers
Suggested answer: C, E

Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

A.
chown dan/staff file.txt
A.
chown dan/staff file.txt
Answers
B.
chown dan:staff file.txt
B.
chown dan:staff file.txt
Answers
C.
chown -u dan -g staff file.txt
C.
chown -u dan -g staff file.txt
Answers
D.
chown dan -g staff file.txt
D.
chown dan -g staff file.txt
Answers
Suggested answer: B

Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?

A.
chmod u=rwx,go=rx /bin/foo
A.
chmod u=rwx,go=rx /bin/foo
Answers
B.
chmod o+rwx,a+rx /bin/foo
B.
chmod o+rwx,a+rx /bin/foo
Answers
C.
chmod 577 /bin/foo
C.
chmod 577 /bin/foo
Answers
D.
chmod 775 /bin/foo
D.
chmod 775 /bin/foo
Answers
Suggested answer: A

Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

A.
apropos
A.
apropos
Answers
B.
which
B.
which
Answers
C.
find
C.
find
Answers
D.
query
D.
query
Answers
E.
whereis
E.
whereis
Answers
Suggested answer: C

What does the command mount -a do?

A.
It ensures that all file systems listed with the option noauto in /etc/fstab are mounted.
A.
It ensures that all file systems listed with the option noauto in /etc/fstab are mounted.
Answers
B.
It shows all mounted file systems that have been automatically mounted.
B.
It shows all mounted file systems that have been automatically mounted.
Answers
C.
It opens an editor with root privileges and loads /etc/fstab for editing.
C.
It opens an editor with root privileges and loads /etc/fstab for editing.
Answers
D.
It ensuresthat all file systems listed with the option auto in /etc/fstab are mounted.
D.
It ensuresthat all file systems listed with the option auto in /etc/fstab are mounted.
Answers
E.
It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.
E.
It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.
Answers
Suggested answer: D

Which of the following settings for umask ensures that new files have the default permissions -rw-r--- -- ?

A.
0017
A.
0017
Answers
B.
0640
B.
0640
Answers
C.
0038
C.
0038
Answers
D.
0027
D.
0027
Answers
Suggested answer: D

Which of the following is the device file name for the second partition on the only SCSI drive?

A.
/dev/hda1
A.
/dev/hda1
Answers
B.
/dev/sda2
B.
/dev/sda2
Answers
C.
/dev/sd0a2
C.
/dev/sd0a2
Answers
D.
/dev/sd1p2
D.
/dev/sd1p2
Answers
Suggested answer: B

In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)

A.
cat /proc/self/mounts
A.
cat /proc/self/mounts
Answers
B.
free
B.
free
Answers
C.
mount
C.
mount
Answers
D.
lsmounts
D.
lsmounts
Answers
E.
cat /proc/filesystems
E.
cat /proc/filesystems
Answers
Suggested answer: A, C
Total 246 questions
Go to page: of 25