Summer Special Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 60certs

Linux Foundation LFCS Dumps

Page: 1 / 10
Total 260 questions

Linux Foundation Certified System Administrator Questions and Answers

Question 1

Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)

Options:

Question 2

What does the exit status 0 indicate about a process?

Options:

A.

The process ended without any problems.

B.

The process was terminated by the user.

C.

The process couldn't finish correctly.

D.

The process waited for an input but got none.

E.

The process finished in time.

Question 3

Which of the following settingsfor umask ensures that new files have the default permissions -rw-r----- ?

Options:

A.

0017

B.

0640

C.

0038

D.

0027

Question 4

After issuing:

function myfunction { echo $1 $2 ; }

in Bash, which output does:

myfunction A B C

Produce?

Options:

A.

A B

B.

A B C

C.

A C

D.

B C

E.

C B A

Question 5

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.)

Options:

Question 6

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

Options:

A.

cat < myapp | cat > file1.log

B.

myapp 0>&1 | cat > file1.log

C.

myapp | cat > file1.log

D.

myapp | teefile1.log

E.

tee myapp file1.log

Question 7

Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose TWO correct answers.)

Options:

A.

--from=

B.

--since=

C.

--until=

D.

--upto=

E.

--date=

Question 8

In compliance with the FHS, in which of the directories are man pages found?

Options:

A.

/usr/share/man

B.

/opt/man

C.

/usr/doc/

D.

/var/pkg/man

E.

/var/man

Question 9

What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?

Options:

A.

*.* /dev/tty12

B.

/var/log/messages | /dev/tty12

C.

| /dev/tty12

D.

syslog tty12

E.

mail.* /dev/tty12

Question 10

Which command displays a list of allbackground tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

Options:

Question 11

Please specify the top directory containing the configuration files for the CUPS printing system. (Specify the full path to the directory.)

Options:

Question 12

Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?

Options:

A.

File size

B.

Modify timestamp

C.

Link count

D.

Inode number

E.

Permissions

Question 13

Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)

Options:

A.

Start and prepare the desktop environment for the user.

B.

Configure additional devices like new monitors or projectors when they are attached.

C.

Handle the login of a user.

D.

Lock the screen when the user was inactive for a configurable amount of time.

E.

Create an X11 configuration file for the current graphic devices and monitors.

Question 14

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

Options:

Question 15

Whichof the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)

Options:

A.

shutdown -R 1 now

B.

shutdown -single now

C.

init 1

D.

telinit 1

E.

runlevel 1

Question 16

Which of the following information is stored within the BIOS? (Choose TWO correct answers.)

Options:

A.

Boot device order

B.

Linux kernel version

C.

Timezone

D.

Hardware configuration

E.

The system's hostname

Question 17

Which of the following programs can be used to determine the routing path to a given destination?

Options:

A.

dig

B.

netstat

C.

ping

D.

route

E.

traceroute

Question 18

With IPv6, how many bits have been used for the interface identifier of an unicast address? (Specify the number using digits only.)

Options:

Question 19

Which character starts a comment line in a shell script file?

Options:

A.

;

B.

*

C.

#

D.

/

Question 20

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

Question 21

Which of the following commands is used to update the list of available packages when using dpkg based package management?

Options:

A.

apt-get update

B.

apt-get upgrade

C.

apt-cache update

D.

apt-get refresh

E.

apt-cache upgrade

Question 22

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

Question 23

Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

Options:

A.

systemd.target=rescue.target

B.

systemd.runlevel=rescue.target

C.

systemd.service=rescue.target

D.

systemd.default=rescue.target

E.

systemd.unit=rescue.target

Question 24

What is the default action of the split command on an input file?

Options:

A.

It will break the file into new files of 1,024 byte pieces each.

B.

It will break the file into new files of 1,000 line pieces each.

C.

It will break the file into new files of 1,024 kilobytepieces each.

D.

It will break the file into new files that are no more than 5% of the size of the original file.

Question 25

Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)

Options:

A.

ssh --port 2222 example.com

B.

ssh -p 2222 example.com

C.

ssh -o Port=2222 example.com

D.

ssh -o GatewayPort=2222 example.com

E.

ssh example.com:2222

Question 26

Which of the following commands lists the dependencies of a given dpkg package?

Options:

A.

apt-cache depends-on package

B.

apt-cache dependencies package

C.

apt-cache depends package

D.

apt-cache requires package

Question 27

Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?

Options:

A.

SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;

B.

SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;

C.

COUNT(SELECT order_type FROM orders);

D.

SELECT COUNT(*) FROM orders ORDER BY order_type;

E.

SELECT AUTO_COUNT FROM orders COUNT order_type;

Question 28

Which keyword must be listed in the hosts option of the Name Service Switch configuration file in order to make host lookups consult the /etc/hosts file?

Options:

Question 29

Which of the following lines are valid in the file /etc/hosts? (Choose TWO correct answers.)

Options:

A.

2001:db8::15 www.example.com www

B.

www.example.com www 203.0.13.15

C.

203.0.113.15 www.example.com www

D.

www.example.com,www 203.0.13.15,2001:db8::15

E.

2003.0.113.15,2001:db8::15 www.example.com www

Question 30

What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)

Options:

A.

Entries for all possible devices get created on boot even if those devicesare not connected.

B.

Additional rules for udev can be created by adding them to /etc/udev/rules.d/.

C.

When using udev, it is not possible to create block or character devices in /dev/ using mknod.

D.

The /dev/ directory is a filesystem of type tmpfs andis mounted by udev during system startup.

E.

The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.

Question 31

Which of the following statements is correct when talking about /proc/?

Options:

A.

All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.

B.

All files within /proc/ are read-only and their contents cannot be changed.

C.

All changes to files in /proc/ are immediately recognized by the kernel.

D.

All files within/proc/ are only readable by the root user.

Question 32

Which of the following commands prints a listof usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

Options:

A.

fmt -f 1,4 /etc/passwd

B.

split -c 1,4 /etc/passwd

C.

cut -d : -f 1,4 /etc/passwd

D.

paste -f 1,4 /etc/passwd

Question 33

What word is missing from the following SQL statement?

insert into tablename ________(909, 'text');

(Please specify the missing word using lower-case letters only.)

Options:

Question 34

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

Question 35

In an xinetd configuration file, which attribute specifies the network address that will be used to provide the service?

Options:

Question 36

What is the effect of the egrep command when the -v option is used?

Options:

A.

It enables color to highlight matching parts.

B.

It only outputs non-matching lines.

C.

It shows the command's version information.

D.

It changes theoutput order showing the last matching line first.

Question 37

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

Question 38

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

Options:

A.

kill -PIPE 123

B.

kill -KILL 123

C.

kill -STOP 123

D.

kill -TERM 123

Question 39

Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers)

Options:

A.

Year

B.

Minute

C.

Username

D.

Command

Page: 1 / 10
Total 260 questions