New Year Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Linux Foundation LFCS Practice Exam with Questions & Answers

Questions 1

What is the purpose of the Filesystem Hierarchy Standard?

Options:
A.

It is a security modelused to ensure files are organized according to their permissions and accessibility.

B.

It provides unified tools to create, maintain and manage multiple filesystems in a common way.

C.

It defines a common internal structure of inodes for all compliant filesystems.

D.

It is a distribution neutral description of locations of files and directories.

Linux Foundation LFCS Premium Access
Questions 2

What is the purpose of the Bash built-in export command?

Options:
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.

Questions 3

Which command will display the last line of the file foo.txt?

Options:
A.

head -n 1 foo.txt

B.

tail foo.txt

C.

last -n 1 foo.txt

D.

tail -n 1 foo.txt

Questions 4

When the command echo $$ outputs 12942, what is the meaning of 12942?

Options:
A.

It is the process ID of the echo command.

B.

It is the process ID of the current shell.

C.

It is the process ID of the last command executed.

D.

It is the process ID of the last command which has been placed in the background.

Questions 5

Which command chain will count the number of regular files with the name of foo.txt within /home?

Options:
A.

ls -lR /home | grep foo.txt | wc -l

B.

find /home -type f -name foo.txt | wc -l

C.

find /home -name foo.txt -count

D.

find /home -name foo.txt | wc -l

E.

grep -R foo.txt /home | wc -l

Questions 6

What is the purpose of a screen reader?

Options:
A.

It reads text displayed on the screen to blind or visually impaired people.

B.

It reads the parameters of the attached monitors and creates an appropriate X11 configuration.

C.

It displays lines and markers to help people use speed reading techniques.

D.

It manages and displays files that contain e-books.

Questions 7

Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

Options:
A.

chown dan/staff file.txt

B.

chown dan:staff file.txt

C.

chown -u dan -g staff file.txt

D.

chown dan -g staff file.txt

Questions 8

What argument to the -type option of find will match files that are symbolic links? (Specify only the argument and no other options or words.)

Options:
Questions 9

In which directory must definition files be placed to add additional repositories to yum?

Options:
Questions 10

Which of the following commands can be used to extract content from a tar file?

Options:
A.

tar -xvf

B.

tar -vf

C.

tar -e

D.

tar -c

E.

tar–v