Your success in Linux Foundation LFCS is our sole target and we develop all our LFCS braindumps in a way that facilitates the attainment of this target. Not only is our LFCS study material the best you can find, it is also the most detailed and the most updated. LFCS Practice Exams for Linux Foundation LFCS are written to the highest standards of technical accuracy.
Q61. What happens after issuing the command vi without any additional parameters?
A. vi starts and loads the last file used and moves the cursor to the position where vi was when it last exited.
B. vi starts and requires the user to explicitly either create a new or load an existing file.
C. vi exits with an error message as it cannot be invoked without a file name to operate on.
D. vi starts in command mode and opens a new empty file.
E. vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.
Answer:: D
Q62. CORRECT TEXT
Which directory holds the files that configure the xinetd service when using several configuration files instead of an integrated configuration file? (Specify the full path to the directory.)
Answer: /etc/xinetd.d/, /etc/xinetd.d
Q63. 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?
A. mod2fs
B. fsck
C. tune2fs
D. mke2fs
E. fixe2fs
Answer: C
Q64. Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
A. dd if=/dev/zero of=/dev/sda bs=512
B. dd if=/dev/zero of=/dev/sdabs=512 count=1
C. dd if=/dev/zero of=/dev/sda bs=440 count=1
D. dd if=/dev/zero of=/dev/sda bs=440
Answer: C
Q65. Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)
A. New name servers may be added to the resolver configuration.
B. Network interfaces may become active or inactive.
C. The routing table may change.
D. IP addresses may change.
E. The system's host name may change.
Answer: B,C,D
Q66. In Bash, inserting 1>&2 after a command redirects
A. standard error to standard input.
B. standard input to standard error.
C. standard output to standard error.
D. standard error to standardoutput.
E. standard output to standard input.
Answer: C
Q67. CORRECT TEXT
In an xinetd configuration file, which attribute specifies the network address that will be used to provide the service?
Answer: bind, interface
Q68. 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.
Answer: D
Q69. Which of the following commands will set the variable text to olaf is home?(Choose two)
A. text=olaf\ is\ home
B. text=$olaf is home
C. $text='olaf is home'
D. text=='olaf is home'
E. text="olaf is home"
Answer: A,E
Q70. On a regular users workstation the route command takes a long time before printing out the routing table. Which of the following errors does that indicate?
A. The local routing information may be corrupted and must be re-validated using a routing protocol.
B. One of the routers in the routing table is not available which causes the automatic router failure detection mechanism (ARF-D) to wait for a timeout.
C. There may accidentally be more than one default router in which case a default router election has to be done on the network in order to choose one router as the default.
D. DNS resolution may not be working as route by default tries to resolve names of routers and destinations and may run into a timeout.
Answer: D
Q71. CORRECT TEXT
On a Linux system with shadow passwords enabled, which file in the file system contains the password hashes of all local users? (Specify the full name of the file, including path.)
Answer: /etc/shadow
Q72. Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?
A. magic
B. type
C. file
D. pmagic
E. hash
Answer: C
Q73. Which command makes the shell variable named VARIABLE visible to subshells?
A. export $VARIABLE
B. export VARIABLE
C. set $VARIABLE
D. set VARIABLE
E. env VARIABLE
Answer: B
Q74. CORRECT TEXT
Which environment variable should be set in order to change the time zone for the commands run from within the environment variable's scope? (Specify the variable name only.)
Answer: TZ
Q75. Which character, added to the end of a command, runs that command in the background as a child process of the current shell?
A. !
B. +
C. &
D. %
E. #
Answer: C