How do I find previous commands in bash?

Trang Mắm

New member
How do I find previous commands in bash?
Answer
Type Ctrl R and then type part of the command you want. Bash will display the first matching command. Keep typing Ctrl R and bash will cycle through previous matching commands. To search backwards in the history, type Ctrl S instead.
 

Tìm kiếm

Back
Top