★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 101-400 Exam Dumps (PDF & VCE):
Available on: https://www.certleader.com/101-400-dumps.html


Act now and download your LPI 101-400 test today! Do not waste time for the worthless LPI 101-400 tutorials. Download Most recent LPI LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2 exam with real questions and answers and begin to learn LPI 101-400 with a classic professional.

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


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


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


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


Q5. - (Topic 2) 

Which of the following commands lists all currently installed packages when using RPM package management? 

A. yum --query --all 

B. yum --list --installed 

C. rpm --query --all 

D. rpm --list –installed 

Answer:


Q6. CORRECT TEXT - (Topic 2) 

Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.) 

Answer: update, upgrade 


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

Answer:


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


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


Q10. - (Topic 3) 

Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter? 

A. sed '/bob/Bob' letter > newletter 

B. sed s/bob/Bob/ letter < newletter 

C. sed 's/bob/Bob' letter > newletter 

D. sed 's/bob/Bob/g' letter > newletter 

E. sed 's/bob, Bob/' letter > newletter 

Answer: