102-350 - LPI Level 1 Exam 102, Junior Level Linux Certification, Part 2 of 2
Go back to LPI
What output will the following command produce? seq 1 5 20
You suspect that a gateway machine on your network has failed but you are unsure which machine. Which command will help locate the problem?
In the following command and its output, echo $$ 12942 What is 12942?
the process ID of the current shell
Which TWO of the following Class B IPv4 networks are reserved by IANA for private address assignment and private routing?
What output will the command seq 10 produce?
The numbers 1 through 10 with one number per line.
When attempting to send a file to another user securely with GPG, which of the following actions must be done?
Encrypt the file using their public key.
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?
Alter the locale.
What is the main difference between the batch and at commands?
The batch command will run when system load is low. The at command runs at a specifictime.
Which commands can you use to change a user's account aging information? (Choose THREE correct answers.)
Which command will set the local machine's timezone to UTC?
ln -s /usr/share/zoneinfo/UTC /etc/localtime
Which of the following lines would you find in the file /etc/resolv.conf?
Suppose that the command netstat -a hangs for a long time without producing output. You might suspect:
A problem with DNS.
Why is /etc/shadow not world readable if the passwords are stored in an encrypted fashion?
The encrypted passwords are still subject to brute force attacks.
Which of the following commands can deconfigure a network interface?
What is the purpose of the nsswitch.conf file?
It is used to configure where the C library looks for system information such as host name services and user passwords.
Which of the following describes the Linux ping packet or datagram?
ICMP packet with a message type
Of the ways listed, which is the best way to temporarily suspend a single user's ability to interactively login?
Use change to expire the user account.
Which of the following information is NOT provided in any output from the netstat utility?
Which command will print the exit value of the previous command to the screen in bash?
Which command allows you to make a shell variable visible to subshells?
Why is the xhost program considered dangerous to use?
It allows easy access to your X server by other users.
For accessibility assistance, which of the following programs is an on-screen keyboard?
Which configuration file does sudo read when determining if a user is permitted to run applications with root privileges?
You are looking into a new script you received from your senior administrator. In the very first line you notice a #! followed by a file path. This indicates that:
the program at that location will be used to process the script.
To test a shell script called myscript, the environment variable FOOBAR must be removed temporarily. How can this be done?
env -u FOOBAR myscript
Your senior administrator asked you to change the default background of his machine, which uses XDM. Which file would you edit to achieve this?
What is pool.ntp.org?
A virtual cluster of various timeservers
What is NOT contained in the locale setting of the operating system?
How is the file format of /etc/crontab different from a normal crontab file? (Select TWO correct answers)
A normal crontab file must be installed with the crontab command.
The /etc/crontab file has a user field for commands.
What is the conventional purpose of Linux UIDs that are lower than 100?
They are reserved for system accounts.
Which of the following looks like a correct entry in the /etc/hosts file?
127.0.0.1 localhost.localdomain localhost
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?
hwclock --systohc --localtime
Which TWO statements about crontab are true?
Every user may have their owncrontab.
The cron daemon reloads crontab files automatically when necessary.
Which of the following commands is used on the command line to send messages to the syslog systems?
You have just set up the X Display Manager as your default display manager. What file should you edit to change the default background for it?
Which of the following commands can be used to activate a specific network interface?
To prevent a specific user from scheduling tasks with at, what should the administrator do?
Add the specific user to /etc/at.deny file.
Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?
Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?
The legacy program, provided by CUPS for sending files to the printer queues on the command line is:
Which statement is true regarding the following /etc/resolv.conf file? search example.com nameserver 22.214.171.124 nameserver 126.96.36.199
example.com will be appended to host names when they do not contain dots.
Which crontab entry could be used to set the system time at regular intervals?
1 0 * * * ntpdate ntp1.digex.net
Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?
Which directory in a user's home contains configuration files and key rings for GPG?
Which of the following configuration files should be modified to set default shell variables for all users?
What is the purpose of the Sticky Keys feature in X?
To assist users who have difficulty holding down multiple keys at once
While performing a security audit, a temporarily mounted device will not unmount and is reported as being busy. Which of the following commands could be used to determine which process is causing the device to be busy?
Which of the following SQL statements will select the fields name and address from the contacts table?
SELECT name, address FROM contacts;
What is the purpose of the dig command?
It can be used as a tool for querying DNS servers.
Which of the following lines is an example of a correct setting for the DISPLAY environment variable?