Linux Tips
Updated December 10, 2002
Created December 10, 2002


Autogenerated Site Map
Search this Site!:
Search this site powered by FreeFind

clear passwrd (CTRL+U)
If you type a password, or even at a regular prompt and you misstyped and would like to erase the entire line you could just hold down the backspace key to erase the whole line. A better (quicker) way is to use the CTRL+U key sequence which deletes from cursor to far left. This works great for keying in passwords when you don't know how many backspaces you need to remove off your password attempt, now with the CTRL+U you don't have to waste an attempt when you know you mistyped.

file name completion (TAB)

remember current directory, do some other junk, then come back to this directory -- also good for when playing with variables and you don't want to modify your current variables.

examine the following sequence:

[riblack@rrb riblack]$ pwd        (I want to come back to this dir. in a minute)
/home/riblack
[riblack@rrb riblack]$ bash       (running another copy of bash will save my prev. environment)
[riblack@rrb riblack]$ cd /tmp    (now I can change directories all I want)
[riblack@rrb tmp]$ pwd
/tmp
[riblack@rrb tmp]$ exit           (now I exit from my bash shell and I'm back in my prev. dir along with my old variables)
exit
[riblack@rrb riblack]$ pwd       (see, "pwd" demonstrates I'm back where I started)
/home/riblack
[riblack@rrb riblack]$

Search this Site!:
Search this site powered by FreeFind

Homepage: http://www.cpqlinux.com
Site Map: http://www.cpqlinux.com/sitemap.html