Re: Beginners Linux Questions
- From: "Chris F.A. Johnson" <cfajohnson@xxxxxxxxx>
- Date: Fri, 27 Jan 2006 04:11:11 -0500
On 2006-01-25, bobrics wrote:
>
> 2. What is the shortcut to call the terminal window?
"The" terminal window? You have a choice of several: xterm, rxvt,
konsole, gnome-terminal, eterm, etc...
> 3. In terminal, when I've typed in a line and would like to erase it
> completely, what is the shortcut for that? (similar to ESC in DOS)
The readline command, kill-whole-line, is not bound to any key by
default. You can bind it to whatever key you like, by putting a
line in your ~/.inputrc file. E.g., I have:
"\ek": kill-whole-line
That binds it to Esc-k, which may also be Alt-k.
The default bindings include (C- = Control, M- = Meta):
C-U - Erase from cursor to beginning of line
C-K - Erase from the cursor to the end of the line
C-W - Erase the word to the left of the cursor
M-d - Erase word to the right of the cursor
--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
.
- Follow-Ups:
- Re: Beginners Linux Questions
- From: bobrics
- Re: Beginners Linux Questions
- References:
- Beginners Linux Questions
- From: bobrics
- Beginners Linux Questions
- Prev by Date: Webcam installation under fedora core 4
- Next by Date: Re: ruined partition. Can data be recovered?
- Previous by thread: Re: Beginners Linux Questions
- Next by thread: Re: Beginners Linux Questions
- Index(es):
Relevant Pages
|