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

LPI 101-400 Free Practice Questions

Q1. - (Topic 3) 

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? 

A. << 

B. <| 

C. !< 

D. &< 

Answer:

Q2. - (Topic 3) 

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

A. uptime 

B. up 

C. top 

D. uname -u 

E. time –up 

Answer: A,C 

Q3. CORRECT TEXT - (Topic 2) 

Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.) 

Answer: update, upgrade 

Q4. - (Topic 3) 

What does the ? symbol within regular expressions represent? 

A. Match the preceding qualifier one or more times. 

B. Match the preceding qualifier zero or more times. 

C. Match the preceding qualifier zero or one times. 

D. Match a literal ? character. 

Answer:

Q5. - (Topic 4) 

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? 

A. mod2fs 

B. fsck 

C. tune2fs 

D. mke2fs 

E. fixe2fs 

Answer:

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

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 3) 

Which of the following files, located in the user home directory, is used to store the Bash history? 

A. .bash_history 

B. .bash_histfile 

C. .history 

D. .bashrc_history 

E. .history_bash 

Answer:

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

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

Q11. 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/ 

Q12. - (Topic 4) 

Which of the following commands can be used to display the inode number of a given file? 

A. inode 

B. ls 

C. ln 

D. cp Answer: B 

Answer:

Q13. - (Topic 4) 

Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.) 

A. chmod +s /tmp 

B. chmod +t /tmp 

C. chmod 1775 /tmp 

D. chmod 4775 /tmp 

E. chmod 2775 /tmp 

Answer: B,C 

Q14. - (Topic 4) 

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

A. By creating an ACL redirection from the old to the new path of the data. 

B. By creating a hard link from the old to the new path of the data. 

C. By creating a symbolic link from the old to the new path of the data. 

D. By running the command touch on the old path. 

E. By mounting the new filesystem on the original path of the data. 

Answer: C,E 

Q15. - (Topic 3) 

Which of the following commands will print the last 10 lines of a text file to the standard output? 

A. cat -n 10 filename 

B. dump -n 10 filename 

C. head -n 10 filename 

D. tail -n 10 filename 

Answer:

Q16. - (Topic 1) 

Which of the following information is stored within the BIOS? (Choose TWO correct answers.) 

A. Boot device order 

B. Linux kernel version 

C. Timezone 

D. Hardware configuration 

E. The system's hostname 

Answer: A,D 

Q17. - (Topic 3) 

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? 

A. i (lowercase) 

B. P (uppercase) 

C. p (lowercase) 

D. U (uppercase) 

E. u (lowercase) 

Answer:

Q18. - (Topic 2) 

Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it? 

A. dd if=/dev/zero of=/dev/sda bs=512 

B. dd if=/dev/zero of=/dev/sda bs=512 count=1 

C. dd if=/dev/zero of=/dev/sda bs=440 count=1 

D. dd if=/dev/zero of=/dev/sda bs=440 

Answer:

START 101-400 EXAM