shell

Ctrl-X-E

With this keystroke combination, you open the editor specified by the $EDITOR variable (or emacs if the variable is not set).
Once you write the file and quit, bash will execute the commands written in the editor. This is especially useful when you want to write a small script.

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*Required Fields