Linux Foundation Certified System Administrator - LFCS Exam Practice Test
Which of the followingcommand sets the Bash variable named TEST with the content FOO?
Correct Answer: C
Vote an answer
CORRECT TEXT
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Correct Answer:
cmdline, /proc/cmdline
Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)
Correct Answer: A,C
Vote an answer
Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)
Correct Answer: A,C,E
Vote an answer
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
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)
Correct Answer: B,C
Vote an answer
Which of the following is observed and corrected by a NTP client?
Correct Answer: C
Vote an answer
Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)
Correct Answer: B,C
Vote an answer
What is the maximum niceness value that a regular user can assign to a process with the nice command when executinga new process?
Correct Answer: B
Vote an answer
From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)
Correct Answer: B,D
Vote an answer
Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)
Correct Answer: C,D
Vote an answer
CORRECT TEXT
Which command is used to sync the hardware clock to the system clock? (Specify ONLY the command without any path or parameters.)
Which command is used to sync the hardware clock to the system clock? (Specify ONLY the command without any path or parameters.)
Correct Answer:
hwclock, /sbin/hwclock, /usr/sbin/hwclock
CORRECT TEXT
What command displays all aliases defined in the current shell? (Specify the command without any path information)
What command displays all aliases defined in the current shell? (Specify the command without any path information)
Correct Answer:
alias, alias -p