Which of the following symbols are used for accessing previous commands by event numbers?

Đinh Yến

New member
Which of the following symbols are used for accessing previous commands by event numbers?
A. !
B. r
C. $
D. ! and r
 
Answer: d
Explanation: The ! symbol (r in Korn) is used to repeat previous commands. For repeating the last command we have to use !! in bash and r in Korn. We can repeat other commands also, but with the event number as an argument. For example, following commands will repeat the command with event number 38,
Code:
$ !38      // in bash 
$ r 38     // in Korn
 

Tìm kiếm

Back
Top