The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Command not working preethgideon UNIX for Dummies Questions & Answers 3 05-14-2008 08:56 AM
why is this command not working? wrapster UNIX for Advanced & Expert Users 1 05-02-2008 06:11 AM
Sed command not working shashi_kiran_v UNIX for Dummies Questions & Answers 9 11-14-2006 08:01 PM
cd command not working er_aparna Shell Programming and Scripting 7 07-07-2006 10:38 PM
last command not working antalexi SUN Solaris 3 08-04-2005 07:22 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-20-2006
Registered User
 

Join Date: Nov 2005
Posts: 13
cp command not working

Hi--

I'm trying to use the cp command, and I keep getting there is no such directory. But I've checked, and the directory is certainly there.

Please keep in mind this is OS X, 10.4.4 to be exact.

Here's my output:

myuser$ cp -r "/Firewire 400/users/myuser/new Files/Flip4Mac WMV.mpkg" "/Firewire 400/users/myuser/desktop/new files"
cp: /Firewire 400/users/myuser/new Files/Flip4Mac WMV.mpkg: No such file or directory


Firewire 400 is the boot drive.

Here's the output showing the file is in the specified location:

/ myuser$ ls
Applications Volumes
...more files...
Desktop DF mach
...more files...
Users var
/ myuser$ cd users
/users myuser$ ls
Shared myuser
/users myuser$ cd myuser
/users/myuser myuser$ ls
Applications Movies Pictures
...more files...
Library New Files Sites
MPEG PAR Temporary Items
/users/myuser myuser$ cd "New Files"
/users/myuser/New Files myuser$ ls
Capture Data.app
...lots more files....
Fink-0.8.0-Installer.dmg
FinkCommander_0.5.4.dmg
Firefox 1.5.dmg
Flip4Mac WMV.mpkg
...lots more files...
/users/myuser/New Files myuser$

What am I doing wrong?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-21-2006
Registered User
 

Join Date: Nov 2005
Posts: 13
...anyone?
Reply With Quote
  #3 (permalink)  
Old 03-21-2006
Registered User
 

Join Date: Aug 2005
Location: Arizona
Posts: 6
it may not like the spaces for the directory name(s)...perhaps use asterisk (*) in place of the spaces?

Last edited by limshady411; 03-21-2006 at 02:45 PM.
Reply With Quote
  #4 (permalink)  
Old 03-21-2006
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Quote:
Originally Posted by groundlevel
...anyone?
Please note that bumping up your questions is against our rules.

Cheers
ZB
Reply With Quote
  #5 (permalink)  
Old 03-22-2006
Registered User
 

Join Date: Nov 2005
Posts: 13
Ah... sorry
Reply With Quote
  #6 (permalink)  
Old 03-22-2006
Registered User
 

Join Date: Nov 2005
Location: cyberjaya
Posts: 85
how about you cd into the directory 1st then cp

cd "/Firewire 400/users/myuser/new Files/
cp Flip4Mac WMV.mpkg "/Firewire 400/users/myuser/desktop/new files"
Reply With Quote
  #7 (permalink)  
Old 03-22-2006
Registered User
 

Join Date: Mar 2006
Location: Durban, South Africa
Posts: 7
You need to escape the spaces in the path, so `/Long Name'
becomes `/Long\ Name'.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0