EMT Practice Test

1. Question Content...


Question List

Question1: Which of the following statements is true regarding systemd timer units?

Question2: The system's timezone may be set by linking /etc/localtime to an appropriate file in which directory? (Provide the full path to the directory, without any country information)

Question3: Which of the following can the chage command NOT change?

Question4: Which TWO statements about crontab are true?

Question5: Which of the following is the best way to list all defined shell variables?

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

Question7: What command should be used to print a listing of email in the system's mail queue?

Question8: What is true regarding the command sendmail?

Question9: Which of the following are syslog facilities? (Choose TWO correct answers.)

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

Question11: 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? (Specify only the environment variable without any additional commands or values.)

Question12: What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

Question13: What keyword is missing from this code sample of a shell script?
____ i in *.txt; do
echo $i
done

Question14: Which of the following commands can identify the PID od a process which opened a TCP port?

Question15: What is a purpose of an SSH host key?

Question16: Which of the following tasks can the date command accomplish? (Choose two.)

Question17: Given the following routing table:

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

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

Question19: 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?

Question20: The presence of what file will temporarily prevent all users except root from logging into the system? (Specify the full name of the file, including path.)

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

Question22: When the command echo $ outputs 1, which of the following statements is true?

Question23: Which command should be added to /etc/bash_profile to change the language of messages from an internationalised program to Portuguese (pt)? (Select TWO correct answers)

Question24: What is the purpose of the Sticky Keys feature in X?

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

Question26: What is true regarding a default route?

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

Question28: What is true regarding the file ~/.forward?

Question29: Which of the following details is NOT provided in any output from the netstat utility?

Question30: Which of the following lines is an example of a correct setting for the DISPLAY environment variable?

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

Question32: Which of the following statements is true if the UID of a regular user is identical to the GID of a group?

Question33: Which command can be used to delete a group from a Linux system?

Question34: What command displays all aliases defined in the current shell? (Specify the command without any path information)

Question35: Which of the following commands can be used to display the local routing table? (Choose TWO correct answers.)

Question36: Which of the following find commands will print out a list of files owned by root and with the SUID bit set in
/usr?

Question37: What is the purpose of the command mailq?

Question38: What entry can you add to syslog.conf file to have all syslog messages generated by your system go to virtual console 12?

Question39: Which of the following commands displays all environment and shell variables?

Question40: Which file lists which users can execute commands using sudo? (Specify the full name of the file, including path.)

Question41: Depending on a system's configuration, which of the following files can be used to enable and disable network services running on this host?

Question42: What can be specified with useradd? (Choose two.)

Question43: What output will the following command produce?
seq 1 5 20

Question44: Which of the following information is stored in /etc/shadow for each user?

Question45: To exclude all log messages of a given logging facility, you should use a logging priority of _____ .

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

Question47: 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?

Question48: Which of the following changes may occur as a consequence of using the command ip? (Choose three.)

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

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

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

Question52: Which of the following is a valid IPv6 address?

Question53: What is pool.ntp.org?

Question54: X is running okay but you're concerned that you may not have the right color depth set. What single command will show you the running color depth while in X?

Question55: Which of the following commands shows all active systemd timers?

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

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

Question58: In case neither cron.allow nor cron.deny exist in /etc/, which of the following is true?

Question59: Which of the following is true about IPv6?

Question60: What is the purpose of TCP wrapper?

Question61: Which file, if present, must contain all users that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.)

Question62: What is the purpose of the nsswitch.conf file?

Question63: Each entry in a crontab must end with what character?

Question64: What is true regarding TCP port 23?

Question65: Which of the following words is used to restrict the records that are returned from a SELECT query based on a supplied criteria for the values in the records?

Question66: Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?

Question67: What the echo $$ command?

Question68: Where are user specific crontabs stored?

Question69: What benefit does an alias in bash provide?

Question70: Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)

Question71: How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?

Question72: What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)

Question73: Which of the following commands configure network interfaces based on the system's existing distribution-specific configuration files? (Choose two.)

Question74: What is true about the file /etc/localtime?

Question75: Which directory holds the files that configure the xinetd service when using several configuration files instead of an integrated configuration file? (Specify the full path to the directory.)

Question76: On a dual boot system, every time the system is booted back into Linux the time has been set backward by one day. Which of the following commands will correct the problem?

Question77: Which port is the default server port for the HTTPS protocol? (Specify the port number using digits.)

Question78: Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

Question79: Given the following excerpt of the sudo configuration:
jane ANY=NOPASSWD: /bin/kill, /bin/id, PASSWD: /sbin/fdisk
Which of the following statements are true? (Choose three.)

Question80: Which file contains the date of the last change of a user's password?

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

Question82: Which command, available with all MTAs, is used to list the contents of the MTA's mail queue? (Specify ONLY the command without any path or parameters.)

Question83: Which directory in /etc is used to keep a sample copy of files and directories for when a new user has a home directory created? (Please provide the full path)