Lpi LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2 - 101-350 Exam Practice Test

What command will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?
Correct Answer: A
CORRECT TEXT
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Correct Answer:
cmdline, /proc/cmdline
When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?
Correct Answer: D
Which of the following commands is run last during boot on a system with quotas enabled?
Correct Answer: B
Which of the following commands will produce the following output?
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1255 4.4 0.9 60716 34824 tty7 Ss+ 09:25 19:04 /usr/bin/X :0 root 2016 0.0 0.0 1792 560 tty1 Ss+ 09:26 0:00 /sbin/getty -8 matt 5204 0.0 0.1 6320 3696 pts/4 Ss 13:12 0:00 bash matt 5219 0.0 0.0 3988 1624 pts/4 S+ 13:12 0:00 man bash matt 5229 0.0 0.0 3584 932 pts/4 S+ 13:12 0:00 pager -s matt 6768 0.0 0.1 10504 3880 pts/2 S+ 15:11 0:00 vi README.txt
Correct Answer: C
Which of the following commands will print important system information such as the kernel version and machine hardware name?
Correct Answer: E
Which of the following commands will reduce all consecutive spaces down to a single space?
Correct Answer: D
Which of the following commands will print the last 10 lines of a text file to the standard output?
Correct Answer: B
You are experimenting with a binary in /tmp/foo.d that expects its configuration file at /etc/foo.conf. You don't want to save it there, but use a symbolic link to /tmp/foo.d/foo.conf instead. Which command would accomplish that?
Correct Answer: B
After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)
Correct Answer: D,E
Which of the following statements is a TRUE difference between GRUB Legacy and GRUB 2?
Correct Answer: A
CORRECT TEXT
You want to display all currently mounted file systems. Which command would you use? (Please enter only the command without arguments or options)
Correct Answer:
mount, /bin/mount, df, /bin/df
Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
Correct Answer: A
You have read/write permission on an ordinary file foo. You have just run ln foo bar. What would happen if you ran rm foo?
Correct Answer: A