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:

2 Comment(s)

Add comment

Comments

From: Anonymous

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

From: VIKAS

Not working for me in RHEL 4.5