Advanced

Another way to re-run the previous command

Posted by annamese on · Post a comment
Linux and Life
Mail this story
Print this story

After running a command in the terminal, you can re-call it by simply hitting the up arrow button. Another way to recall the previous command you can use is to type the double exclamation marks ("!!"). In other words, when you run the double exclamation marks in the terminal, the previous command will be executed. This tip can be quite handy when you want to re-run the previous command as root.

Full Story

  Nav
» Read more about: Story Type: Tutorial

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments

No comments yet. Be the first.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post