delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/23/15:13:52

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
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Don Dwiggins <dond AT advancedmp DOT com>
Subject: Re: Is it possible to copy a file from anywhere to My Documents with bash cp?
Date: 23 Oct 2002 12:13:34 -0700
Lines: 18
Message-ID: <uwuo9ezoh.fsf@advancedmp.com>
References: <3B2480653E7D2C4E8AA5699598D691C4230092 AT xch-se-03 DOT se DOT nos DOT bo eing.com> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20021023095859 DOT 01fdfee8 AT pop3 DOT cris DOT com>
NNTP-Posting-Host: 207.12.247.2
Mime-Version: 1.0
X-Trace: main.gmane.org 1035400352 735 207.12.247.2 (23 Oct 2002 19:12:32 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Wed, 23 Oct 2002 19:12:32 +0000 (UTC)
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2

Randall R Schulz writes:
> You should be able to see the contents of your "My Documents" directory with
> this command:

> % ls -l "$USERPROFILE/My Documents"

> Likewise, you can move or copy files to that directory like this:

> % cp SomeFile "$USERPROFILE/My Documents"
> % mv OtherFile "$USERPROFILE/My Documents"

As a final wrinkle, if you're going to do this a lot, you might want to do
something like "mount -u "$USERPROFILE/My Documents" /mydocs"; then you can
say things like "mv furniture /mydocs".
-- 

Don Dwiggins				"Solvitur Ambulando"
d DOT l DOT dwiggins AT computer DOT org



--
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