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

Free Linux Foundation LFCS Practice Exam with Questions & Answers | Set: 6

Questions 51

Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)

Options:
Linux Foundation LFCS Premium Access
Questions 52

Which port is the default server port for the HTTPS protocol? (Specify the port number using digits.)

Options:
Questions 53

With X11 forwarding in ssh, what environment variable is automatically set in the remote host shell that is not set when X11 forwarding is not enabled? (Specify only the environment variable without any additional commands or values.)

Options:
Questions 54

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 55

How can the normal output of a command be written to a file while discarding the error output?

Options:
A.

command >2>file 1&>/dev/null

B.

command < output > /dev/null

C.

command > discard-error > file

D.

command > /dev/null 2&>1 output

E.

command >file 2>/dev/null

Questions 56

Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?

Options:
A.

ext2

B.

ext3

C.

ext4

D.

XFS

E.

VFAT

Questions 57

Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)

Options:
A.

shutdown -r now

B.

shutdown -r "rebooting"

C.

telinit 6

D.

telinit 0

E.

shutdown -k now "rebooting"

Questions 58

Which variable defines the directories in which a Bash shell searches for executable commands?

Options:
A.

BASHEXEC

B.

BASHRC

C.

PATH

D.

EXECPATH

E.

PATHRC

Questions 59

Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?

Options:
A.

lpd

B.

lpp

C.

lpq

D.

lpr

Questions 60

After running the command umount /mnt, the following error message is displayed:

umount: /mnt: device is busy.

What is a common reason for this message?

Options:
A.

The kernel has not finished flushing diskwrites to the mounted device.

B.

A user has a file open in the /mnt directory.

C.

Another file system still contains a symlink to a file inside /mnt.

D.

The files in /mnt have been scanned and added to the locate database.

E.

The kernel thinks that a process is about to open a file in /mnt for reading.