UGU: Unix Guru Universe - Unix Tip #4242- September 22, 2012
- Home : Help
: Today's Tip
Unix Tip #4242- September 22, 2012
AUTO WORD COMPLETION
In tcsh, the TAB key will automatically
complete any name in the current
directory for any application (for pico,
cd, rm, chown)... It will even complete
paths from root.
Soo... If you want to open your .cshrc
from root you do..
"pico /ho"[TAB] -> "pico /home/"
Then continue with "yuo"[tab] -> "yourusername"
Then you get "pico /home/yourusername/"
And then type ".cs"[TAB] -> ".cshrc"
So in the end you get "pico /home/yourusername/.cshrc"
In a lot less stokes...
But say there are 2 users called
yourusername and yourothername.
Well, then the shell will beep, and if
you hit TAB again, you will get a listing
off all the files that start with "you".
You can then continue to the point where
the names differ, and then hit TAB.
This also works for commands.
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
LAST 5 TIPS
- CHANGE THE SUFFIX
- DELETING BLANK LINES USING GREP
- LIMIT THE SIZE OF DATA AREA
- PROBE-SCSI-ALL and IOSTAT
- VI COPY FILE TO FILE
I want to
and get a UGU Tip everyday.
I want to
and NOT get a UGU Tip everyday.
If you have a UNIX TIP let us know, we just may use it:
(All tips become the property of the Unix Guru Universe)
Copyright 1994-2011 Unix Guru Universe