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

in Linux / Unix by (552k points) | 173 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 (552k points)

Related questions

+5 votes
1 answer
asked Nov 17, 2019 in Linux / Unix by backtothefuture (552k points) | 502 views
+5 votes
1 answer
asked Nov 2, 2019 in Linux / Unix by backtothefuture (552k points) | 266 views
+4 votes
1 answer
asked Jun 2, 2020 in Linux / Unix by backtothefuture (552k points) | 295 views
+3 votes
1 answer
asked Feb 17, 2020 in Linux / Unix by backtothefuture (552k points) | 297 views
+3 votes
1 answer
asked Nov 2, 2019 in Linux / Unix by backtothefuture (552k points) | 261 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users