Pass the Linux Foundation Linux Foundation Certified SYSADMIN LFCS Questions and answers with CertsForce

Viewing page 1 out of 8 pages
Viewing questions 1-10 out of questions
Questions # 1:

When the command echo $ outputs 1, which of the following statements is true?

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 exit value of the command executed immediately before echo.


D.

It is the exit value of the echo command.


Questions # 2:

Which of the following statements is valid in the file /etc/nsswitch.conf?

Options:

A.

multi on


B.

192.168.168.4 dns-server


C.

hosts: files dns


D.

include /etc/nsswitch.d/


Questions # 3:

Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)

Options:

A.

chmod +s /tmp


B.

chmod +t /tmp


C.

chmod 1775 /tmp


D.

chmod 4775 /tmp


E.

chmod 2775 /tmp


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 of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)

Options:

A.

uptime


B.

up


C.

top


D.

uname -u


E.

time –up


Questions # 6:

In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

Options:

A.

By using the command :repeat followed by the number and the command.


B.

By specifying the number right in front of a command such as 4l or 2yj.


C.

By selecting all affected lines using the shift and cursor keys before applying the command.


D.

By issuing acommand such as :set repetition=4 which repeats every subsequent command 4 times.


Questions # 7:

Why is the correct configuration of a system's time zone important?

Options:

A.

Because the conversion of Unix timestamps to local time relies on the time zone configuration.


B.

Because the time zone is saved as part of the modification times of files and cannot be changed after a file is created.


C.

Because the environment variables LANG and LC_MESSAGES are, by default, set according to the time zone.


D.

Because NTP chooses servers nearby based on the configured time zone.


Questions # 8:

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?

Options:

A.

-dirmax


B.

-maxdepth


C.

-maxlevels


D.

-n


E.

-s


Questions # 9:

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?

Options:

A.

i (lowercase)


B.

P (uppercase)


C.

p (lowercase)


D.

U (uppercase)


E.

u (lowercase)


Questions # 10:

Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

Options:

A.

apropos


B.

which


C.

find


D.

query


E.

whereis


Viewing page 1 out of 8 pages
Viewing questions 1-10 out of questions