LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-31-2001, 09:17 PM   #1
matt
Member
 
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62

Rep: Reputation: 15
Angry can move but not copy


Howdy -

I cannot seem to copy a directory I have.

For example, I have a directory of mp3's in my home folder. If I'm working in my home folder, I see something like this when I list:

folderA folderB

Then I issue the command: cp folderA folderB

Then I get:

"cp: omitting directory 'folderA'"

However, this same line works with the 'mv' command.

Ideas?

(using RH7.1)
 
Old 08-01-2001, 01:33 AM   #2
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
this isn't really an error - this just means that there's an empty directory that you're trying to copy, and the cp program essentially ignores it. mv doesn't bother to check whether or not a directory is empty when it moves it, so you don't get the same message.
 
Old 08-01-2001, 02:40 AM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Needs to be recursive?
Code:
cp -r folderA folderB
 
Old 08-01-2001, 07:08 AM   #4
matt
Member
 
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62

Original Poster
Rep: Reputation: 15
Thumbs up

Yes, it needed to be recursive.

Thanks! That was driving me nuts last night.

)M.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete/move/copy files of specific date imsajjadali Red Hat 26 11-07-2013 11:34 PM
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 12:01 PM
move/copy command Cyberian Linux - Newbie 1 11-23-2004 06:50 AM
KDE 3.2 - How to get the Move to & Copy to Context Menus? muzicman82 Linux - Software 0 02-16-2004 04:32 AM
how to move and copy files.... JMK Linux - Newbie 3 01-22-2004 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration