ExamGecko
Home Home / LPI / 101-500

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

Question list
Search
Search

What is the process ID number of the init process on a SysV init based system?

A.
-1
A.
-1
Answers
B.
0
B.
0
Answers
C.
1
C.
1
Answers
D.
It is different with each reboot.
D.
It is different with each reboot.
Answers
E.
It is set to the current run level.
E.
It is set to the current run level.
Answers
Suggested answer: C

CORRECT TEXT

The system configuration file named _______ is commonly used to set the default runlevel. (Please provide the file name with full path information)

A.
/etc/inittab
A.
/etc/inittab
Answers
Suggested answer: A

Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and are not accessible at all for everyone else?

A.
0750
A.
0750
Answers
B.
0027
B.
0027
Answers
C.
0036
C.
0036
Answers
D.
7640
D.
7640
Answers
E.
0029
E.
0029
Answers
Suggested answer: B

Which is the default percentage of reserved space for the root user on new ext4 filesystems?

A.
10%
A.
10%
Answers
B.
3%
B.
3%
Answers
C.
15%
C.
15%
Answers
D.
0%
D.
0%
Answers
E.
5%
E.
5%
Answers
Suggested answer: E

Which of the following is true when a file system, which is neither listed in /etc/fstab nor known to system, is mounted manually?

A.
systemd ignores any manual mounts which are not done using the systemctl mount command
A.
systemd ignores any manual mounts which are not done using the systemctl mount command
Answers
B.
The command systemctl mountsync can be used to create a mount unit based on the existing mount
B.
The command systemctl mountsync can be used to create a mount unit based on the existing mount
Answers
C.
systemd automatically generates a mount unit and monitors the mount point without changing it
C.
systemd automatically generates a mount unit and monitors the mount point without changing it
Answers
D.
Unless a systemd mount unit is created, systemd unmounts the file system after a short period of time
D.
Unless a systemd mount unit is created, systemd unmounts the file system after a short period of time
Answers
E.
systemctl unmount must be used to remove the mount because system opens a file descriptor on the mount point
E.
systemctl unmount must be used to remove the mount because system opens a file descriptor on the mount point
Answers
Suggested answer: B

What does the command mount --bind do?

A.
It makes the contents of one directory available in another directory
A.
It makes the contents of one directory available in another directory
Answers
B.
It mounts all available filesystems to the current directory
B.
It mounts all available filesystems to the current directory
Answers
C.
It mounts all user mountable filesystems to the user's home directory
C.
It mounts all user mountable filesystems to the user's home directory
Answers
D.
It mounts all file systems listed in /etc/fstab which have the option userbind set
D.
It mounts all file systems listed in /etc/fstab which have the option userbind set
Answers
E.
It permanently mounts a regular file to a directory
E.
It permanently mounts a regular file to a directory
Answers
Suggested answer: A

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)?

A.
ln -h a.txt c.txt
A.
ln -h a.txt c.txt
Answers
B.
ln c.txt a.txt
B.
ln c.txt a.txt
Answers
C.
ln a.txt c.txt
C.
ln a.txt c.txt
Answers
D.
ln -f c.txt a.txt
D.
ln -f c.txt a.txt
Answers
E.
ln -i 525385 c.txt
E.
ln -i 525385 c.txt
Answers
Suggested answer: C

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.)

A.
chmod g+s sales
A.
chmod g+s sales
Answers
B.
setpol -R newgroup=sales sales
B.
setpol -R newgroup=sales sales
Answers
C.
chgrp -p sales sales
C.
chgrp -p sales sales
Answers
D.
chown --persistent *.sales sales
D.
chown --persistent *.sales sales
Answers
E.
chmod 2775 sales
E.
chmod 2775 sales
Answers
Suggested answer: C, E

CORRECT TEXT

Which command displays the current disk space usage for all mounted file systems? (Specify ONLY the command without any path or parameters.)

A.
du
A.
du
Answers
Suggested answer: A

When considering the use of hard links, what are valid reasons not to use hard links?

A.
Hard links are not available on all Linux systems because traditional filesystems, such as ext4, do not support them
A.
Hard links are not available on all Linux systems because traditional filesystems, such as ext4, do not support them
Answers
B.
Each hard link has individual ownership, permissions and ACLs which can lead to unintended disclosure of file content
B.
Each hard link has individual ownership, permissions and ACLs which can lead to unintended disclosure of file content
Answers
C.
Hard links are specific to one filesystem and cannot point to files on another filesystem
C.
Hard links are specific to one filesystem and cannot point to files on another filesystem
Answers
D.
If users other than root should be able to create hard links, suln has to be installed and configured
D.
If users other than root should be able to create hard links, suln has to be installed and configured
Answers
E.
When a hard linked file is changed, a copy of the file is created and consumes additional space
E.
When a hard linked file is changed, a copy of the file is created and consumes additional space
Answers
Suggested answer: A
Total 246 questions
Go to page: of 25