How can I abbreviate /cygdrive/DRIVELETTER ?

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Jan 16 14:42:00 GMT 2003


On Thu, Jan 16, 2003 at 02:13:37PM +0100, svartsjel@gmx.net wrote:
> Hi everyone!
> 
> As I often access different drives from within the bash I'm wondering if
> there's a quicker way to get on, say, drive l (a network drive) than entering
> 'cd /cygdrive/l'?

/cygdrive is the so called cygdrive prefix.  `mount --help' reveals:

  Usage: mount [OPTION] [<win32path> <posixpath>]
    [...]
    -c, --change-cygdrive-prefix  change the cygdrive path prefix to <posixpath>

so you can do sth. like

  mount --change-cygdrive-prefix /mnt

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list