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.

9
  • 27
    vi $HISTFILE and delete what you want. Use head -n -10 if you have to automate it. Commented Feb 7, 2013 at 12:07
  • Is this question off-topic? or This is not wright place to ask this kind of question? If so, where should I ask this question, I mean where in stack exchange? Commented Feb 7, 2013 at 12:14
  • 1
    Shell commands work the same whether you're logged in locally or via ssh.
    – Barmar
    Commented Feb 7, 2013 at 12:19
  • 3
    Unix and Linux StackExchange (unix.stackexchange.com) is probably a better venue for this question. It's off-topic here because it doesn't relate strictly to programming. Commented Feb 7, 2013 at 12:32
  • 6
    Programming a shell script is the ideal solution to this question, consequently it should be considered related to programming. Not to mention the fact that the OP actually asked specifically for a script.
    – SSH This
    Commented Jan 22, 2014 at 2:26