How to save a command in the shell history without executing it

Enter the command line and hit the keys:

[CTRL] + [#]

This will put a # in front of the command and execute it. The shell will take it as comment.

Share this page:

Suggested articles

2 Comment(s)

Add comment


By: Anonymous

if you live in Paderborn (Germany) it`s [ALT] + [#]


Not working for me in RHEL 4.5