Linux Bash Arithmetic Expressions Question: Download Questions PDF
Which command is used to re-execute the previous command?
a) !!
b) !cat
c) !3
d) !$
Answer:
a) !!
Explanation:'!cat' will re-execute the last cat command, '!3′ will re-execute the third last command and '!$' will execute the last argument of previous command.
Explanation:'!cat' will re-execute the last cat command, '!3′ will re-execute the third last command and '!$' will execute the last argument of previous command.
Download Linux Bash Arithmetic Expressions Interview Questions And Answers
PDF