This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is it possible to copy a file from anywhere to My Documents with bash cp?


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.l.dwiggins@computer.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]