LX0-103 Premium Bundle

LX0-103 Premium Bundle

CompTIA Linux+ [Powered by LPI] 1 Certification Exam

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

CompTIA LX0-103 Free Practice Questions

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

Q2. CORRECT TEXT - (Topic 3) 

Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.) 

Answer: jobs 

Q3. - (Topic 4) 

Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created? 

A. File size 

B. Modify timestamp 

C. Link count 

D. Inode number 

E. Permissions 

Answer:

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

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

Q6. - (Topic 3) 

Which of the following commands moves and resumes in the background the last stopped shell job? 

A. run 

B. bg 

C. fg 

D. back 

Answer:

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

Q8. - (Topic 4) 

Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting? 

A. tune2fs -d 200 /dev/sda1 

B. tune2fs -c 200 /dev/sda1 

C. tune2fs -i 200 /dev/sda1 

D. tune2fs -n 200 /dev/sda1 

E. tune2fs --days 200 /dev/sda1 

Answer:

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

Q10. - (Topic 3) 

In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows? 

A. By using the command :repeat followed by the number and the command. 

B. By specifying the number right in front of a command such as 4l or 2yj. 

C. By selecting all affected lines using the shift and cursor keys before applying the command. 

D. By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times. 

Answer:

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

Q12. - (Topic 3) 

Which of the following statements is correct regarding the command foo 1> bar? 

A. The stdout from the command foo is appended to the file bar. 

B. The stdout from the command foo overwrites the file bar. 

C. The command foo receives its stdin from the file bar. 

D. The command foo receives its stdin from the stdout of the command bar. 

E. The stderr from the command foo is saved to the file bar. 

Answer:

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

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

Q15. - (Topic 3) 

A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory? 

A. rmdir '~/\dir' 

B. rmdir "~/\dir" 

C. rmdir ~/'dir' 

D. rmdir ~/\dir 

E. rmdir ~/\\dir 

Answer:

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

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

START LX0-103 EXAM