Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 07-31-2001, 10:17 PM   #1
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.


(using RH7.1)
Old 08-01-2001, 02:33 AM   #2
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, 03:40 AM   #3
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?
cp -r folderA folderB
Old 08-01-2001, 08:08 AM   #4
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.



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-08-2013 12:34 AM
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 01:01 PM
move/copy command Cyberian Linux - Newbie 1 11-23-2004 07:50 AM
KDE 3.2 - How to get the Move to & Copy to Context Menus? muzicman82 Linux - Software 0 02-16-2004 05:32 AM
how to move and copy files.... JMK Linux - Newbie 3 01-22-2004 05:57 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:46 PM.

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