Linux Bash Shell Questions & Answers on Built-in Commands for Freshers

https://www.computersprofessor.com/2018/07/linux-bash-shell-questions-answers-on_27.html
1. Which command sets up shorthand for command or command line?
a) set
b) alias
c) new
d) echo
Answer: b
2. What is the function of bind command in bash shell?
a) defining new macros
b) defining new key bindings for existing commands
c) dumping the installed key bindings
d) all of the mentioned
Answer: d
3. The command ‘compgen -c’ shows
a) all variable names
b) all system wide aliases
c) full list of all commands
d) none of the mentioned
Answer: c
4. Which statement resumes the next iteration of a for, while, select, or untill loop?
a) continue
b) break
c) complete
d) command
Answer: a
5. Which command prints the directory stack?
a) cd
b) dirs
c) popd
d) pushd
Answer: b
6. The command ‘disown -r’
a) removes all jobs
b) removes all running jobs
c) marks jobs to not receive SIGHUP when bash exits
d) marks all jobs
Answer: b
7. The command ‘enable -n ‘
a) enables the specified built-in command
b) disables the specified built-in command
c) print the status of the command
d) none of the mentioned
Answer: b
8. Which command can create environment variable?
a) export
b) set
c) read
d) none of the mentioned
Answer: a
9. Which command concatenate the specified argument into a single command, then execute the command?
a) fc
b) eval
c) exec
d) getopts
Answer: b
10. The command ‘hash’
a) manages a internal hash table
b) find and remember the full path name of the specified command
c) displays used command names and the number of hits
d) all of the mentioned
Answer: d
a) shutdown the computer
b) logoff of the computer
c) logout the current user
d) to exit the current shell
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
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
a) -l
b) -n
c) -s
d) -a
a) dirs
b) popd
c) pushd
d) rm
a) sleep
b) suspend
c) disown
d) break
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
a) type
b) typeset
c) select
d) source
a) sleep
b) wait
c) delay
d) stop
a) time
b) times
c) both time and times
d) none of the mentioned
a) shutdown the computer
b) logoff of the computer
c) logout the current user
d) to exit the current shell
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
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
a) -l
b) -n
c) -s
d) -a
a) dirs
b) popd
c) pushd
d) rm
a) sleep
b) suspend
c) disown
d) break
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
a) type
b) typeset
c) select
d) source
a) sleep
b) wait
c) delay
d) stop
a) time
b) times
c) both time and times
d) none of the mentioned
11. 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
Answer: d
12. 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
Answer: a
13. 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
Answer: a
14. Which option of the kill command sends the given signal name to the specified process?
a) -l
b) -n
c) -s
d) -a
Answer: c
15. Which command removes a directory from directory stack?
a) dirs
b) popd
c) pushd
d) rm
Answer: b
16. Which command puts a script to sleep untill a signal is recieved?
a) sleep
b) suspend
c) disown
d) break
Answer: b
17. 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
Answer: c
18. Which command identifies the resource of a command?
a) type
b) typeset
c) select
d) source
Answer: a
19. Which command wait for the specified process to complete and return the exit status?
a) sleep
b) wait
c) delay
d) stop
Answer: b
20. 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
Answer: b
21. 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
Answer: d
22. 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
Answer: a
23. 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
Answer: a
24. Which option of the kill command sends the given signal name to the specified process?
a) -l
b) -n
c) -s
d) -a
Answer: c
25. Which command removes a directory from directory stack?
a) dirs
b) popd
c) pushd
d) rm
Answer: b
26. Which command puts a script to sleep untill a signal is recieved?
a) sleep
b) suspend
c) disown
d) break
Answer: b
27. 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
Answer: c
28. Which command identifies the resource of a command?
a) type
b) typeset
c) select
d) source
Answer: a
29. Which command wait for the specified process to complete and return the exit status?
a) sleep
b) wait
c) delay
d) stop
Answer: b
30. 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
Answer: b