+4 votes
161 views
How to list previously entered commands in Linux?

in Linux / Unix by (551k points) | 161 views

1 Answer

+5 votes
Best answer

The more commands you enter, the harder it will be to find it again in the command line history. In such cases, you will get ahead faster with the search built into the shell. Press the keyboard shortcut [Ctrl-R] ​​and type in a sequence of letters that appears in this command. The shell then returns the last command containing this string of letters. Once you find what you are looking for, press [Return] to execute the command. Or you press the [Esc] key. After that, the command is displayed and you can edit it or scroll back and forth in the command line history from this command

by (551k points)

Related questions

+5 votes
1 answer
asked Nov 17, 2019 in Linux / Unix by backtothefuture (551k points) | 487 views
+5 votes
1 answer
asked Nov 2, 2019 in Linux / Unix by backtothefuture (551k points) | 250 views
+4 votes
1 answer
asked Jun 2, 2020 in Linux / Unix by backtothefuture (551k points) | 279 views
+3 votes
1 answer
asked Feb 17, 2020 in Linux / Unix by backtothefuture (551k points) | 279 views
+3 votes
1 answer
asked Nov 2, 2019 in Linux / Unix by backtothefuture (551k points) | 247 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,634 questions
10,766 answers
510 comments
3 users