LPIC-1 Exam 102, Part 2 of 2, version 5.0 Questions and Answers
Which file, when using Sendmail or a similar MTA system, will allow a user to redirect all their mail to another address and is configurable by the user themselves?
You need to pause the CUPS printer HPLaserjet4, and you want to cancel all print jobs with a message, "hello". Which command will do this?
Which command is used to sync the hardware clock to the system clock? (Specify ONLY the command without any path or parameters.)
Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose TWO correct answers.)
Which option in the /etc/ntp.conf file specifies an external NTP source to be queried for time information? (Specify ONLY the option without any values or parameters.)
Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?
Which of the following commands is used to rotate, compress, and mail system logs?
Why is the correct configuration of a system's time zone important?
Which of the following are syslog facilities? (Choose TWO correct answers.)
Which configuration file would be edited to change the default options for outbound SSH sessions?
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.)
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?
What argument to the -type option of find will match files that are symbolic links? (Specify only the argument and no other options or words.)
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.)
Which file lists which users can execute commands using sudo? (Specify the full name of the file, including path.)
Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?
In an xinetd configuration file, which attribute specifies the network address that will be used to provide the service?
Which file contains a set of services and hosts that will be allowed to connect to the server by going through a TCP Wrapper program such as tcpd? (Specify the full name of the file, including
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?
How many IP-addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/28? (Specify the number only without any additional information.)
Given the following routing table:
How would an outgoing packet to the destination 192.168.2.150 be handled?
Which of the following programs can be used to determine the routing path to a given destination?
Which command is used to set the hostname of the local system? (Specify ONLY the command without any path or parameters.)
What is the purpose of the nsswitch.conf file?
Which command, depending on its options, can display the open network connections, the routing tables, as well as network interface statistics. (Specify ONLY the command without any path or parameters.)
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?
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.)
Why is /etc/shadow not world readable if the passwords are stored in an encrypted fashion?
Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?
The ________ command is used to add a group to the system.
Where are user specific crontabs stored?
What is the conventional purpose of Linux UIDs that are lower than 100?
A French user has installed the French language pack, but currencies are still being displayed with a leading '$' sign in his spreadsheets. What must be done to fix this?
The correct crontab entry to execute the script chklog three times per month between 3 p.m. and 5 p.m.:
What is NOT contained in the locale setting of the operating system?
To prevent a specific user from scheduling tasks with at, what should the administrator do?
Which of the following commands can identify the PID od a process which opened a TCP port?
Which command included in NetworkManager is a curses application which provides easy acces to the NetworkManager on the command line? (Specify only the command without any path or parameters.)
What is the purpose of TCP wrapper?
How many IP addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/26?
Which of the following commands should be executed when starting a login shell in order to change the language of messages for an internationalized program to Portuguese (pt)?
Which of the following commands displays all environment and shell variables?
Which of the following commands lists all queued print jobs?
Which of the following fields are available in the standard format of both the global /etc/crontab file as well as in user-specific crontab files? (Choose two.)
What is the top-level directory which contains the configuration files for CUPS? (Specify the full path to the directory.)
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)
When the command echo $ outputs 1, which of the following statements is true?
Which of the following is the best way to list all defined shell variables?
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?
Which command allows you to make a shell variable visible to subshells?
Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)
Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?
What output will the command seq 10 produce?
What is the difference between the commands test -e path and test -f path?
What is the purpose of a screen reader?
For accessibility assistance, which of the following programs is an on-screen keyboard?
Which command can be used to investigate the properties for a particular window in X by clicking that window? (Specify ONLY the command without any path or parameters.)
What is the purpose of the Sticky Keys feature in X?
Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)