|
Editing a Bash Command Try typing a long command say, then, type "fc" for an easy way to edit the command. $ find /etc -iname '*.cnf' -exec grep -H 'log' {} \; $ fc "fc" will bring the last command typed into an editor, "emacs" if that's the default editor. Type "fc -l" to list last few commands. To seach for a command, try typing "CTL-r" at the shell prompt for searching. "CTL-t" to transpose, say "sl" was typed by you want "ls". Hints when using "fc: in emacs: ESC-b move one word backward ESC-f move one word forward ESC-DEL kill one word backward CTL-k kill point to end CTL-y un-yank killed region at point
|