Bash Shell Scripting Quiz Questions and Answers

Answer :
  • !!

Explanation :

’!cat’ will reexecute the last cat command, ‘!3’ will reexecute the third last command and ‘!$’ will execute the last argument of previous command.
Answer :
  • both find & fix command

Explanation :

’fc -l’ is used to list history of commands and ‘fc -e’ to edit them and ‘history’ command also provides the histroy of commands.
Answer :
  • stops the process running in the shell

Explanation :

Ctrl-Z key combination generates a SIGTSTP signal and stops the process running in the shell.
Answer :
  • A

Explanation :

The ASCII value of A is 65.
Answer :
  • tvf

Explanation :

none
Answer :
  • wc

Explanation :

none
Answer :
  • List the number of users logged in

Explanation :

none
Answer :
  • 2
Answer :
  • full list of all commands
Answer :
  • all of the mentioned