alias cd..='cd ..'. or alias ls='ls -aF --color=auto'
For example, I use an alias ' win+ ' to get into my Windows 98SE from Debian----
alias win+='mount -t vfat /dev/hda1 /mnt/da1; cd /mnt/da1;
ls'
alias win-='cd; umount /mnt/da1' (to unmount) (I created da1/ in /mnt/
I have multiple Linux distributions installed and can access any of
them from another with aliases constructed along the lines of the above example. I keep them in /root/.bashrc
Just a few minutes ago, I had need of a file which wasn't in knoppix
/dev/ but was available in Lycoris /dev/. Alias came to the rescue. I was in knoppix so I typed ' lyco+ ' and copied the file from Lycoris /dev/ to knoppix /dev/ where it works perfectly..
'Functions' just take up too much space----aliases of compound commands are much more compact and as far as I can tell work as well
as 'Functions'. So, why is everyone so set against using aliases for compound commands? It's like telling bees not to fly because they're aerodynamically unsuited for flight.
alex
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]