LPIC-1 Test Questions with Verified Correct
Answers
A backup software heavily uses hard links between files which have not been changed in
between two backup runs. Which benefits are realized due to these hard links? (Choose
two.)
A. The old backups can be moved to slow backu...
B. The backup runs faster because hard links are asynchr....
C. The backup is guaranteed to be uncharge...
D. The backup consumes less space becau...
E. The backup runs faster because, instead of co...
D. The backup consumes less space because the hard links point to the same data on disk instead
of storing redundant copies.
E. The backup runs faster because, instead of copying the data of each file, hard links only
change file system meta data.
FILL BLANK -Which file from the /proc/ file system contains a list of all currently
mounted devices? (Specify the full name of the file, including path.)
proc/self/mounts
How many fields are in a syntactically correct line of /etc/fstab?
A. 3
B. 4
C. 5
,D. 6
E. 7
D. 6
Running chmod 640 filea.txt as a regular user doesn't update filea.txt's permission. What
might be a reason why chmod cannot modify the permissions? (Choose two.)
A. filea.txt is owned by another user and a regular user cannot change the permi
B. filea.txt is a symbolic link whose permissions are a fix...
C. filea.txt has the sticky bit set and a regular user ca...
D. filea.txt is a hard link whose permissions are inher...
E. filea.txt has the SetUID bit set which imp...
A. filea.txt is owned by another user and a regular user cannot change the permissions of another
user's file.
B. filea.txt is a symbolic link whose permissions are a fix...
Which of the following Linux filesystems preallocate a fixed number of inodes when
creating a new filesystem instead of generating them as needed? (Choose two.)
A. JFS
B. ext3
C. XFS
D. ext2
E. procfs
B. ext3
D. ext2
, Which of the following commands sets the SetUID permission on the executable /bin/foo?
A. chmod 4755 /bin/foo
B. chmod 1755 /bin/foo
C. chmod u-s /bin/foo
D. chmod 755+s /bin/foo
E. chmod 2755 /bin/foo
A. chmod 4755 /bin/foo
Which of the following commands can be used to display the inode number of a given file?
(Choose two.)
A. inode
B. ln
C. ls
D. cp
E. stat
C. ls
E. stat
Which of the following commands print the current working directory when using a Bash
shell? (Choose two.)
A. echo "${PWD}"
B. echo "${WD}"
C. printwd
Answers
A backup software heavily uses hard links between files which have not been changed in
between two backup runs. Which benefits are realized due to these hard links? (Choose
two.)
A. The old backups can be moved to slow backu...
B. The backup runs faster because hard links are asynchr....
C. The backup is guaranteed to be uncharge...
D. The backup consumes less space becau...
E. The backup runs faster because, instead of co...
D. The backup consumes less space because the hard links point to the same data on disk instead
of storing redundant copies.
E. The backup runs faster because, instead of copying the data of each file, hard links only
change file system meta data.
FILL BLANK -Which file from the /proc/ file system contains a list of all currently
mounted devices? (Specify the full name of the file, including path.)
proc/self/mounts
How many fields are in a syntactically correct line of /etc/fstab?
A. 3
B. 4
C. 5
,D. 6
E. 7
D. 6
Running chmod 640 filea.txt as a regular user doesn't update filea.txt's permission. What
might be a reason why chmod cannot modify the permissions? (Choose two.)
A. filea.txt is owned by another user and a regular user cannot change the permi
B. filea.txt is a symbolic link whose permissions are a fix...
C. filea.txt has the sticky bit set and a regular user ca...
D. filea.txt is a hard link whose permissions are inher...
E. filea.txt has the SetUID bit set which imp...
A. filea.txt is owned by another user and a regular user cannot change the permissions of another
user's file.
B. filea.txt is a symbolic link whose permissions are a fix...
Which of the following Linux filesystems preallocate a fixed number of inodes when
creating a new filesystem instead of generating them as needed? (Choose two.)
A. JFS
B. ext3
C. XFS
D. ext2
E. procfs
B. ext3
D. ext2
, Which of the following commands sets the SetUID permission on the executable /bin/foo?
A. chmod 4755 /bin/foo
B. chmod 1755 /bin/foo
C. chmod u-s /bin/foo
D. chmod 755+s /bin/foo
E. chmod 2755 /bin/foo
A. chmod 4755 /bin/foo
Which of the following commands can be used to display the inode number of a given file?
(Choose two.)
A. inode
B. ln
C. ls
D. cp
E. stat
C. ls
E. stat
Which of the following commands print the current working directory when using a Bash
shell? (Choose two.)
A. echo "${PWD}"
B. echo "${WD}"
C. printwd