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 
(13050 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
September 29, 2024Last update

LPI 101-400 Free Practice Questions

Q1. CORRECT TEXT - (Topic 4) 

Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.) 

Answer: quotacheck 

Q2. - (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:

Q3. - (Topic 4) 

How many fields are in a syntactically correct line of /etc/fstab? 

A. 3 

B. 4 

C. 5 

D. 6 

E. 7 

Answer:

Q4. - (Topic 1) 

During a system boot cycle, what program is executed after the BIOS completes its tasks? 

A. The bootloader 

B. The inetd program 

C. The init program 

D. The kernel 

Answer:

Q5. - (Topic 3) 

Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.) 

A. < 

B. <<< 

C. > 

D. >>> 

E. %> 

Answer: A,B,C 

Q6. - (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:

Q7. CORRECT TEXT - (Topic 2) 

Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.) 

Answer: /tmp, tmp, /var/tmp, /tmp/, /var/tmp/ 

Q8. - (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:

Q9. - (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:

Q10. - (Topic 2) 

Which RPM command will output the name of the package which supplied the file /etc/exports? 

A. rpm -F /etc/exports 

B. rpm -qf /etc/exports 

C. rpm -Kl /etc/exports 

D. rpm -qp /etc/exports 

E. rpm -qi /etc/exports 

Answer:

Q11. - (Topic 3) 

What happens after issuing the command vi without any additional parameters? 

A. vi starts and loads the last file used and moves the cursor to the position where vi was when it last exited. 

B. vi starts and requires the user to explicitly either create a new or load an existing file. 

C. vi exits with an error message as it cannot be invoked without a file name to operate on. 

D. vi starts in command mode and opens a new empty file. 

E. vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text. 

Answer:

Q12. - (Topic 2) 

Which of the following commands lists all currently installed packages when using RPM package management? 

A. yum --query --all 

B. yum --list --installed 

C. rpm --query --all 

D. rpm --list –installed 

Answer:

Q13. 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 

Q14. CORRECT TEXT - (Topic 2) 

In which directory must definition files be placed to add additional repositories to yum? 

Answer: /etc/yum.repos.d, /etc/yum.repos.d/, yum.repos.d, yum.repos.d/ 

Q15. - (Topic 4) 

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? 

A. tune2fs -d 200 /dev/sda1 

B. tune2fs -c 200 /dev/sda1 

C. tune2fs -i 200 /dev/sda1 

D. tune2fs -n 200 /dev/sda1 

E. tune2fs --days 200 /dev/sda1 

Answer:

Q16. - (Topic 4) 

Which of the following commands can be used to locate programs and their corresponding man pages and configuration files? 

A. dirname 

B. which 

C. basename 

D. query 

E. whereis 

Answer:

Q17. - (Topic 2) 

Which of the following commands can be used to download the RPM package kernel without installing it? 

A. yum download --no-install kernel 

B. yumdownloader kernel 

C. rpm --download --package kernel 

D. rpmdownload kernel 

Answer:

Q18. - (Topic 3) 

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file? 

A. fmt -f 1,4 /etc/passwd 

B. split -c 1,4 /etc/passwd 

C. cut -d : -f 1,4 /etc/passwd 

D. paste -f 1,4 /etc/passwd 

Answer:

START 101-400 EXAM