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

Want to support HowtoForge? Become a subscriber!
Submitted by till (Contact Author) (Forums) on Mon, 2006-08-07 17:42. :: Shell

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.

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by VIKAS (not registered) on Tue, 2010-06-22 10:48.
Not working for me in RHEL 4.5
Submitted by Anonymous (not registered) on Mon, 2006-08-14 09:17.
if you live in Paderborn (Germany) it`s [ALT] + [#]