LPIC-1 Exam 101, Part 1 of 2 101-500 Exam Questions

Page: 1 / 14
Total 296 questions
Question 1

What is true about NetworkManager on a Linux system that uses its distnbution's mechanisms to configure network interfaces? (Choose TWO correct answers )



Answer : B, E


Question 2

Which variable defines the directories in which a Bash shell searches for executable commands?



Answer : C

ThePATHvariable defines the directories in which a Bash shell searches for executable commands. ThePATHvariable is a colon-separated list of directories that the shell scans when a command is entered. For example, if thePATHvariable is set to/usr/local/bin:/usr/bin:/bin, then the shell will look for the command in these three directories, in order. If the command is not found in any of these directories, the shell will report an error message. The other options are either invalid or do not perform the desired task. TheBASHEXEC,EXECPATHandPATHRCvariables are not valid Bash variables. TheBASHRCvariable is used to specify a file that is executed whenever a new interactive shell is started, but it does not affect the command search path.Reference:

LPIC-1 Exam 101 Objectives, Topic 103: GNU and Unix Commands, 103.1 Work on the command line

LPIC-1 Linux Administrator 101-500 Exam FAQ, LPIC-1 Exam 101 Objectives, GNU and Unix Commands (Total Weight: 25)


Question 3

Which of the following environment variables can be defined in locale. conf? (Choose TWO correct answers )



Answer : A


Question 4

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?



Answer : D

The commandkill -TERM 123kills the process with the PID 123 but allows the process to ''clean up'' before exiting. The option -TERM specifies the signal to be sent to the process, which is the termination signal (SIGTERM). This signal requests the process to terminate gracefully, which means that the process can perform any necessary actions before exiting, such as closing files, releasing resources, or saving data. The process can also catch the signal and ignore it or handle it in a different way, if it is programmed to do so. The syntax is:kill -TERM pid. For example,kill -TERM 123will send the SIGTERM signal to the process with the PID 123, asking it to terminate nicely. The other options are not correct because:

A . kill -PIPE 123: This command sends the broken pipe signal (SIGPIPE) to the process, which is not used to kill the process, but to notify it that the other end of a pipe has been closed.This signal is usually ignored by the process, unless it is writing to the pipe, in which case it will cause the process to terminate1.

B . kill -KILL 123: This command sends the kill signal (SIGKILL) to the process, which is the most powerful way to kill the process, but it does not allow the process to ''clean up'' before exiting. The SIGKILL signal cannot be caught, blocked, or ignored by the process, and it forces the process to terminate immediately, without performing any actions.This command should be used as a last resort, when the process is unresponsive or causing harm to the system2.

C . kill -STOP 123: This command sends the stop signal (SIGSTOP) to the process, which is not used to kill the process, but to pause it. The SIGSTOP signal cannot be caught, blocked, or ignored by the process, and it suspends the execution of the process until it receives a continue signal (SIGCONT).This command can be used to temporarily stop a process from running, without terminating it3.Reference:

What is the purpose of the SIGPIPE signal? - Stack Overflow

How to kill a process in Linux - LinuxConfig.org

Linux Signals - GeeksforGeeks


Question 5

Which of the following files is not read directly by a Bash login shell?



Answer : A


Question 6

Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?



Answer : A

The mkfs command creates a file system on a given device partition. If the type of file system is not specified, the default file system type is ext2.This is mentioned in the man page of mkfs1and also in the article by How-To Geek2. Ext2 is an older file system that does not support journaling, which is a feature that allows the file system to recover from crashes or power failures. Ext2 is not very commonly used nowadays, as most Linux systems prefer ext4 or other file systems that support journaling and other features.Reference:

How to Use the mkfs Command on Linux - How-To Geek

mkfs(8): build file system - Linux man page


Question 7

Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)



Answer : A, C

Theuptimeandtopcommands can be used to determine how long the system has been running. Theuptimecommand displays the current time, the system load, the number of users logged in, and the time since the system was last booted. Thetopcommand displays information about the processes running on the system, as well as the system load, the number of users logged in, and the time since the system was last booted. The other options are either invalid or do not perform the desired task. Theupcommand is not a valid Linux command. Theuname -ucommand displays the user ID of the current user, not the system uptime. Thetime --upcommand is not a valid syntax for thetimecommand, which measures the execution time of a command, not the system uptime.Reference:

LPIC-1 Exam 101 Objectives, Topic 103: GNU and Unix Commands, 103.2 Process management

LPIC-1 Linux Administrator 101-500 Exam FAQ, LPIC-1 Exam 101 Objectives, GNU and Unix Commands (Total Weight: 25)


Page:    1 / 14   
Total 296 questions