Repeat Commands
Last updated
What is Repeat Commands?
In the shell, you can easily access and reuse previously executed commands. The most common way to do this is using the up and down arrow keys to navigate through your command history. Alternatively, you can use the history command to view a numbered list of past commands, and then execute a specific command by typing !n, where n is the command's number in the history list. You can also use !! to repeat the last command, or !string to execute the most recent command that starts with "string".
Free resources to learn Repeat Commands
Repeat Commands: common questions
Can I learn Repeat Commands in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Repeat Commands in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Repeat Commands tutorial for beginners?
It is lesson 17 of 166 in the free Shell / Bash roadmap, in stage 6, Repeat Commands. If you are new to Shell / Bash, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.