Re: Scripting a directory change on CentOS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxxxx
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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux