Linux Bash Shell Questions & Answers – Built-in Commands – 2

This set of Linux / Unix questions and answers focuses Built-in Commands in Linux Bash Shell. This is set-2.

1. The ‘logout’ built in command is used to
a) shutdown the computer
b) logoff of the computer
c) logout the current user
d) to exit the current shell
View Answer

Answer: d
Explanation: None.

2. The command ‘umask -S’
a) prints the current mask using symbolic notation
b) prints the current mask using octal numbers
c) sets the mask to 000
d) sets the mask to 777
View Answer

Answer: a
Explanation: None.

3. The ‘mapfile’ command
a) reads lines of standard input and assigns each to the element of an indexed array
b) reads lines of standard output file
c) reads lines of standard error file
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

4. Which option of the kill command sends the given signal name to the specified process?
a) -l
b) -n
c) -s
d) -a
View Answer

Answer: c
Explanation: None.
advertisement
advertisement

5. Which command removes a directory from directory stack?
a) dirs
b) popd
c) pushd
d) rm
View Answer

Answer: b
Explanation: None.

6. Which command puts a script to sleep untill a signal is recieved?
a) sleep
b) suspend
c) disown
d) break
View Answer

Answer: b
Explanation: None.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

7. The command ‘ulimit’
a) set a limit on specified resource for system users
b) set/show process resource limit
c) set a limit on specified resource for system users & set/show process resource limit
d) none of the mentioned
View Answer

Answer: c
Explanation: None.

8. Which command identifies the resource of a command?
a) type
b) typeset
c) select
d) source
View Answer

Answer: a
Explanation: None.
advertisement

9. Which command wait for the specified process to complete and return the exit status?
a) sleep
b) wait
c) delay
d) stop
View Answer

Answer: b
Explanation: None.

10. Which command prints the accumulated user and system times for processes run from the shell?
a) time
b) times
c) both time and times
d) none of the mentioned
View Answer

Answer: b
Explanation: None.
advertisement

Sanfoundry Global Education & Learning Series – Linux Administration & Programming.

Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.

To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.