delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/16/08:27:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 16 Jan 2003 14:27:14 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How can I abbreviate /cygdrive/DRIVELETTER ?
Message-ID: <20030116132714.GB1373@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <13016 DOT 1042722817 AT www63 DOT gmx DOT net>
Mime-Version: 1.0
In-Reply-To: <13016.1042722817@www63.gmx.net>
User-Agent: Mutt/1.4i

On Thu, Jan 16, 2003 at 02:13:37PM +0100, svartsjel AT gmx DOT 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 AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019