Create
Learn
Share

LINUX 2

rename
jekisuxe's version from 2017-01-02 13:43

Section

Question Answer
The legacy program for sending files to the printer queues from the command line is which of the following? lpr
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 eth0D
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 subnetD
Which of the following configuration files does sudo read when determining if a user is permitted to run applications with root privileges? /etc/sudoers
Which of the following commands will set the local machine's timezone to UTC?ln -s /usr/share/zoneinfo/UTC /etc/localtime
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).export LANG="pt" and export LC_MESSAGES="pt"
Which of the following is pool.ntp.org?A virtual cluster of various timeservers.
Which of the following directories in a user's home contains configuration files and key rings for GPG?~/.gnupg/
Which of the following lines from /etc/X11/xorg.conf indicates that fonts can be found on a font server?FontPath "unix/:7100"
The files in the /etc/skel directory are used by the:useradd command
Which of the following SQL statements will select the fields name and address from the contacts table?SELECT name, address FROM contacts;
Which of the following configuration files would an administrator edit to change default options for outbound ssh sessions?/etc/ssh/ssh_config
Which of the following bash option will prevent an administrator from overwriting a file with a ">"?set -o noclobber
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 mail
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). /BIN/NETSTAT,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/SBIN/HWCLOCK,/USR/SBIN/HWCLOCK,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?tcpd
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 oder klein geschrieben "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
The command __________ prints a list of email that is currently in the queue waiting for delivery. (Please specify the command with or without path or arguments) /USR/BIN/MAILQ,MAILQ
To slave the NTP daemon to an external source, an administrator needs to modify the ______ variable in the /etc/ntp.conf file. SERVER
Which of the following commands is used to deactivate a network interface? ifdown
Which of the following looks like a correct entry in the /etc/hosts file? 127.0.0.1 localhost.localdomainlocalhost
Which of the following lines would an administrator find in the file /etc/resolv.conf? domain mycompany.com
Which of the following find commands will print out a list of suid root files in /usr? find /usr -uid 0 -perm +4000
Which of the following commands will provide locale-specific information about a system and its environment? locale
Which of the following should the permission settings be for /etc/passwd and /etc/shadow?/etc/passwd: -rw-r--r-- /etc/shadow: -r--------
Which of the following configuration files should be modified to set default shell variables for all users?/etc/profile
By default, which directories contents will be copied to a new user's home directory when the account is created, passing the -m option to the useradd command? /ETC/SKEL,/ETC/SKEL/
Suppose that the command netstat -a hangs for a long time without producing output. An administrator might suspect:a problem with DNS
Please specify the directory containing the configuration files for the CUPS printing system. (Provide the full path to the directory). /ETC/CUPS,/ETC/CUPS/
Which of the following statements are true regarding the below syslog.conf configuration directive? (Select THREE) *.err;kern.notice;auth.notice /dev/console - A. Severity crit messages from all facilities will be directed to /dev/console B. Severity notice messages from the auth facility will be directed to /dev/console C. Severity notice messages from the kern facility will be directed to /dev/console D. Severity err messages from the mail facility will be directed /dev/console E. Severity notice messages from all facilities will be directed to /dev/consoleB, C, D
On a system running the K Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed? A. When KDM starts B. When a user's X session exists C. When KDM crashes D. When X is restarted E. When X crashes B
Which of the following is the BEST way to temporarily suspend a user's ability to interactively login? A. Changing the user's UID. B. Changing the user's password. C. Changing the user's shell to /bin/false. D. Removing the user's entry in /etc/passwd. E. Placing the command logout in the user's profile. C
To test a shell script called myscript, the environment variable FOOBAR must be removed temporarily. How can this be done? A. unset -v FOOBAR B. set -a FOOBAR="" C. env -u FOOBAR myscript D. env -i FOOBAR myscript C
Which of the following commands is used to display user resource limits? A. uname B. limit -a C. usrlmt D. ulimit D
Which of the following commands can an administrator use to change a user's password expiry information? (Select THREE). A. usermod B. passwd C. chattr D. chage E. chsh A, B, D
Which of the following statements is true regarding the below /etc/resolv.conf file? search example.com 127.0.0.1 208.77.188.166. A. There is a syntax error. B. If DNS queries to the localhost fail, the server 208.77.188.166 will be queried. C. example.com will be appended to all host lookups. D. The DNS servers at 127.0.0.1 and 208.77.188.166 will be queried in a round robin fashion. E. The DNS server with the shortest ping time will be queried first. If the lookup fails, the second server will be queried. A
Which of the following crontab entries could be used to set the system time at regular intervals? A. 1 0 * * * date $d $t $24 B. 1 0 * * * settime $d $t $24 C. 1 0 * * * date<ntp1.digex.net D. 1 0 * * * /usr/sbin/runcron date <ntp1.digex.net E. 1 0 * * * /usr/sbin/ntpdate ntp1.digex.net > /dev/null 2>&1 E
Which of the following outputs will the below command produce? seq 1 5 20 A. 1, 6, 11 16 B. 1, 5, 10,15 C. 1, 2, 3, 4 D. 2, 3, 4, 5 E. 5, 10, 15, 20 A
When using ssh, which of the following can an administrator do to recover a lost passphrase for a DSA or RSA authentication key? A. Run the ssh-keygen command. B. Run the ssh --recover command. C. A lost passphrase cannot be recovered. D. Decrypt the authentication key with gpg. E. Decrypt the authentication key with ssh --decrypt.C
Which of the following describes the Linux ping packet or datagram? A. IP packet with a packet type B. ICMP packet with a message type C. ICMP packet with a payload D. UDP datagram with a protocol type E. UDP datagram with a payloadB
Which of the following entries can an administrator add to syslog.conf file to have all syslog messages generated by the administrator system go file to have all syslog messages generated by the administrator? system go to virtual console 12? A. *.* /dev/tty12 B. /var/log/messages | /dev/tty12 C. | /dev/tty12 D. syslog tty12 E. mail.* /dev/tty12 A
Which file specifies the user accounts can NOT submit jobs via at or batch? (Provide the full path and filename)/ETC/AT.DENY
The ________ command is used to add a group to the system. (Please enter only a single command and do not enter duplicate answers in this field.) /USR/SBIN/GROUPADD, GROUPADD
An administrator has just set up the X Display Manager as the default display manager. Which of the following files should be edited to change the default background for it? A. /etc/X11/xdm/Xsetup B. /etc/X11/prefdm C. /etc/X11/xorg.conf D. /etc/X11/xdm.conf A
What word is missing from the following SQL statement? updatetablename ____ fieldname='value' where id=909; SET
What is the command to delete the default gateway from the system IP routing table? (Please specify the complete command with arguments, please no duplicate answers in this field.) /SBIN/IPROUTEDEL0.0.0.0,/SBIN/IPROUTEDELDEFAULT,/SBIN/ROUTEDEL0.0.0.0,/SBIN/ROUTEDELDEFAULT,IPROUTEDEL0.0.0.0,IPROUTEDELDEFAULT,ROUTEDEL0.0.0.0,ROUTEDEL DEFAULT
An administrator is running an email server configured with the default settings. In which directorywill the administrator commonly find the delivered mail for the user foo? A. /var/spool/mail B. /home/foo/mail C. /var/mail/spool D. /var/users/mail A
For accessibility assistance, which of the following programs is an on-screen keyboard? A. xkb B. atkb C. GOK D. xOSK C
memorize