The Linux Foundation LFCS Linux Foundation Certified System Administrator Online Training
The Linux Foundation LFCS Online Training
The questions for LFCS were last updated at Nov 23,2024.
- Exam Code: LFCS
- Exam Name: Linux Foundation Certified System Administrator
- Certification Provider: The Linux Foundation
- Latest update: Nov 23,2024
What command will generate a list of user names from /etc/passwd along with their login shell?
- A . column -s : 1,7 /etc/passwd
- B . chop -c 1,7 /etc/passwd
- C . colrm 1,7 /etc/passwd
- D . cut -d: -f1,7 /etc/passwd
In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
- A . -dirmax
- B . -maxdepth
- C . -maxlevels
- D . -n
- E . -s
Which of the following statements is correct regarding the command foo 1> bar?
- A . The stdout from the command foo is appended to the file bar.
- B . The stdout from the command foo overwrites the file bar.
- C . The command foo receives its stdin from the file bar.
- D . The command foo receives its stdin from the stdout of the command bar.
- E . The stderr from the command foo is saved to the file bar.
Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?
- A . kill -PIPE 123
- B . kill -KILL 123
- C . kill -STOP 123
- D . kill -TERM 123
SIMULATION
Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files? killall -s _______ daemon
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
- A . 9
- B . 19
- C . 49
- D . 99
Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
- A . i (lowercase)
- B . P (uppercase)
- C . p (lowercase)
- D . U (uppercase)
- E . u (lowercase)
A user accidentally created the subdirectory dir in his home directory.
Which of the following commands will remove that directory?
- A . rmdir ‘~/dir’
- B . rmdir "~/dir"
- C . rmdir ~/’dir’
- D . rmdir ~/dir
- E . rmdir ~/\dir
In compliance with the FHS, in which of the directories are man pages found?
- A . /usr/share/man
- B . /opt/man
- C . /usr/doc/
- D . /var/pkg/man
- E . /var/man
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
- A . cat < myapp | cat > file1.log
- B . myapp 0>&1 | cat > file1.log
- C . myapp | cat > file1.log
- D . myapp | tee file1.log
- E . tee myapp file1.log