101-400 Premium Bundle

101-400 Premium Bundle

LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2 Certification Exam

4.5 
(35130 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 23, 2024Last update

LPI 101-400 Free Practice Questions

Q1. - (Topic 3) 

In Bash, inserting 1>&2 after a command redirects 

A. standard error to standard input. 

B. standard input to standard error. 

C. standard output to standard error. 

D. standard error to standard output. 

E. standard output to standard input. 

Answer:

Q2. CORRECT TEXT - (Topic 2) 

Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.) 

Answer: dpkg-reconfigure 

Q3. - (Topic 3) 

What is the default nice level when a process is started using the nice command? 

A. -10 

B. 10 

C. 20 D. 0 

Answer:

Q4. - (Topic 3) 

When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process? 

A. -10 

B. 0 

C. 10 

D. 20 

Answer:

Q5. - (Topic 3) 

What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process? 

A. 9 

B. 19 

C. 49 

D. 99 

Answer:

Q6. - (Topic 3) 

Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard? 

A. SIGTERM 

B. SIGINT 

C. SIGSTOP 

D. SIGKILL 

Answer:

Q7. - (Topic 1) 

What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.) 

A. Entries for all possible devices get created on boot even if those devices are not connected. 

B. Additional rules for udev can be created by adding them to /etc/udev/rules.d/. 

C. When using udev, it is not possible to create block or character devices in /dev/ using mknod. 

D. The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup. 

E. The content of /dev/ is stored in /etc/udev/dev and is restored during system startup. 

Answer: B,D 

Q8. - (Topic 4) 

What is the purpose of the Filesystem Hierarchy Standard? 

A. It is a security model used to ensure files are organized according to their permissions and accessibility. 

B. It provides unified tools to create, maintain and manage multiple filesystems in a common way. 

C. It defines a common internal structure of inodes for all compliant filesystems. 

D. It is a distribution neutral description of locations of files and directories. 

Answer:

Q9. - (Topic 3) 

What command will generate a list of user names from /etc/passwd along with their login shell? 

A. column -s : 1,7 /etc/passwd 

B. chop -c 1,7 /etc/passwd 

C. colrm 1,7 /etc/passwd 

D. cut -d: -f1,7 /etc/passwd 

Answer:

Q10. - (Topic 2) 

What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.) 

A. To create RAID 9 arrays. 

B. To dynamically change the size of logical volumes. 

C. To encrypt logical volumes. 

D. To create snapshots. 

E. To dynamically create or delete logical volumes. 

Answer: B,D,E 

Q11. - (Topic 3) 

Which character, added to the end of a command, runs that command in the background 

as a child process of the current shell? 

A. ! 

B. + 

C. & 

D. % 

E. # 

Answer:

Q12. - (Topic 4) 

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? 

A. foo and bar would both be removed. 

B. foo would be removed while bar would remain accessible. 

C. foo would be removed. bar would still exist but would be unusable. 

D. Both foo and bar would remain accessible. 

E. The user is prompted whether bar should be removed, too. 

Answer:

Q13. - (Topic 3) 

Which of the following statements is correct regarding the command foo 1> bar? 

A. The stdout from the command foo is appended to the file bar. 

B. The stdout from the command foo overwrites the file bar. 

C. The command foo receives its stdin from the file bar. 

D. The command foo receives its stdin from the stdout of the command bar. 

E. The stderr from the command foo is saved to the file bar. 

Answer:

Q14. - (Topic 2) 

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? 

A. hidemenu 

B. splash 

C. timeout 

D. showmenu 

Answer:

Q15. - (Topic 1) 

Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target? 

A. systemd.target=rescue.target 

B. systemd.runlevel=rescue.target 

C. systemd.service=rescue.target 

D. systemd.default=rescue.target 

E. systemd.unit=rescue.target 

Answer:

Q16. - (Topic 4) 

Which of the following commands makes /bin/foo executable by everyone but writable only by its owner? 

A. chmod u=rwx,go=rx /bin/foo 

B. chmod o+rwx,a+rx /bin/foo 

C. chmod 577 /bin/foo 

D. chmod 775 /bin/foo 

Answer:

Q17. - (Topic 3) 

What is the output of the following command? 

echo "Hello World" | tr -d aieou 

A. Hello World 

B. eoo 

C. Hll Wrld 

D. eoo Hll Wrld 

Answer:

Q18. CORRECT TEXT - (Topic 3) 

Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.) 

Answer: jobs 

START 101-400 EXAM