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 is the purpose of the Bash built-in export command?
- A . It allows disks to be mounted remotely.
- B . It runs a command as a process in a subshell.
- C . It makes the command history available to subshells.
- D . It sets up environment variables for applications.
- E . It shares NFS partitions for use by other systems on the network.
What is the output of the following command?
echo "Hello World" | tr -d aieou
- A . Hello World
- B . eoo
- C . Hll Wrld
- D . eoo Hll Wrld
Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?
- A . <<
- B . <|
- C . !<
- D . &<
Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?
- A . file /tmp/myfile.txt
- B . echo "Hello" >/tmp/myfile.txt
- C . sed -ie "s/1/2/" /tmp/myfile.txt
- D . echo -n "Hello" >>/tmp/myfile.txt
- E . touch /tmp/myfile.txt
What is the default nice level when a process is started using the nice command?
- A . -10
- B . 10
- C . 20
- D . 0
What is the default action of the split command on an input file?
- A . It will break the file into new files of 1,024 byte pieces each.
- B . It will break the file into new files of 1,000 line pieces each.
- C . It will break the file into new files of 1,024 kilobyte pieces each.
- D . It will break the file into new files that are no more than 5% of the size of the original file.
What is the difference between the i and a commands of the vi editor?
- A . i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
- B . i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
- C . i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
- D . i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
SIMULATION
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
Which of the following commands moves and resumes in the background the last stopped shell job?
- A . run
- B . bg
- C . fg
- D . back
What is the effect of the egrep command when the -v option is used?
- A . It enables color to highlight matching parts.
- B . It only outputs non-matching lines.
- C . It shows the command’s version information.
- D . It changes the output order showing the last matching line first.