[CentOS] Scripting a directory change on CentOS

James B. Byrne byrnejb at Harte-Lyne.ca
Mon Jul 30 17:26:50 UTC 2007


On Mon, July 30, 2007 13:02, Johnny Hughes wrote:
>
> In this case the use of an alias is probably what you want ...
>
> alias current='cd /path'
>
> You can then type current at the command prompt can go there.
>
> You can put that command in your .bashrc with your other aliases as well
> to make it persistent across reboots.
>
> Thanks,
> Johnny Hughes
>

and

On Mon, July 30, 2007 13:06, Brent L. Bates wrote:
>      Instead of a script, how about a shell alias?  In the csh shell, I'd
> do
> something like the following:
>
> 	alias cd_project	"cd ./very/long/path/to/whatever"

Thank you both ever so much. I would never have though of using an alias
but that seems the sensible solution.

Sincerely,

-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3




More information about the CentOS mailing list