LX0-103 Premium Bundle

LX0-103 Premium Bundle

CompTIA Linux+ [Powered by LPI] 1 Certification Exam

4.5 
(20535 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 21, 2024Last update

CompTIA LX0-103 Free Practice Questions

Q1. - (Topic 1) 

Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.) 

A. 0 

B. 1 

C. 3 

D. 5 

E. 6 

Answer: A,E 

Topic 2, Linux Installation and Package Management 

Q2. - (Topic 3) 

In compliance with the FHS, in which of the directories are man pages found? 

A. /usr/share/man 

B. /opt/man 

C. /usr/doc/ 

D. /var/pkg/man 

E. /var/man 

Answer:

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

Q4. - (Topic 4) 

Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH? 

A. apropos 

B. which 

C. find 

D. query 

E. whereis 

Answer:

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

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

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

Q8. CORRECT TEXT - (Topic 4) 

Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.) 

Answer: 0077, 077 

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

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

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

88. - (Topic 3) 

When running the command 

sed -e "s/a/b/" /tmp/file >/tmp/file 

While/tmp/file contains data, why is /tmp/file empty afterwards? 

A. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection. 

B. The command sed did not match anything in that file therefore the output is empty. 

C. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading. 

D. Redirection for shell commands do not work using the > character. It only works using the | character instead. 

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

Q13. - (Topic 4) 

Which of the following file permissions belong to a symbolic link? 

A. -rwxrwxrwx 

B. +rwxrwxrwx 

C. lrwxrwxrwx 

D. srwxrwxrwx 

Answer:

Q14. - (Topic 4) 

After running the command umount /mnt, the following error message is displayed: 

umount: /mnt: device is busy. 

What is a common reason for this message? 

A. The kernel has not finished flushing disk writes to the mounted device. 

B. A user has a file open in the /mnt directory. 

C. Another file system still contains a symlink to a file inside /mnt. 

D. The files in /mnt have been scanned and added to the locate database. 

E. The kernel thinks that a process is about to open a file in /mnt for reading. 

Answer:

Q15. - (Topic 4) 

Which of the following is the device file name for the second partition on the only SCSI drive? 

A. /dev/hda1 

B. /dev/sda2 

C. /dev/sd0a2 

D. /dev/sd1p2 

Answer:

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

Q17. - (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 LX0-103 EXAM