Re: Beginners Linux Questions



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
.



Relevant Pages

  • Terminal gets confused when a line exceeds 24 characters
    ... If I type more than 24 characters into the terminal window, navigation ... keys like Home or Ctrl-Left cause the cursor to become out of sync ... If the line is less than 25 characters long, all the navigation keys ...
    (comp.unix.shell)
  • Random rules
    ... For some reason my Word 2000 has decided to put rules in ... When I try to erase them (by putting the ... cursor to the last word of the line above and deleiting, ... Prev by Date: ...
    (microsoft.public.word.pagelayout)
  • Re: Select into a read write cursor
    ... It's not wise to use command ALTER ... erase ... INTO CURSOR T1 READWRITE ... ALTER TABLE T1 RENAME COLUMN NUMBER_A TO NUMBER ...
    (microsoft.public.fox.vfp.forms)
  • Re: SSH display problem
    ... >> when I scroll the cursor down. ... > like you have the right terminal type but not the size. ... > in the terminal window and see what sizes you get. ... The result from stty -a: ...
    (Debian-User)
  • Re: Switch to Sarge lost browser link in Mutt
    ... >> pass the cursor over a URL in the email text, ... >> the terminal window running under Gnome. ... > This is gnome-terminal's doing, whether running under Gnome or not. ...
    (Debian-User)