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

Linux Foundation LFCS Exam Success: Linux Foundation Certified System Administrator Complete Study and Preparation Tips

Questions 11

Which file should be edited to select the network locations from which Debian installation package files are loaded?

Options:
A.

/etc/dpkg/dpkg.cfg

B.

/etc/apt/apt.conf

C.

/etc/apt/apt.conf.d

D.

/etc/apt/sources.list

E.

/etc/dpkg/dselect.cfg

Linux Foundation LFCS Premium Access
Questions 12

Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?

Options:
A.

file /tmp/myfile.txt

B.

echo "Hello" >/tmp/myfile.txt

C.

sed -ie "s/1/2/" /tmp/myfile.txt

D.

echo -n "Hello" >>/tmp/myfile.txt

E.

touch /tmp/myfile.txt

Questions 13

Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)

Options:
A.

The user issuing the command must be in the group script.

B.

The script file must be found in the $PATH.

C.

The script file must have the executable permission bit set.

D.

The script must begin with a shebang-line (#!) that points to the correct interpreter.

E.

The file system on which the script resides must be mounted with the option scripts.

Questions 14

Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file?(Choose two)

Options:
A.

grep -v fred data_file

B.

grep '[f]red' data_file

C.

egrep fred data_file

D.

grep '[Ff]red' data_file

E.

grep -i fred data_file

Questions 15

Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?

Options:
A.

tar /home backup.tar

B.

tar -cf /home backup.tar

C.

tar -xf /home backup.tar

D.

tar -xf backup.tar /home

E.

tar -cf backup.tar /home

Questions 16

The system's timezone may be set by linking /etc/localtime to an appropriate file in which directory? (Provide the full path to the directory, without any country information)

Options:
Questions 17

What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)

Options:
A.

The user bob is removed from the system's user database.

B.

The user bob's home directory is removed.

C.

The locate database is updated to drop files owned by bob.

D.

All files owned by bob are remove from all mounted filesystems.

E.

In case bob was the last member of a group, that group is deleted.

Questions 18

Which command is used to create and initialize the files used to store quota information? (Specify ONLY the commandwithout any path or parameters.)

Options:
Questions 19

Which of the following commands can be used to display the inode number of a given file?

Options:
A.

inode

B.

ls

C.

ln

D.

cp

Questions 20

Which of the following commands redirects the output of cmd to the file foo.txt, in which an existing file is overwritten?

Options:
A.

cmd || foo.txt

B.

cmd | foo.txt

C.

cmd && foo.txt

D.

cmd >> foo.txt

E.

cmd > foo.txt