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
Which shell command is used to continue background execution of a suspended command?
- A . &
- B . bg
- C . cont
- D . exec
- E . :&
Which of the following shell redirections will write standard output and standard error output to a file named filename?
- A . 2>&1 >filename
- B . >filename 2>&1
- C . 1>&2>filename
- D . >>filename
- E . 1&2>filename
In the vi editor, which of the following commands will copy the current line into the vi buffer?
- A . c
- B . cc
- C . 1c
- D . yy
- E . 1y
Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
- A . esc ZZ
- B . ctrl :w!
- C . esc zz
- D . esc :wq!
- E . ctrl XX
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
- A . -10
- B . 0
- C . 10
- D . 20
Which of the following commands will reduce all consecutive spaces down to a single space?
- A . tr ‘s’ ‘ ‘ < a.txt > b.txt
- B . tr -c ‘ ‘ < a.txt > b.txt
- C . tr -d ‘ ‘ < a.txt > b.txt
- D . tr -r ‘ ‘ ‘
‘ < a.txt > b.txt - E . tr -s ‘ ‘ < a.txt > b.txt
Which character, added to the end of a command, runs that command in the background as a child process of the current shell?
- A . !
- B . +
- C . &
- D . %
- E . #
Which of the following commands will print the last 10 lines of a text file to the standard output?
- A . cat -n 10 filename
- B . dump -n 10 filename
- C . head -n 10 filename
- D . tail -n 10 filename
Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
- A . fmt -f 1,4 /etc/passwd
- B . split -c 1,4 /etc/passwd
- C . cut -d : -f 1,4 /etc/passwd
- D . paste -f 1,4 /etc/passwd
Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?
- A . SIGTERM
- B . SIGINT
- C . SIGSTOP
- D . SIGKILL