royong
16-07-2009, 09:22
This isn't really a HOWTO. Its more a tech tip to make life easier.
I tend to structure my directories and sometimes find it chore to work with long embedded directories. Imagine the following directories that I need to work with on the command line
/home/roy/data/business/client001/project009/20090616/scratchpad
/home/roy/data/business/client001/project008/20090515/scratchpad
/home/roy/data/business/client001/project006/20090214/scratchpad
Typing and working out the absolute path is too tough on my fingers. As such, I do the following
mount --bind /home/roy/data/business/client001 /mnt
Thereafter, all my paths will be shorten to ...
/mnt/project009/20090616/scratchpad
/mnt/project008/20090515/scratchpad
/mnt/project006/20090214/scratchpad
I tend to structure my directories and sometimes find it chore to work with long embedded directories. Imagine the following directories that I need to work with on the command line
/home/roy/data/business/client001/project009/20090616/scratchpad
/home/roy/data/business/client001/project008/20090515/scratchpad
/home/roy/data/business/client001/project006/20090214/scratchpad
Typing and working out the absolute path is too tough on my fingers. As such, I do the following
mount --bind /home/roy/data/business/client001 /mnt
Thereafter, all my paths will be shorten to ...
/mnt/project009/20090616/scratchpad
/mnt/project008/20090515/scratchpad
/mnt/project006/20090214/scratchpad