[Linuxcommand-discuss] how to (and where) create global shell variables
Brought to you by:
bshotts
|
From: Mertens B. <bra...@li...> - 2002-11-24 14:49:45
|
Hi, There are a couple of directories that I need frequently in certain commands (cd, cp, mv,...) is it possible to create variables that hold these paths? e.g. instead of typing: cd /mnt/shared/music/lyrcis type: cd $LYRICS (where $LYRICS is /mnt/shared/music/lyrcis) Can I simply add 'LYRICS="/mnt/shared/music/lyrcis"' to my '~/.bashrc'? Or is there a better way? TIA -- # Mertens Bram "M8ram" <bra...@li...> Linux User #249103 # # Red Hat Linux 7.3 KDE 3.0.0-10 kernel 2.4.18-3 i686 128MB RAM # # 3:43pm up 4 days, 4:33, 3 users, load average: 1.68, 1.11, 0.94 # |