Free Linux Foundation LFCS Exam Actual Questions

The questions for LFCS were last updated On Jan 15, 2025

Question No. 1

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?

Show Answer Hide Answer
Correct Answer: C

Question No. 2

Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?

Show Answer Hide Answer
Correct Answer: C

Question No. 3

What of the following can be done by the command ifconfig? (Choose TWO correct answers.)

Show Answer Hide Answer
Correct Answer: A, D

Question No. 4

The script, script.sh, consists of the following lines:

#!/bin/bash

echo $2 $1

Which output will appear if the command, ./script.sh test1 test2, is entered?

Show Answer Hide Answer
Correct Answer: B

Question No. 5

What is the purpose of the file /etc/profile?

Show Answer Hide Answer
Correct Answer: C