LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2011, 03:35 AM   #1
xombboxer
Member
 
Registered: Apr 2011
Posts: 63

Rep: Reputation: 0
I cannot copy some files to specific folder


Code:
sudo cp ../../../rootfs_maker_ramdisk drivers/filesystem/ -rf
give below error
Code:
cp: cannot create special file ...._rootfs/dev/hda4': No such device or address
i get this error only in some specific locations
if i dont use sudo then i get permission denied msg

any suggestion?

Last edited by xombboxer; 07-20-2011 at 03:39 AM.
 
Old 07-20-2011, 07:26 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,889

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
The correct command sequence is:
[command] [options] [source] [destination]

In your command, you give:
[command] [source] [destination] [options]

Change this:
Code:
sudo cp ../../../rootfs_maker_ramdisk drivers/filesystem/ -rf
to this
Code:
sudo cp -rf ../../../rootfs_maker_ramdisk drivers/filesystem/
 
Old 07-20-2011, 07:40 AM   #3
xombboxer
Member
 
Registered: Apr 2011
Posts: 63

Original Poster
Rep: Reputation: 0
Nothing to do with command syntax.. it works in fact i tried that also.

Problem here is with permission
 
Old 07-20-2011, 07:49 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by bigrigdriver View Post
The correct command sequence is:
[command] [options] [source] [destination]

In your command, you give:
[command] [source] [destination] [options]
Actually, it doesn't matter.
 
Old 07-21-2011, 04:52 AM   #5
xombboxer
Member
 
Registered: Apr 2011
Posts: 63

Original Poster
Rep: Reputation: 0
More information:

I am Actually copying from home directory to clearcase view (inside vobs)

Last edited by xombboxer; 07-21-2011 at 04:53 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to automatically copy files off of a cd to a specific folder? valunthar Linux - Software 2 06-24-2011 05:27 PM
rsync to copy specific files kilee Linux - Newbie 4 01-15-2011 08:23 AM
[SOLVED] zipping files into a specific folder josecolella Linux - Newbie 28 01-07-2011 02:33 AM
i need to copy files from one folder to another folder using shell anurupr Linux - Newbie 17 03-04-2010 09:07 AM
How to copy a specific no of files from a group of files biswa_nayak Programming 2 05-11-2008 12:21 PM


All times are GMT -5. The time now is 12:32 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration