The Secret of 101-400 exam question
Proper study guides for Improve LPI LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2 certified begins with LPI 101-400 preparation products which designed to deliver the Top Quality 101-400 questions by making you pass the 101-400 test at your first time. Try the free 101-400 demo right now.
Q31. - (Topic 2)
Which of the following commands is used to update the list of available packages when using dpkg based package management?
A. apt-get update
B. apt-get upgrade
C. apt-cache update
D. apt-get refresh
E. apt-cache upgrade
Answer: A
Q32. - (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: B
Q33. - (Topic 3)
What command will generate a list of user names from /etc/passwd along with their login shell?
A. column -s : 1,7 /etc/passwd
B. chop -c 1,7 /etc/passwd
C. colrm 1,7 /etc/passwd
D. cut -d: -f1,7 /etc/passwd
Answer: D
Q34. - (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: B
Q35. - (Topic 3)
What is the default action of the split command on an input file?
A. It will break the file into new files of 1,024 byte pieces each.
B. It will break the file into new files of 1,000 line pieces each.
C. It will break the file into new files of 1,024 kilobyte pieces each.
D. It will break the file into new files that are no more than 5% of the size of the original file.
Answer: B
Q36. - (Topic 3)
From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)
A. source /usr/local/bin/runme.sh
B. . /usr/local/bin/runme.sh
C. /bin/bash /usr/local/bin/runme.sh
D. /usr/local/bin/runme.sh
E. run /usr/local/bin/runme.sh
Answer: A,B
Q37. - (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: D
Q38. - (Topic 1)
During a system boot cycle, what program is executed after the BIOS completes its tasks?
A. The bootloader
B. The inetd program
C. The init program
D. The kernel
Answer: A
Q39. CORRECT TEXT - (Topic 3)
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
Q40. - (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: B