Bash Shell Scripting Quiz Questions and Answers

What is job number?

Answer :
  • a unique number, assigned to each job in shell

Which command allows to view the current jobs being handled by the shell?

Answer :
  • jobs

Which command terminates a running process by the name of the process?

Answer :
  • killall

Command used to count the number of characters in a file is______.

Answer :
  • wc

Which tar command option is used to list the files in a tape archive format?

Answer :
  • tvf

What is the function of the bind command in the bash shell?

Answer :
  • all of the mentioned

Which command is used to re-execute the previous command?

Answer :
  • !!

How do you print the lines between 5 and 10, both inclusive?

Answer :
  • cat filename |head|tail -6

An awk program can be run by?

Answer :
  • All of the mentioned

Which command is used to close the vi editor?

Answer :
  • both q and wq