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 at: 2006-08-14 08:17:53

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

From: VIKAS at: 2010-06-22 09:48:07

Not working for me in RHEL 4.5