Linux 102 Flashcards
(448 cards)
QUESTION NO: 1 The legacy program for sending files to the printer queues from the command line is which of the following? A. lpd B. lpr C. lpq D. lpp
B
Which of the following statements would create a default route using a gateway of 192.168.1.1? A. netstat -add default gw B. route default 192.168.1.1 C. ip route default 192.168.1.1 D. route add default gw 192.168.1.1 E. ifconfig default gw 192.168.1.1 eth0
D
QUESTION NO: 3
Which of the following is the purpose of the dig command?
A. To adjust a directory’s hidden permissions
B. To search for files on the filesystem
C. To adjust a file’s hidden permissions
D. To perform hostname lookups
E. To ping all known hosts on the current subnet
D
Which of the following configuration files does sudo read when determining if a user is permitted to run applications with root privileges? A. /etc/groups B. /etc/passwd C. /etc/sudoers D. /etc/sudo.conf
C
Which of the following commands 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
B
A user was not given permission to use the CRON scheduling system. What file needs to be modified to provide that access? (Please specify the full path to the file).
/etc/cron.allow
Which of the following commands should be added to /etc/bash_profile to change the language of messages from an internationalised program to Portuguese (pt)? (Select TWO). A. export LANGUAGE="pt" B. export MESSAGE="pt" C. export LANG="pt" D. export LC_MESSAGES="pt" E. export ALL_MESSAGES="pt"
C, D
Which of the following is pool.ntp.org?
A. A deprecated feature for maintaining system time in the Linux kernel.
B. A website which provides binary and source packages for the OpenNTPD project.
C. A virtual cluster of various timeservers.
D. A community website used to discuss the localization of Linux.
C
Which of the following directories in a user's home contains configuration files and key rings for GPG? A. ~/gpg.d/ B. ~/.gpg/ C. ~/.gnupg/ D. ~/gnupg/ E. ~/.gpg.d/
C
Which of the following lines from /etc/X11/xorg.conf indicates that fonts can be found on a font server? A. FontPath= server B. Fonts "unix/:7100" C. FontPath "unix/:7100" D. Fonts= server E. Fontserver = "servername"
C
The files in the /etc/skel directory are used by the: A. pwconv command B. pwunconv command C. useradd command D. passwd command
C
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;
C
Which of the following configuration files would an administrator edit to change default options for 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
D
Which of the following bash option will prevent an administrator from 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
C
An ISP has given an administrator an IP block for use. The block is 192.168.112.64/26. If the
administrator uses the first usable IP for the router that is installed on the network, how many
usable IPs are left? (Please enter the number and not a word)
61
All of the following are Mail Transport Agents EXCEPT: A. exim B. postfix C. sendmail D. qmail E. mail
E
An administrator is configuring a secured webserver, however connecting to https://127.0.0.1 is not working. The administrator runs netstat -ntl, which returns the following output: tcp 0 0
0.0.0.0:80 0.0.0.0:* LISTEN What port should be listening before a successful connection is
possible? (Provide only the numerical value of the port).
443
Which protocol uses two (2) TCP/IP ports one of them being port 20 for data transfer? (Please do
not enter duplicate answers in this field.)
ftp
An administrator can run the ________ command to see active network and UNIX domain socket connections. (Please specify the command with no options or parameters).
netstat
An administrator needs to sync the hardware clock, which is on GMT, with the system clock, which the administrator just updated with NTP. To do this, complete the following command: ________ -
u –systohc
hwclock
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
A
An administrator has added the following line to /etc/inittab in order to disable the ability to reboot a Debian system by pressing the Control + Alt + Delete keys simultaneously:
ca:12345:_________:/bin/echo “Rebooting disabled” Please provide the missing string.
ctrlaltdel
What word will complete an if statement in bash such as the following: if [ -x “$file” ]; then echo $file _____ (Please provide the missing word only).
fi
An administrator decides to use xinetd instead of inetd. Now, the administrator needs to transfer information from /etc/inetd.conf to another file. What file must be created or edited? (Please specify the full path).
/etc/xinetd.conf