Linux Foundation Certified System Administrator (LFCS) Free Practice Test
Question 1
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?
Correct Answer: B
Question 2
CORRECT TEXT
Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.)
Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.)
Correct Answer:
0077, 077
Question 3
Which of the following commands can remove a user from a group?
Correct Answer: E
Question 4
In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)
Correct Answer: B,E
Question 5
When given the following command line.
echo "foo bar" | tee bar | cat
Which of the following output is created?
echo "foo bar" | tee bar | cat
Which of the following output is created?
Correct Answer: D
Question 6
Which of the following file permissions belong to a symbolic link?
Correct Answer: B
Question 7
Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?
Correct Answer: B
Question 8
CORRECT TEXT
Which world-writable directory should be placed on a separate partition inorder to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)
Which world-writable directory should be placed on a separate partition inorder to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)
Correct Answer:
/tmp, tmp, /var/tmp, /tmp/, /var/tmp/
Question 9
Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?
Correct Answer: C
Question 10
On a regular users workstation the route command takes a long time before printing out the routing table. Which of the following errors does that indicate?
Correct Answer: D
Question 11
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
Correct Answer: D
Question 12
CORRECT TEXT
Which option to the yum command will update the entiresystem? (Specify ONLY the option name without any additional parameters.)
Which option to the yum command will update the entiresystem? (Specify ONLY the option name without any additional parameters.)
Correct Answer:
update, upgrade
Question 13
What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)
Correct Answer: B,E
Question 14
What is the purpose of the file /etc/profile?
Correct Answer: D
Question 15
CORRECT TEXT
What two character sequence is present at the beginning of an interpreted script? (Please specify the TWO correct characters only)
What two character sequence is present at the beginning of an interpreted script? (Please specify the TWO correct characters only)
Correct Answer:
#!