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 
(13335 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 23, 2024Last update

LPI 101-400 Free Practice Questions

Q1. - (Topic 1) 

Which of the following commands will write a message to the terminals of all logged in users? 

A. bcast 

B. mesg 

C. print 

D. wall 

E. yell 

Answer:

Q2. CORRECT TEXT - (Topic 2) 

Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.) 

Answer: swapoff, /sbin/swapoff 

Q3. - (Topic 3) 

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? 

A. -dirmax 

B. -maxdepth 

C. -maxlevels 

D. -n 

E. -s 

Answer:

Q4. - (Topic 3) 

Which of the following shell redirections will write standard output and standard error output to a file named filename? 

A. 2>&1 >filename 

B. >filename 2>&1 

C. 1>&2>filename 

D. >>filename 

E. 1&2>filename 

Answer:

Q5. - (Topic 2) 

Which of the following commands lists the dependencies of a given dpkg package? 

A. apt-cache depends-on package 

B. apt-cache dependencies package 

C. apt-cache depends package 

D. apt-cache requires package 

Answer:

Q6. CORRECT TEXT - (Topic 1) 

Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.) 

Answer: cmdline, /proc/cmdline 

Q7. - (Topic 2) 

Which function key is used to start Safe Mode in Windows NT? 

A. F10 

B. F8 

C. F6 

D. Windows NT does not support Safe Mode 

Answer:

Q8. - (Topic 4) 

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

A. ext2 

B. ext3 

C. ext4 

D. XFS 

E. VFAT 

Answer:

Q9. CORRECT TEXT - (Topic 1) 

Which command will display messages from the kernel that were output during the normal boot sequence? 

Answer: dmesg, /bin/dmesg 

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

Q11. - (Topic 4) 

Which of the following commands shows the definition of a given shell command? 

A. where 

B. stat 

C. type 

D. case 

Answer:

Q12. - (Topic 3) 

What is the effect of the egrep command when the -v option is used? 

A. It enables color to highlight matching parts. 

B. It only outputs non-matching lines. 

C. It shows the command's version information. 

D. It changes the output order showing the last matching line first. 

Answer:

Q13. - (Topic 2) 

When removing a package, which of the following dpkg options will completely remove the files including configuration files? 

A. --clean 

B. --delete 

C. --purge 

D. –remove 

Answer:

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

Q15. - (Topic 4) 

Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.) 

A. /sbin/mke2fs -j /dev/sdb1 

B. /sbin/mkfs -t ext3 /dev/sdb1 

C. /sbin/mkfs -c ext3 /dev/sdb1 

D. /sbin/mke3fs -j /dev/sdb1 

Answer: A,B 

Q16. - (Topic 3) 

Which shell command is used to continue background execution of a suspended command? 

A. & 

B. bg 

C. cont 

D. exec 

E. :& 

Answer:

Q17. - (Topic 4) 

What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command? 

A. The command is SetUID and it will be executed with the effective rights of the owner. 

B. The command will be executed with the effective rights of the group instead of the owner. 

C. The execute flag is not set for the owner. Therefore the SetUID flag is ignored. 

D. The command will be executed with the effective rights of the owner and group. 

Answer:

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

START 101-400 EXAM