home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!caen!umeecs!nova!ellis
- From: ellis@nova.gmi.edu (Stew Ellis)
- Subject: Re: looking a utility to chdir without typing full path
- Message-ID: <ellis.726680574@nova>
- Sender: news@zip.eecs.umich.edu (Mr. News)
- Organization: GMI Engineering&Management Institute, Flint, MI
- References: <1ikvt1INNqq2@usenet.INS.CWRU.Edu> <1993Jan9.005220.19993@cs.sandia.gov> <18350@autodesk.COM>
- Date: Sun, 10 Jan 1993 15:42:54 GMT
- Lines: 36
-
- In article <1ikvt1INNqq2@usenet.INS.CWRU.Edu> cl820@cleveland.Freenet.Edu (Wei Jin Mai) writes:
- >
- > I just switch to Unix from Dos. Is there a utility or shell that let you
- >change directory without typing full path? For example: chdir abc changes
- >working directory to /usr/local/src/abc .
- >--
-
- (Warning, this message may not thread right, I have clipped the orginal
- message from one of the followups.)
-
- The other followups focused on the use of $cdpath. If the original poster
- was simply concerned with saving keystrokes, he should be told that UNIX
- will allow wildcards embedded within pathnames as long as the expanded paths
- are unique. For example, on many machines I use 'cd /u*/lo*/b*' will change
- me to /usr/local/bin. Before I had access to a reasonable shell I
- frequently used this. Any reasonable shell will also allow aliases, so the
- user could assign a series of aliases to cd to frequently entered but hard
- to type directories. Also any reasonable shell will do directory,file and
- command completion when you type <TAB>, so 'cd /u<TAB>lo<TAB>b<TAB>' will
- complete to the same directory name as above.
-
- In this day and age no one should use Bourne shell (/bin/sh) or the
- unadorned csh as their login shell, even though as much shell programming as
- possible ought to be confined to /bin/sh. ksh almost cuts it, but lacks
- command completion, plus the completion keystrokes are clumsier. Every
- system should have one of the freely available(another problem with ksh)
- shells tcsh, bash or zsh installed to be used as a login shell.
-
- In UNIX there are always alternative ways to skin cat(1v). :)
-
-
- --
- ___________________
- R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765 / _____ ______
- Humanities & Social Science, GMI Eng.& Mgmt. Inst. / / / / / /
- Flint, MI 48504 ellis@nova.gmi.edu /________/ / / / /
-