delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/25/22:53:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Message-ID: <41F713EE.4000707@cwilson.fastmail.fm>
Date: Tue, 25 Jan 2005 22:52:14 -0500
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Moving to the Desktop
References: <012420051241 DOT 23319 DOT 41F4ECDC000BAA6B00005B172160466648C7CFCCCE969D0E99080C9C0E AT att DOT net> <Pine DOT GSO DOT 4 DOT 61 DOT 0501241113360 DOT 644 AT slinky DOT cs DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.61.0501241113360.644@slinky.cs.nyu.edu>

 > Can anybody help with a single keyboard command that would move the
 > user to the Desktop, usable across all systems?

Well, the following THREE commands will work on any system, and then you 
can easily reference the user's desktop:

mkdir /desktop
foo=`cygpath -D -w`
mount -u [-b|-t] "$foo" /desktop

now "cd /desktop" Just Works(tm).

--
Chuck

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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