We can also execute previous commands by context.

Minh Tung

New member
We can also execute previous commands by context.
A. True
B. False
 
Answer: a
Explanation: It may happen that we don’t remember the event numbers of the commands except for the immediately preceding two or three, but we remember that the command started with a specific letter or string. In such a case, we can execute previous commands by context by using ‘v’ along with ! or r. For example,
Code:
$ !v        // repeat last command beginning with v (in bash)
$ rv        // repeats last command beginning with v (in Korn)
 

Tìm kiếm

Back
Top