Bash Shell Scripting (Linux) Quiz Questions and Answers
Explanation :
’!cat’ will reexecute the last cat command, ‘!3’ will reexecute the third last command and ‘!$’ will execute the last argument of previous 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.
Explanation :
The ASCII value of A is 65.
Answer :
- List the number of users logged in
Explanation :
none
Answer :
- to define a variable within a function for its local scope
Answer :
- by using the parameter variables $1, $2, $3…….
Answer :
- writing expressions next to one another, with no operator
Answer :
- double precision floating point