Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 1
    +1 -- good answer! you could achieve the same thing, even if you're not running X, by using GNU screen (gnu.org/software/screen). Commented Mar 11, 2011 at 1:15
  • 1
    It seemed so obvious that I was hesitant to say it. But everyone else is so busy being clever. :) Commented Mar 11, 2011 at 15:25
  • it's the only answer here which allows the OP to reuse the last line -- everything else entails running the command again, which could be anywhere between utterly irrelevant and catastrophic :) But the OP did say reuse. Commented Mar 11, 2011 at 15:47
  • @simon: Actually, my answer doesn't. Neither does glenn's. Commented Mar 18, 2011 at 1:08
  • @Mikel: True, but they require you doing something beforehand, or correctly the first time. Commented Mar 22, 2011 at 11:27