The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 11:56 AM
why is this command not working? wrapster UNIX for Advanced & Expert Users 1 05-02-2008 09:11 AM
Sed command not working shashi_kiran_v UNIX for Dummies Questions & Answers 9 11-15-2006 12:01 AM
cd command not working er_aparna Shell Programming and Scripting 7 07-08-2006 01:38 AM
last command not working antalexi SUN Solaris 3 08-04-2005 10:22 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-21-2006
groundlevel groundlevel is offline
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?
  #2 (permalink)  
Old 03-21-2006
groundlevel groundlevel is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 13
...anyone?
  #3 (permalink)  
Old 03-21-2006
limshady411 limshady411 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Arizona
Posts: 10
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 06:45 PM..
  #4 (permalink)  
Old 03-21-2006
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
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
  #5 (permalink)  
Old 03-22-2006
groundlevel groundlevel is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 13
Ah... sorry
  #6 (permalink)  
Old 03-22-2006
ashterix ashterix is offline
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"
  #7 (permalink)  
Old 03-22-2006
ralmoritz ralmoritz is offline
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'.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0