LX0-103 Premium Bundle

LX0-103 Premium Bundle

CompTIA Linux+ [Powered by LPI] 1 Certification Exam

4.5 
(33390 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 23, 2024Last update

CompTIA LX0-103 Free Practice Questions

Q1. - (Topic 3) 

What is the default nice level when a process is started using the nice command? 

A. -10 

B. 10 

C. 20 

D. 0 Answer: B 

Topic 4, Devices, Linux Filesystems, Filesystem Hierachy Standard 

Answer:

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

Q3. - (Topic 3) 

Which grep command will print only the lines that do not end with a / in the file foo? 

A. grep '/$' foo 

B. grep '/#' foo 

C. grep -v '/$' foo 

D. grep -v '/#' foo 

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

Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.) 

A. shutdown -R 1 now 

B. shutdown -single now 

C. init 1 

D. telinit 1 

E. runlevel 1 

Answer: C,D 

Q6. - (Topic 4) 

What does the command mount -a do? 

A. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted. 

B. It shows all mounted file systems that have been automatically mounted. 

C. It opens an editor with root privileges and loads /etc/fstab for editing. 

D. It ensures that all file systems listed with the option auto in /etc/fstab are mounted. 

E. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options. 

Answer:

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

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

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

Q10. CORRECT TEXT - (Topic 3) 

CompTIA LX0-103 : Practice Test 

Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.) 

Answer: HISTFILE 

Q11. - (Topic 3) 

What is the purpose of the Bash built-in export command? 

A. It allows disks to be mounted remotely. 

B. It runs a command as a process in a subshell. 

C. It makes the command history available to subshells. 

D. It sets up environment variables for applications. 

E. It shares NFS partitions for use by other systems on the network. 

Answer:

Q12. - (Topic 3) 

In the vi editor, which of the following commands will copy the current line into the vi buffer? 

A. c 

B. cc 

C. 1c 

D. yy 

E. 1y 

Answer:

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

Q14. CORRECT TEXT - (Topic 3) 

Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.) 

Answer: mkdir, /usr/bin/mkdir 

Q15. - (Topic 1) 

Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.) 

A. shutdown -r now 

B. shutdown -r "rebooting" 

C. telinit 6 

D. telinit 0 

E. shutdown -k now "rebooting" 

Answer: A,C 

Q16. - (Topic 4) 

Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ? 

A. 0017 

B. 0640 

C. 0038 

D. 0027 

Answer:

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

START LX0-103 EXAM