LPIC-1 Exam 101 (101-500) Exam
1- Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?
2- Which of the following information is stored within the BIOS? (Choose TWO correct answers.)
3- Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)
4- Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)
5- SIMULATION
6- What information can the lspci command display about the system hardware? (Choose THREE correct answers.)
7- Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)
8- What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?
9- SIMULATION
ANSWERS:
10- Which of the following commands will write a message to the terminals of all logged in users?
11- Which of the following kernel parameters instructs the kernel to suppress most boot messages?
12- Which of the following options for the kernel's command line changes the systemd boot target to rescu- E.target instead of the default target?
13- After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?
14- Which of the following commands is used to update the list of available packages when using dpkg based package management?
15- Which of the following commands can be used to download the RPM package kernel without installing it?
16- When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)
17- Which of the following is correct when talking about mount points?
18- Which function key is used to start Safe Mode in Windows NT?
19- Which of the following environment variables overrides or extends the list of directories holding shared libraries?
ANSWERS:
20- SIMULATION
21- Which RPM command will output the name of the package which supplied the file /etc/exports?
22- SIMULATION
23- SIMULATION
24- When removing a package, which of the following dpkg options will completely remove the files including configuration files?
25- Which file should be edited to select the network locations from which Debian installation package files are loaded?
26- SIMULATION
27- SIMULATION
28- SIMULATION
29- Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
ANSWERS:
30- Which of the following commands can be used to create a USB storage media from a disk image?
31- In Bash, inserting 1>&2 after a command redirects
32- What command will generate a list of user names from /etc/passwd along with their login shell?
33- In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
34- Which of the following statements is correct regarding the command foo 1> bar?
35- Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?
36- SIMULATION
37- What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
38- Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
39- A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
ANSWERS:
40- In compliance with the FHS, in which of the directories are man pages found?
41- Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
42- What is the purpose of the Bash built-in export command?
43- What is the output of the following command? echo "Hello World" | tr -d aieou
44- Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?
45- Which of the following commands will NOT update the modify timestamp on the file /tmp/myfil- E.txt?
46- What is the default nice level when a process is started using the nice command?
47- What is the default action of the split command on an input file?
48- What is the difference between the i and a commands of the vi editor?
49- SIMULATION
ANSWERS:
50- Which of the following commands moves and resumes in the background the last stopped shell job?
51- What is the effect of the egrep command when the -v option is used?
52- What does the ? symbol within regular expressions represent?
53- In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?
54- Which of the following files, located in the user home directory, is used to store the Bash history?
55- SIMULATION
56- Which of the following commands displays the contents of a gzip compressed tar archive?
57- Which grep command will print only the lines that do not end with a / in the file foo?
58- Which of the following commands is used to change options and positional parameters for a running Bash?
59- Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
ANSWERS:
60- From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runm- E.sh without starting a subshell? (Please select TWO answers.)
61- Regarding the command:
62- Which shell command is used to continue background execution of a suspended command?
63- Which of the following shell redirections will write standard output and standard error output to a file named filename?
64- In the vi editor, which of the following commands will copy the current line into the vi buffer?
65- Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
66- When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
67- Which of the following commands will reduce all consecutive spaces down to a single space?
68- Which character, added to the end of a command, runs that command in the background as a child process of the current shell?
69- Which of the following commands will print the last 10 lines of a text file to the standard output?
ANSWERS:
70- Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
71- Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?
72- What happens after issuing the command vi without any additional parameters?
73- Which of the following command sets the Bash variable named TEST with the content FOO?
74- Which variable defines the directories in which a Bash shell searches for executable commands?
75- Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?
76- SIMULATION
77- Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)
78- When running the command
79- When given the following command lin- E. echo "foo bar" | tee bar | cat
ANSWERS:
80- Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)
81- Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)
82- After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?
83- After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)
84- Which of the following commands changes the ownership of fil- E.txt to the user dan and the group staff?
85- Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?
86- Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?
87- What does the command mount -a do?
88- Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?
89- Which of the following is the device file name for the second partition on the only SCSI drive?
90- In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)
ANSWERS:
91- Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?
92- Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?
93- Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?
94- How many fields are in a syntactically correct line of /etc/fstab?
95- SIMULATION
96- Which of the following file permissions belong to a symbolic link?
97- Creating a hard link to an ordinary file returns an error. What could be the reason for this?
98- Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)
99- Which of the following commands will change the quota for a specific user?
100- Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?
101- Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed? (Choose TWO correct answers.)
102- What is the purpose of the Filesystem Hierarchy Standard?
ANSWERS:
1- Which of the following information is stored within the BIOS? (Choose TWO correct answers.)
2- Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)
3- Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)
4- SIMULATION
5- What information can the lspci command display about the system hardware? (Choose THREE correct answers.)
6- Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)
7- What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?
8- SIMULATION
9- Which of the following commands will write a message to the terminals of all logged in users?
10- Which of the following kernel parameters instructs the kernel to suppress most boot messages?
ANSWERS:
11- Which of the following options for the kernel's command line changes the systemd boot target to rescu- E.target instead of the default target?
12- After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?
13- Which of the following commands is used to update the list of available packages when using dpkg based package management?
14- Which of the following commands lists the dependencies of a given dpkg package?
15- Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?
16- What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)
17- Which of the following commands updates the linker cache of shared libraries?
18- Which of the following commands lists all currently installed packages when using RPM package management?
19- Which of the following commands can be used to download the RPM package kernel without installing it?
20- When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)
ANSWERS:
21- Which RPM command will output the name of the package which supplied the file /etc/exports?
22- SIMULATION
23- SIMULATION
24- When removing a package, which of the following dpkg options will completely remove the files including configuration files?
25- Which file should be edited to select the network locations from which Debian installation package files are loaded?
26- SIMULATION
27- SIMULATION
28- SIMULATION
29- Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
30- Which of the following commands can be used to create a USB storage media from a disk image?
ANSWERS:
31- In Bash, inserting 1>&2 after a command redirects
32- What command will generate a list of user names from /etc/passwd along with their login shell?
33- In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
34- Which of the following statements is correct regarding the command foo 1> bar?
35- Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?
36- SIMULATION
37- What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
38- Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
39- A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
40- In compliance with the FHS, in which of the directories are man pages found?
ANSWERS:
41- Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
42- What is the purpose of the Bash built-in export command?
43- What is the output of the following command? echo "Hello World" | tr -d aieou
44- Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?
45- In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?
46- Which of the following files, located in the user home directory, is used to store the Bash history?
47- SIMULATION
48- Which of the following commands displays the contents of a gzip compressed tar archive?
49- Which grep command will print only the lines that do not end with a / in the file foo?
ANSWERS:
50- Which of the following commands is used to change options and positional parameters for a running Bash?
51- Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
52- From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/ bin/runm- E.sh without starting a subshell? (Please select TWO answers.)
53- Regarding the command: nice -5 /usr/bin/prog
54- Which shell command is used to continue background execution of a suspended command?
55- Which of the following shell redirections will write standard output and standard error output to a file named filename?
56- In the vi editor, which of the following commands will copy the current line into the vi buffer?
57- Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
58- When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
59- Which of the following commands will reduce all consecutive spaces down to a single space?
ANSWERS:
60- Which character, added to the end of a command, runs that command in the background as a child process of the current shell?
61- Which of the following commands will print the last 10 lines of a text file to the standard output?
62- Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
63- Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?
64- What happens after issuing the command vi without any additional parameters?
65- Which of the following command sets the Bash variable named TEST with the content FOO?
66- Which variable defines the directories in which a Bash shell searches for executable commands?
67- Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?
68- Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?
69- What does the command mount -a do?
ANSWERS:
70- Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?
71- Which of the following is the device file name for the second partition on the only SCSI drive?
72- In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)
73- Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?
74- Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?
75- Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?
76- How many fields are in a syntactically correct line of /etc/fstab?
77- SIMULATION
78- Which of the following file permissions belong to a symbolic link?
79- Creating a hard link to an ordinary file returns an error. What could be the reason for this?
80- Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)
81- Which of the following commands will change the quota for a specific user?
82- Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?
83- Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/ creation time and does NOT generate them as needed? (Choose TWO correct answers.)
84- What is the purpose of the Filesystem Hierarchy Standard?
85- SIMULATION
ANSWERS:
Last updated