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 03-09-2014, 03:22 PM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 400

Rep: Reputation: Disabled
cp -R -i dont copy that folder contents


Hello,

i dont understand why this dont copy the folder contents. It worked for another folders, but this not:

Code:
[root@icph backup]# false | cp -R -i /tempmove/etc /etc 2>/dev/null
[root@icph backup]# ls -l /etc/yum.repos.d
total 60
-rw-r--r-- 1 root root 1926 Oct  7 16:54 CentOS-Base.repo
-rw-r--r-- 1 root root  636 Oct  7 16:54 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root  626 Oct  7 16:54 CentOS-Media.repo
-rw-r--r-- 1 root root 7574 Oct  7 16:54 CentOS-Vault.repo
-rw-r--r-- 1 root root  954 Aug 11  2010 epel.repo
-rw-r--r-- 1 root root 1054 Aug 11  2010 epel-testing.repo
-rw-r--r-- 1 root root  389 Mar  9 10:12 lxlabs.repo
-rw-r--r-- 1 root root 2179 Mar  9 10:12 openvz.repo
[root@icph backup]# ls -l /tempmove/etc/yum.repos.d
total 56
-rw-r--r-- 1 root root 1926 Jan 11  2013 CentOS-Base.repo
-rw-r--r-- 1 root root  636 Jan 11  2013 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root  626 Jan 11  2013 CentOS-Media.repo
-rw-r--r-- 1 root root 6846 Jan 11  2013 CentOS-Vault.repo
-rw-r--r-- 1 root root  954 Aug 11  2010 epel.repo
-rw-r--r-- 1 root root 1054 Aug 11  2010 epel-testing.repo
-rw-r--r-- 1 root root  389 Apr 22  2013 lxlabs.repo
-rw-r--r-- 1 root root  739 Nov 12  2010 mirrors-rpmforge
-rw-r--r-- 1 root root  717 Nov 12  2010 mirrors-rpmforge-extras
-rw-r--r-- 1 root root  728 Nov 12  2010 mirrors-rpmforge-testing
-rw-r--r-- 1 root root 2179 Apr 22  2013 openvz.repo
-rw-r--r-- 1 root root 1113 Nov 12  2010 rpmforge.repo
-rw-r--r-- 1 root root  181 Aug 14  2013 solusvm.repo
as you can see it was extracted but when i do coppy it, it is not in /etc/yum.repos.d

Last edited by postcd; 03-09-2014 at 03:25 PM.
 
Old 03-09-2014, 03:55 PM   #2
Sydney
Member
 
Registered: Mar 2012
Distribution: Scientific Linux
Posts: 147

Rep: Reputation: 36
2> /dev/null sends the error stream to nowhere. The messages the OS gives you upon failure can help in figuring out why the failure occurred.
 
Old 03-09-2014, 04:15 PM   #3
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Arch
Posts: 3,013

Rep: Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225
I think you'll find your files under /etc/etc.
 
  


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
Extracting the contents of a folder in a CPIO archive to another folder Refractor Linux - Software 4 07-10-2012 06:12 PM
Scripts to list folder contents and copy images from folder and subfolders brunces Linux - Newbie 6 11-03-2011 02:23 PM
Bash script to copy contents of folder brian.m Linux - General 8 05-01-2009 07:08 PM
want to 'tar' a folder without some contents of folder shipon_97 Linux - Newbie 5 10-13-2007 05:21 AM
Dont show window contents whilst dragging in GNOME dangerousdave Linux - Newbie 2 08-25-2005 05:08 PM


All times are GMT -5. The time now is 06:53 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