Our pass rate is high to 98.9% and the similarity percentage between our 101-400 study guide and real exam is 90% based on our seven-year educating experience. Do you want achievements in the LPI 101-400 exam in just one try? I am currently studying for the LPI 101-400 exam. Latest LPI 101-400 Test exam practice questions and answers, Try LPI 101-400 Brain Dumps First.
Q1. - (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
Q2. - (Topic 3)
Which character, added to the end of a command, runs that command in the background
as a child process of the current shell?
A. !
B. +
C. &
D. %
E. #
Answer: C
Q3. - (Topic 3)
Which variable defines the directories in which a Bash shell searches for executable commands?
A. BASHEXEC
B. BASHRC
C. PATH
D. EXECPATH
E. PATHRC
Answer: C
Q4. - (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: C
Q5. - (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
Q6. - (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: C
Q7. - (Topic 4)
Which of the following commands shows the definition of a given shell command?
A. where
B. stat
C. type
D. case
Answer: C
Q8. - (Topic 4)
Which of the following commands can be used to display the inode number of a given file?
A. inode
B. ls
C. ln
D. cp Answer: B
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. CORRECT TEXT - (Topic 2)
Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)
Answer: dpkg-reconfigure
Q11. - (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: A
Q12. - (Topic 1)
Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)
A. startd
B. systemd
C. Upstart
D. SysInit
E. SysV init
Answer: B,C,E
Q13. - (Topic 3)
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
A. cat < myapp | cat > file1.log
B. myapp 0>&1 | cat > file1.log
C. myapp | cat > file1.log
D. myapp | tee file1.log
E. tee myapp file1.log
Answer: D
Q14. - (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: B
Q15. - (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
Q16. - (Topic 3)
What is the difference between the i and a commands of the vi editor?
A. i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
B. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
C. i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
D. i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
Answer: B
Q17. - (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: D
Q18. - (Topic 2)
Which of the following is correct when talking about mount points?
A. Every existing directory can be used as a mount point.
B. Only empty directories can be used as a mount point.
C. Directories need to have the SetUID flag set to be used as a mount point.
D. Files within a directory are deleted when the directory is used as a mount point.
Answer: A