wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux 2

Total questions: 120

Worksheet time: 3600secs

Name
Class
Date
1.

What is true regarding the statement beginning with #! that is found in the first line of the script?

a)

It prevents the script from being executed until the ! is removed.

b)

It specifies the path and the arguments of the interpreter used to run the script.

c)

It is a comment that is ignored by the script.

d)

It specifies the character encoding of the script.

2.

Which Bash option prevents a user from accidentally overwriting a file with a ">"?

a)

set -o safe

b)

set -o noglob

c)

set -o noclobber

d)

set -o append

e)

set -o nooverwrite

3.

Which of the following commands prints the exit value of the most recently executed program in Bash?

a)

echo $?

b)

echo $#

c)

echo $exit

d)

echo $status

e)

echo $&

4.

(Written) What word will complete an if statement in bash such as the following: if [-x "$file"]; then echo $file ____

a)

fi

b)

ekfldmnlf

c)

feked

5.

(Written) What word is missing from the following SQL statement? update tablename___ fieldname='value' where id=909;

a)

set

b)

dsm,fsdlf

c)

ewmf;lwem

6.

Which of the following SQL statements will select the fields name and address from the contacts table?

a)

SELECT (name, address) FROM contacts;

b)

SELECT (name address) FROM contacts;

c)

SELECT name, address FROM contacts;

d)

SELECT name address FROM contacts;

7.

Which of the following configuration files should be modified to globally set shell variables for all users?

a)

/etc/bashrc

b)

/etc/profile/

c)

~/.bash_profile

d)

/etc/.bashrc

8.

Which of the following commands are used to manage the environment and shell variables within a shell process? (Choose TWO correct answers.)

a)

export

b)

init

c)

reset

d)

set

e)

tset

9.

Which of the following are operators used for comparisons by the test command (Choose TWO correct answers.)

a)

equals

b)

=

c)

-is

d)

-eq

e)

null

10.

Which of the following commands creates a function in Bash that outputs the sum of two numbers?

a)

function sumitup { echo $(($1 + $2)) ; }

b)

command sumitup { echo $(($1 + $2)) ; }

c)

function sumitup { echo $1 + $2 ; }

d)

method sumitup { echo $1 + $2 ; }

e)

command sumitup { echo $1 + $2 ; }

11.

What output will the following command sequence produce?


echo '1 2 3 4 5 6' | while read a b c; do echo result: $c $b $a; done

a)

result: 3 4 5 6 2 1

b)

result: 1 2 3 4 5 6

c)

result: 6 5 4

d)

result: 6 5 4 3 2 1

e)

result: 3 2 1

12.

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

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.

13.

(Written)What word is missing from the following SQL statement? insert into tablename ________(909, 'text);

a)

values

b)

msd,lfnsdq

c)

smkald

14.

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

15.

What output will the command seq 10 produce?

a)

A continuous stream of numbers increasing in increments of 10 until stopped.

b)

The numbers 1 through 10 with one number per line.

c)

The numbers 0 through 9 with 1 number per line.

d)

The number 10 to the standard output

16.

(Written) By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)

a)

/etc/skel

b)

vdsvds

c)

dsvsd

17.

(Written) What word is missing from the following SQL statement?


_________ count(*) from tablename;

a)

select

b)

dfnkldamn

c)

dskfldsmnkl

18.

Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

a)

~/.bashconf

b)

~/.bashrc

c)

~/.bashdefaults

d)

~/.bash_etc

e)

~/.bash_profile

19.

After issuing:


function myfunction { echo $1 $2 ; }


in Bash, which output does:


myfunction A B C


Produce?

a)

A B

b)

A B C

c)

A C

d)

B C

e)

C B A

20.

Which of the following commands puts the output of the command date into the shell variable mydate?

a)

mydate="$(date)"

b)

mydate="exec date"

c)

mydate="$((date))"

d)

mydate="date"

e)

mydate="${date}"

21.

What is the purpose of the sticky keys feature in X?

a)

To assist users who have difficulty holding down multiple keys at once.

b)

To prevent repeated input of a single character if the key is held down.

c)

To ignore brief keystrokes according to a specified time limit.

d)

To repeat the input of a single character.

22.

On a machine running several X servers, how are the different instances of the X11 server identified?

a)

By a fixed UUID that is defined in the X11 configuration file.

b)

By a unique IPv6 address from the fe80::/64 subnet.

c)

By the name of the user that runs the X server like x11:bob.

d)

By a device name like /dev/X11/xservers/1.

e)

By a display name like:1.

23.

What is the purpose of the xhost program?

a)

Grant or revoke access to a X11 session.

b)

Install all packages and video drivers required to run X11 on a host.

c)

Start the X11 server and announce its availability within the local network.

d)

Send informational messages to all users logged into a host using X11.

e)

Display the MOTD and other important information when a user logs in via X11.

24.

What of the following statements is true regarding a display manager?

a)

A display manager handles remote X11 logins only and has no purpose on a system that is not attached to the network.

b)

The display manager is configured in the X11 configuration file xorg.conf.

c)

There is only one display manager X11DM that must be started on all systems running X11.

d)

After system startup, the display manager handles the login of a user.

e)

Without a display manager, no graphical programs can be run.

25.

How is a display manager started?

a)

It is started by a user using the command startx.

b)

It is started like any other system service by the init system.

c)

It is started by inetd when a remote hosts connects to the X11 port.

d)

It is started automatically when a X11 user logs in to the system console.

26.

(Written) What is the default name of the configuration file for the Xorg X11 server?

a)

xorg.conf

b)

nafdk,ank

c)

dbskfsd

27.

Which of the following commands shows the current color depth of the X Server>

a)

xcd

b)

xcdepth

c)

xwininfo

d)

xcolordepth

e)

cat /etc/X11

28.

For accessibility assistance, which of the following programs is an on-screen keyboard

a)

xkb

b)

atkb

c)

GOK

d)

xOSK

29.

(Written) What is the name of the simple graphical login manager that comes with a vanilla X11 installation?

a)

xdm

b)

fdnsklfnjdskl

c)

sdnklfsnd

30.

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

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.

31.

Which of the following commands can modify or set the password expiration for the user (Choose TWO correct answers.)

a)

chage

b)

chexpiration

c)

shadowconfig

d)

passwd

e)

userconf

32.

Which of the following statements is true regarding the /etc/shadow/file?

a)

/etc/shadow may not be readable or writable by user root.

b)

Only root is allowed to read and write /etc/shadow

c)

All users have full read and write access to /etc/shadow

d)

All users have full read access to /etc/shadow

33.

Which of the following commands will convert files from one character encoding to another?

a)

convert

b)

enc2utf

c)

iconv

d)

transcode

34.

Which environment variable will override all LC_* variables?

a)

LANG

b)

LC_ALL

c)

LC_COLLATE

d)

LOCALE

35.

Which command will set the local machine's timezone to UTC?

a)

cat UTC > /etc/timezone

b)

ln -s /usr/share/zoneinfo/UTC /etc/localtime

c)

date --timezone=UTC

d)

mv /usr/timezone/UTC /etc

36.

Which of the following actions prevents a specific user from scheduling tasks using at or batch?

a)

Add the specific user to the /etc/at.allow file.

b)

Add the specific user to the [deny] section in the /etc/atd.conf file.

c)

Add the specific user to the /etc/at.deny file.

d)

Add the specific user to the nojobs group.

e)

Run atd --deny followed by the name of the specific user.

37.

What is the main difference between the batch and at commands?

a)

The batch command will run multiple times. The at command will run only once.

b)

The commands of a batch job run sequentially one after another while the commands in at jobs may run parallel.

c)

The at command reads commands from standard input. The batch command requires a command line argument.

d)

The at command emails results to the user.

38.

Why should a regular user edit his personal crontab by using the command crontab instad of just editing his crontab file manually?

a)

Because user specific crontab entries are stored in a common database and must be extracted before editing.

b)

Because crontab starts the cron daemon in case it is not running due to no other crontab entries existing.

c)

Because user specific crontab entries are stored in a special directory which is maintained by the cron daemon and not writable for regular users.

d)

Because crontab collects information about all users crontabs and recommends similar commands used by other users of the system.

39.

What is true about groups in a Linux system? (Choose TWO correct answers.)

a)

Each user may be a member of several groups. However, only one group is the user's primary group.

b)

Groups may have a password that allows users to join that group temporarily.

c)

Each user can only be a member of one group at a time.

d)

Group memberships are optional such that there may be users that do not belong to any group.

e)

Groups can be nested meaning that one group can be a member of another group.

40.

What is true about UIDs and GIDs?

a)

UIDs and GIDs share a common number number space. Each time a new user or group is created, the next free ID is assigned.

b)

The first four digits of each UID are the GID of the primary group of that user.

c)

The GID of a group is always the sum of the UIDs of its members.

d)

The number space is split up. UIDs usually reside in the range from 0 to 32767 while GIDs reside in the range from 32768 to 65535.

e)

There are distinct number spaces for UIDs and GIDs, i.e. the same number may be used as both a UID and a GID.

41.

What happens if the password of a user in the /etc/shadow/ file is prepended with the ! character?

a)

When logging in, the user automatically gets root privileges in addition to his regular privileges.

b)

The password is inverted which allows the user to log in with any password other than the current password.

c)

The user is disabled and all login methods, including but not limited to password based logins, are disabled.

d)

Up the next log in, the user is forced to change his password.

e)

The password becomes invalid which disables password based logins although other login methods remain usable.

42.

Which of the following details can be found in an entry of a user specific crontab? (Choose TWO correct answers.)

a)

The verbal description of the job.

b)

The syslog facility to where the output of the job should be sent.

c)

The time when the cron job should be run.

d)

The command that should be started by the cron job.

e)

The name of the user which should run the job.

43.

Each entry in a crontab must end with what character?

a)

Tab

b)

Space

c)

Backslash

d)

Newline

44.

To prevent a specific user from scheduling tasks with at, what should the administrator do?

a)

Add the specific user to /etc/at.allow file.

b)

Add the specific user to [deny] section in the /etc/atd.conf file.

c)

Add the specific user to /etc/at.deny file.

d)

Add the specific user to nojobs group.

e)

Run the following: atd --deny [user].

45.

Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

a)

0 * * * 30 myscript

b)

30 * * * 6 myscript

c)

30 0 * * 0

d)

30 0-23 * * 0 myscript

e)

0 0-23 * * 30 myscript

46.

Which of the following files assigns a user to its primary group?

a)

/etc/pgroup

b)

/etc/shadow

c)

/etc/group

d)

/etc/passwd

e)

/etc/gshadow

47.

Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?

a)

export LANGUAGE="pt"

b)

export MESSAGE="pt"

c)

export UI_MESSAGES="pt"

d)

export LC_MESSAGES="pt"

e)

export ALL_MESSAGES="pt"

48.

(Written) In which file, if present, must all users be listed that are allowed to use the cron scheduling system?

a)

/etc/cron.allow

b)

dfsvsfd

c)

sdgsfdg

49.

Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)

a)

usermod

b)

passwd

c)

chattr

d)

chage

e)

chsh

50.

(Written) Which command is used to add an empty group to the system?

a)

groupadd

b)

dmfnldn

c)

qwkdlsanfd

51.

What is not contained in the locale setting of the operating system?

a)

currency symbol

b)

language

c)

timezone

d)

thousands separator

52.

What is true about the file /etc/localtime?

a)

It is a plain text file containing a string such as Europe/Berlin.

b)

It is created and maintained by the NTP service based on the geolocation of the system's IP address.

c)

It is a symlink to /sys/device/clock/ltime and always contains the current local time.

d)

It is either a symlink to or a copy of a timezone information such as /usr/share/zoneinfo/Europe/Berlin

53.

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

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 removed from all mounted systems.

e)

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

54.

Which of the following fields can be found in the /etc/group file? (Choose THREE answers.)

a)

The list of a users that belong to the group.

b)

The home directory of the group.

c)

The name of the group.

d)

The description of the group.

e)

The password of the group.

55.

Which file, when using Sendmail or a compatible MTA system, will allow a user to redirect all of their mail to another address and is configurable by the user themselves?

a)

/etc/alias

b)

/etc/mail/forwarders

c)

~/.alias

d)

~/.forwards

56.

Which of the following commands pauses the CUPS printer LaserPrinter?

a)

cupsreject LasterPrinter

b)

cupsreject -d LaserPrinter

c)

cupsdisable -d LaserPrinter

d)

cupsdisable LaserPrinter

57.

Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)

a)

Postfix

b)

Procmail

c)

Sendmail

d)

Exim

e)

SMTPd

58.

Which of the following commands lists all queued print jobs?

a)

lpd

b)

lpr

c)

lp

d)

lpq

59.

What is NTP?

a)

A more secure protocol replacement for FTP.

b)

A protocol for synchronizing time on computers.

c)

A routing aid for finding next hops on a network.

d)

A simple tunnelling protocol for computers behind firewalls.

60.

What is true regarding the time in a Linux system?

a)

The BIOS clock of a computer always indicates the current local time and time zone.

b)

Each application must convert the Unix time to the current time zone which is usually done by using standard libraries.

c)

When the system is on the network, each query for the current time leads to a new network connection to a time server.

d)

When the system time changes, running processes must be restarted in order to get the correct time.

61.

Which of the following is true regarding the mail queue of a mail server? (Choose TWO correct answers.)

a)

The messages in the queue must be readable by all users as the queue may contain messages for several users.

b)

According to the Filesystem Hierarchy Standard (FHS) the queue at /var/mail/spool.

c)

There is exactly one mail queue per user which holds all new messages for that user before they are moved to other folders by the user's mail client.

d)

The queue holds all messages that are processed by the mail server but have not yet been completely delivered.

e)

The content of the mail queue can be queried by the command mailq.

62.

Why should an NTP client maintain connections to several NTP servers?

a)

To receive NTP information every second as each server transmits NTP pings every five seconds only/.

b)

To improve the precision of the time by comparing responses from several servers.

c)

To not overload the remote server in case the local NTP time cache is not enabled.

d)

To not lose contact with all NTP servers in case the client changes networks.

63.

With syslog, what is a facility?

a)

Facilities are different connection interfaces to a syslog.

b)

From syslog's point of view, each Unix process that issues messages is a facility.

c)

Facilities describe the severity of a log message such as emerg or info.

d)

When using remote logging, the hostname of the server that generated a message is called facility.

e)

Facilities describe categories or groups of messages such as mail or auth.

64.

Which of the following files holds the configuration for journald when running systemd?

a)

/etc/systemd/journalctl.conf

b)

/etc/systemd/journald.conf

c)

/etc/systemd/systemd-journald.conf

d)

/etc/systemd/systemd-journaldctl.conf

e)

/usr/lib/systemd/journalctl.conf

65.

Which of the following are commonly used Mail Transfer Agent (MTA) applications> ? (Choose THREE correct answers.)

a)

Postfix

b)

Procmail

c)

Sendmail

d)

Exim

e)

SMTPd

66.

Which of the following is observed and corrected by a NTP client?

a)

The skew in time between the system clock and the hardware clock.

b)

The skew in time between the system clock and the reference clock.

c)

Changes in the time zone of the current computer's location.

d)

Adjustments needed to support Daylight Saving Time

67.

(Written) Which command is used to sync the hardware clock to the system clock?

a)

hwclock

b)

dsjkfnjkdnf

c)

dsklfnsdk

68.

(Written) Which command, available with all MTAs, is used to list the contents of the MRTA's mail queue?

a)

mailq

b)

dnjkfndskj

c)

ewnjfk

d)

edfnkl

69.

(Written) Please specify the top directory containing the configuration files for the CUPS printing system.

a)

/etc/cups

b)

nwfkldnwjkl

c)

qfrq

d)

ffewf

70.

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

a)

lpd

b)

lpp

c)

lpq

d)

lpr

71.

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

a)

*.* /dev/tty12

b)

/var/log/messages | /dev/tty/12

c)

| /dev/tty12

d)

syslog tty12

e)

mail.*/dev/tty12

72.

What is true about the ntpdate command?

a)

It is the primary management command for the NTP time server.

b)

It updates the local system's date (i.e day, month, and year) but not the time (i.e hours, minutes, seconds).

c)

It queries one or more NTP time servers and adjusts the system time accordingly.

d)

It sends the local system time to one or many remote NTP time servers for redistribution.

e)

It can be used by any user to set the user clock independently of the system clock.

73.

What is true regarding the file ~/.forward?

a)

As it is owned by the MTA and not writable by the user, it must be edited using the editaliases command.

b)

After editing ~/.forward the user must run newaliases to make the mail server aware of the changes.

c)

Using ~/.forward, root may configure any email address whereas all other users may configure only their own addresses.

d)

When configured correctly, ~/.forward can be used to forward each incoming mail to more than one other recipient.

74.

Which of the following commands is used to rotate, compress, and mail system logs?

a)

rotatelog

b)

striplog

c)

syslogd --rotate

d)

logrotate

e)

logger

75.

How many bits make up an IPv6 address?

a)

32

b)

48

c)

64

d)

128

e)

256

76.

(Written) Which command is used to manually assign an IP address to a network interface?

a)

ifconfig

b)

dkafnlda

c)

dsmnklfmnsld

77.

Which of the following files is consulted when programs like netstat try to match port numbers to names?

a)

/etc/networks/

b)

/etc/portmapper

c)

/etc/protocols

d)

/etc/resolv.conf

e)

/etc/services

78.

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

a)

order hosts, bind

b)

192.168.168.4 dns-server

c)

hosts: files, dns

d)

domain example.com

79.

Which of the following is a correct entry in the /etc/hosts file?

a)

localhost 127.0.0.1 localhost.localdomain

b)

localhost.localdomain localhost 127.0.0.1

c)

localhost localhost.localdomain 127.0.0.1

d)

127.0.0.1 localhost.localdomain localhost

e)

localhost.localdomain 127.0.0.1 localhost

80.

(Written) What is the assigned port number for the HTTP service?

a)

80

b)

dnkcflsdn

c)

bfjkdnbfkd

81.

What is the purpose of the dig command?

a)

It can be used as a tool querying DNS servers.

b)

It can be used for searching through indexed file content.

c)

It can be used to look for open ports on a system.

d)

It can be used to ping all known hosts on the current subnet.

82.

(Written) Given the following line from /etc/nsswitch.conf:


hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4


By default, which file will be queried first for hostname lookups?

a)

/etc/hosts

b)

fdsvgsd

c)

fnhfhfs

83.

When issuing the command ifconfig eth0 192.168.1.20/25 up, which of the following happens? (Choose TWO correct answers.)

a)

The address 192.168.1.20 is associated with the interface eth0.

b)

A network route to 192.168.10 with the netmask 255.255.255.0 pointing directly to eth0 is created.

c)

192.168.1.1 is probed for router functionality and, in case of success, it is added to the list of default routers.

d)

The addresses from 192.168.1.20 to 192.168.1.24 are activated on the interface eth0.

e)

If eth0 was configured with a previous IP address, it is retained in addition to adding the new address.

84.

(Written) What is the name of the file that defines the sources (like DNS or local configuration files) and the order in which they are consulted when resolving hostnames?

a)

/etc/nsswitch.conf

b)

kdwlnflq

c)

dnslfnd

d)

dkl

85.

Given the following routing table


Kernel IP routing table


Destination Gateway Genmask Flags Metric Ref Use Iface


192.168.178.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0


Why does the command route add default gw 192.168.1.1 fail?

a)

Because there is no route to 192.168.1.1.

b)

Because only one route can exist at a time.

c)

Because there is already a default route.

d)

Because default routes can not be set manually.

e)

Because default routes must be set with ifconfig

86.

In order to discover the link layer address of the device that owns a specific IPv4 or IPv6 address which mechanism is used?

a)

Both IPv4 and IPv6 use ARP.

b)

Both IPv4 and IPv6 use Neighbor Discovery.

c)

IPv4 uses ARP while IPv6 uses Neighbor Discovery.

d)

IPv4 uses Neighbor Discovery while IPv6 uses ARP.

e)

Both IPv4 and IPv6 can use either ARP or Neighbor Discovery depending on the network.

87.

Which of the following are valid IPv4 network masks? (Choose TWO correct answers.)

a)

255.255.0.0

b)

255.255.255.65

c)

255.255.0.255

d)

0.0.0.1

e)

255.255.255.248

88.

How does the ping command work by default?

a)

It sends a UDP packet to port 0 of the remote host and waits to receive a UDP error response in return.

b)

It sends an ARP request to a remote host and waits to receive an TCP ACK response in return.

c)

It sends a TCP SYN packet to a remote host and waits to receive an TCP ACK response in return.

d)

It sends a broadcast packet to all hosts on the new and waits to receive, among others, a response from the target system.

e)

It sends an ICMP Echo Request to a remote host and waits to receive an ICMP Echo Response in return.

89.

(Written) How many IP-Addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/28?

a)

14

b)

efwkmwe

c)

493

d)

49

90.

(Written) What is the lowest numbered unprivileged TCP port? (Specify the number of digits only)

a)

1024

b)

kdlfnlsd

c)

fdnl

91.

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

a)

multi on

b)

192.168.168.4 dns-server

c)

hosts: files dns

d)

include /etc/nsswitch.d/

92.

(Written) Which command, depending on its options, can display the open network connections, the routing tables, as well as network interface statistics.

a)

netstat

b)

djsln

c)

jglvnwlf

93.

(Written) Which port is the default server port for the HTTPS protocol?

a)

443

b)

fsvs

c)

fsv

d)

dsafsdf

94.

Which of the following IPv4 networks are reserved by IANA for private routing? (Choose THREE correct answers.)

a)

127.0.0.0/8

b)

10.0.0.0/8

c)

169.255.0.0/16

d)

172.16.0.0/12

e)

192/168.0.0/16

95.

Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query?

a)

dnsq

b)

dig

c)

hostname

d)

dnslookup

e)

zoneinfo

96.

What of the following can be done by the command ifconfig? (Choose TWO correct answers.)

a)

Set a network interface active or inactive.

b)

Specify the kernel module to be used with a network interface.

c)

Allow regular users to change the network configuration of a network interface

d)

Change the netmask used on a network interface.

e)

Specify which network services are available on a network interface.

97.

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

a)

dig

b)

netstat

c)

ping

d)

route

e)

traceroute

98.

Given the following routing table:


Kernel IP routing table


Destination Gateway Genmask Flags Metric Ref Use Iface


0.0.0.0 192.168.178.1 0.0.0.0 UG 0 0 0 wlan0

192.168.1.0 192.168.1.1 255.255.255.0 U 0 0 0 eth0

192.168.2.0 192.168.1.1 255.255.255.0 U 0 0 0 eth0

192.168.178.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0


How would an outgoing packet to the destination 192.168.2.150 be handled?

a)

It would be passed to the default router 192.168.178.1 on wlan0.

b)

It would be directly transmitted on the device eth0.

c)

It would be passed to the default router 255.255.255.0 on eth0

d)

It would be directly transmitted on the device wlan0.

e)

It would be passed to the router 192.168.1.1 eth0

99.

Which of the following is a valid IPv6 address?

a)

2001:db8:3241::1

b)

2001::db8:4581::1

c)

2001:db8:0g41::1

d)

2001%db8%9990%%1

e)

2001.db8.819f

100.

Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)

a)

substitute

b)

nameserver

c)

search

d)

lookup

e)

method

101.

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.

102.

(Written) 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?

a)

files

b)

mnefln

c)

eqmnkdl

d)

fkela

103.

(Written) In an xinetd configuration file, which attribute specifics the network address that will be used to provide the service?

a)

bind

b)

sdahkbeqk

c)

jnaqfd

104.

(Written) Which argument to the -type option of find will match files that are symbolic links?

a)

l

b)

cmd;klam

c)

samc

105.

(Written) 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?

a)

DISPLAY

b)

svjkdnbwjk

c)

fsnbkvbd

106.

(Written) The presence of what file will temporarily prevent all users except root from logging into the system?

a)

/etc/nologin

b)

dnsfjkln skd

c)

dnsjkfnsk

107.

Which configurationfile would be edited to change the default options for the outbound SSH sessions?

a)

/etc/ssh/sshd_config

b)

/etc/ssh/ssh

c)

/etc/ssh/client

d)

/etc/ssh/ssh_config

e)

/etc/ssh/ssh_client

108.

Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?

a)

tcpd

b)

inetd

c)

fingerd

d)

mountd

e)

xinetd

109.

Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?

a)

core

b)

edquota

c)

ulimit

d)

quota

110.

When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?

a)

debug

b)

lsof

c)

nessus

d)

strace

e)

traceroute

111.

Which configuration file would be edited to change default options for the OpenSSH server?

a)

/etc/ssh/sshd_config

b)

/etc/ssh/ssh

c)

/etc/ssh/server

d)

/etc/ssh/ssh_config

e)

/etc/ssh/ssh_server

112.

Which configuration file does sudo read when determining if a user is permitted to run applications with root privileges?

a)

/etc/security.conf

b)

/etc/supasswd

c)

/etc/sudoers

d)

/etc/sudo.conf

113.

Which of the following commands can be used to associated open TCP ports with the processes that opened the ports?

a)

ptrace

b)

strace

c)

debug

d)

nessus

e)

lsof

114.

(Written) Instead of using specific host names or IP addresses, which string can be used in /etc/hosts.allow entries to cover any remote host no matter of its name or address?

a)

ALL

b)

fdskfnlwen

c)

fekdlf

d)

dw

115.

Which of the following resources can be directly limited for a given user using ulimit? (Choose THREE correct answers.)

a)

Maximum seconds of CPU time spent.

b)

Maximum number of open file descriptors.

c)

Maximum number of processes available.

d)

Maximum number of concurrent login sessions.

e)

Maximum seconds of login duration per session.

116.

Depending on the hosts's configuration, which of the following files can be used to turn on and off network services running on a host(Choose TWO correct answers.)

a)

/etc/profile

b)

/etc/services

c)

/etc/inetd.conf

d)

/etc/xinetd.conf

e)

/etc/host.conf

117.

How do shadow passwords imporve the password security in comparison to standard passwd passwords?

a)

Shadow passwords are stored in plain text and can be checked for weak passwords.

b)

Every shadow password is valid for 45 days and must be changed afterwards.

c)

The system's host key is used to strongly encrypt all shadow passwords.

d)

Shadow passwords are always combined with a public key that has to match the user's private key/

e)

Regular users do not have access to the password hashes of shadow passwords.

118.

What is true regarding public and private SSH keys? (Choose TWO correct answers.)

a)

Several different public keys may be generated for the same private key.

b)

The private key must never be revealed to anyone.

c)

For each user account, there is exactly one key pair that can be used to log into that account.

d)

To maintain the private key's confidentiality, the SSH key pair must be created by its owner.

e)

To allow remote logins, the user's private key must be copied to the remote server.

119.

(Written) Which command is used to add OpenSSH private keys to a running ssh-agent instance?

a)

ssh-add

b)

wjdkq

c)

ndwjkqd

120.

Which of the following commands gets the GnuPG public key with the id 63B4835B from the keyserver example.com?

a)

gpg --keyserver hkp://example.com --recv-key 63B4835B

b)

gpg --search-key hkp://63B4835B@example.com

c)

gpg --keyserver gpg://example.com --get-key 63B4835B

d)

gpg --keyserver hkp://example.com --add-key 63B4835B

e)

gpg --keyserver gpg://example.com --key 63B4835B