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

LPI 101-400 Free Practice Questions

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

Q2. - (Topic 3) 

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

A. & 

B. bg 

C. cont 

D. exec 

E. :& 

Answer:

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

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

Q5. - (Topic 2) 

Which of the following commands updates the linker cache of shared libraries? 

A. mkcache 

B. soconfig 

C. mkldconfig 

D. lddconfig 

E. ldconfig 

Answer:

Q6. - (Topic 2) 

Which of the following is correct when talking about mount points? 

A. Every existing directory can be used as a mount point. 

B. Only empty directories can be used as a mount point. 

C. Directories need to have the SetUID flag set to be used as a mount point. 

D. Files within a directory are deleted when the directory is used as a mount point. 

Answer:

Q7. - (Topic 4) 

Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.) 

A. FIND 

B. ID 

C. LABEL 

D. NAME 

E. UUID 

Answer: C,E 

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

Q9. - (Topic 2) 

After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect? 

A. kill -HUP $(pidof grub) 

B. grub-install 

C. grub 

D. No action is required 

Answer:

Q10. - (Topic 3) 

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting? 

A. kill -PIPE 123 

B. kill -KILL 123 

C. kill -STOP 123 

D. kill -TERM 123 

Answer:

Q11. - (Topic 3) 

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

A. find /tmp -uid root -print 

B. find -path /tmp -uid root 

C. find /tmp -user root -print 

D. find /tmp -user root 

E. find -path /tmp -user root –print 

Answer: C,D 

Q12. CORRECT TEXT - (Topic 3) 

Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files? 

killall -s _______ daemon 

Answer: HUP, SIGHUP, 1 

Q13. - (Topic 2) 

Which of the following environment variables overrides or extends the list of directories holding shared libraries? 

A. LD_LOAD_PATH 

B. LD_LIB_PATH 

C. LD_LIBRARY_PATH 

D. LD_SHARE_PATH 

E. LD_RUN_PATH 

Answer:

Q14. - (Topic 3) 

Which of the following commands is used to change options and positional parameters for a running Bash? 

A. history 

B. set 

C. bashconf 

D. setsh 

E. envsetup 

Answer:

Q15. - (Topic 3) 

Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt? 

A. file /tmp/myfile.txt 

B. echo "Hello" >/tmp/myfile.txt 

C. sed -ie "s/1/2/" /tmp/myfile.txt 

D. echo -n "Hello" >>/tmp/myfile.txt 

E. touch /tmp/myfile.txt 

Answer:

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

Q17. - (Topic 3) 

Which of the following commands can be used to create a USB storage media from a disk image? 

A. gdisk 

B. dd 

C. cc 

D. fdisk 

E. mount 

Answer:

Q18. - (Topic 3) 

What is the default action of the split command on an input file? 

A. It will break the file into new files of 1,024 byte pieces each. 

B. It will break the file into new files of 1,000 line pieces each. 

C. It will break the file into new files of 1,024 kilobyte pieces each. 

D. It will break the file into new files that are no more than 5% of the size of the original file. 

Answer:

START 101-400 EXAM