Unix Tip #4586- October 1, 2023


SEARCH : Home : Help : Today's Tip

CTRL-D ANOTHER USE


Many Unix Admins use the C shell as their interactive shell.
An often used feature of Csh is file completion - initiated
with 'set filec'. It allows the Csh user to type in partial
file names, and then press escape to get them completed where
possible. A little known side effect of this is that
Control-D (^D) will now generate file listings in the middle of
command lines.

Example 1: (where @ is a space)
host > @^D
Lists the current directory

Example 2:
host >ln -s /usr/^D
Lists the /usr directory

host >tar cvf /dev/nrtape /usr/m^D
Lists all m* files in the /usr directory

In each case, after the listing, you get a new command line and are
placed at the last point of edit.

Very handy if you you know what you wanted to do but forgot what you
wanted to do it with!


This tip generously supported by: mikal.dunn@halliburton.com



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 production.


LAST 5 TIPS
4585 - HIDE THOSE FILES
4584 - TCSH AND RMSTAR
4583 - PERFORMANCE OF CROND TASKS
4582 - SHELL SCRIPTING A SQLPLUS SCRIPT
4581 - I SEE YOU WITH FUSER


I want to SUBSCRIBE and get a UGU Tip everyday.
I want to UNSUBSCRIBE 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)
Email Address:

Yes, email me a Hot Unix Tip everday.

Enter Hot Unix Tip (optional):

Yes, I will support this tip

Captcha (not case sensitive):


Please enter the above letters:


HOME | Flavors | Admin | Network | Security | S/W | Help | Events | Vendors | Careers | Internet
About | Add Link | Feedback | Search

Copyright © 1994-2005 Unix Guru Universe