Fill in the Blank Linux 2 Flashcards Preview

Linux + > Fill in the Blank Linux 2 > Flashcards

Flashcards in Fill in the Blank Linux 2 Deck (26):
1

What word will complete an if statement in bash such as the following:

if [ -x"$file" ]; then echo $file _____

fi

2

What word is missing from the following SQL statement? update tablename_____ fieldname='value' where id=909;

set

3

what word is missing from the following SQL statement

Insert into tablename____(909, 'text');

VALUES

4

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

/etc/skel

5

What word is missing from the following SQL statement?

______ count(*) from tablename;

select

6

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

xorg.conf

7

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

xdm

8

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

/etc/cron.allow

9

Which command is used to add an empty group to the system

groupadd

10

Which command, available with all MTAs, is used to list the contents of the MTA's mail queue?

mailq

11

Please specifiy the top directory containing the configuration files for the CUPS printing system

/etc/cups

12

Which command is used to manually assign an IP address to a network interface

ifconfig

13

What is the assigned port number for the HTTP service?

80

14

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?

/etc/hosts

15

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?

/etc/nsswitch.conf

16

How many IP-addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/28

14

17

What is the lowest numbered unprivileged TCP port

1024

18

Which command, depending on its options, can display the open network connections, the routing tables, as well as network interface statistics?

netstat

19

Which port is the default server port for the HTTPS protocol

443

20

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

files

21

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

bind

22

`What argument to the -type option of find will match files that are symbolic links

l

23

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

DISPLAY

24

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

/etc/nologin

25

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

ALL

26

Which command is used to add OpenSSH private keys to a running ssh-agent instance

ssh-add