How can I add a command to the Bash history without executing it?
- by Grumbel
Every now and then it would be useful to add a command directly to the history in Bash without actually executing it. So far the closed thing I have found is adding a # in front of it and hitting return. Are there better ways?