Exam Code: 010-150 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Linux Essentials
Certification Provider: LPI
Free Today! Guaranteed Training- Pass 010-150 Exam.
Q41. Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file? (Choose two)
A. grep -v fred data_file
B. grep '[f]red' data_file
C. egrep fred data_file
D. grep '[Ff]red' data_file
E. grep -i fred data_file
Answer: D, E
Q42. When a new user is added, where does his user ID gets stored?
A. /etc/users
B. /etc/realm
C. /etc/pass
D. /etc/shpasswd
E. /etc/passwd
Answer: E
Q43. What is the command that will show system boot time messages?
A. dmesg
B. echo
C. lspci
D. display system boot
E. messages
Answer: A
Q44. Which of the following commands will display a list all files in the current directory including the hidden files?
A. ls -a
B. ls --hidden
C. ls -h
D. ls –a
Answer: A
Q45. What is the output of the following command sequence? for token in a b c; do echo -n "$token "; done
A. anbncn
B. a b c
C. "a " "b " "c "
D. token token token
E. abc
Answer: B
Q46. Which command shows all of the directories that the shell searches for programs?
A. less $PWD B. echo $PATH
C. more $ALL_PATH
D. get $PATH
E. cat $PATH
Answer: B
Q47. You have a program called /usr/bin/foo. You wish to create a symbolic link, /home/user/foo, that points to it. Which command will do this task?
A. ln -sym /home/user/foo /usr/bin/foo
B. ln -s /usr/bin/foo /home/user/foo
C. ln /home/user/foo /usr/bin/foo
D. ln /usr/bin/foo /home/user/foo
E. ln --symlink /home/user/foo /usr/bin/foo
Answer: B
Q48. How can the normal output of a command be written to a file while discarding the error output?
A. command >2>file 1&>/dev/null
B. command < output > /dev/null
C. command > discard-error > file
D. command > /dev/null 2&>1 output
E. command >file 2>/dev/null
Answer: E