LinuxQuestions.org
Help answer threads with 0 replies.
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


Closed Thread
  Search this Thread
Old 09-03-2014, 08:38 PM   #1
Cocolate
Member
 
Registered: Jul 2013
Location: I live in an igloo
Distribution: Hoping to fix my Internets! xD
Posts: 107

Rep: Reputation: Disabled
Transfer files and omit duplicates?


Is the command to copy files over from my USB to my Music folder without copying duplicates of the same files:

Code:

cp -u /home/<user>/<device> /media/<user>/Music

I am copying music FROM usb TO music folder.

?

...

UPDATE: no that is not the command because here is my error:

Code:

cp: cannot stat ‘/home/cocolate/PENDRIVE’: No such file or directory

...

Did not work

Code:

cp -u /media/cocolate/PENDRIVE /home/cocolate/Music

Error

Code:

cp: omitting directory ‘/media/cocolate/PENDRIVE’

Try the following:

Code:

cp -uvn /home/<user>/<device> /media/<user>/Music


cp -uvn /home/<user>/<device> /media/<user>/Music
Really appreciate the quick reply solarisguy. This is my error:

Code:

cp: cannot stat ‘/home/cocolate/PENDRIVE’: No such file or directory

PENDRIVE is located at /media/cocolate

Im getting error for every way I tried that */PENDRIVE is no such file or directory.

PENDRIVE is the name of my <device>

(Name of <device> is 100% for sure PENDRIVE)

I ran the command as sudo and I got this error

cp: omitting directory ‘/media/cocolate/PENDRIVE’

This is the command I used

Code:

sudo cp -uvn /media/cocolate/PENDRIVE /home/cocolate/Music

What is my error?

I added -r

now I am seeing lots and lots of text scroll down amidst various titles of my music..

Heres a sample of the string scrolling down. I had a folder inside the USB. I have read that is why I could not copy, but it looks like it isnt copying to my music folder?

Code:

‘/media/cocolate/PENDRIVE/Downloads/Beats by sally bobo - smile.mp3’ -> ‘/home/cocolate/Music/PENDRIVE/Downloads/Beats by sally bobo - smile.mp3’


Its not copying to music is it? Its copying back to the folder its from originally, no?

Code:

-> '/home/cocolate/Music/PENDRIVE/Downloads/*

?

I ran this command

Code:

sudo cp -uvnr /media/cocolate/PENDRIVE /home/cocolate/Music

Please Help!

Ya that was not it was not copying anything. PLEEEASE HEEEELP
 
Old 09-03-2014, 08:41 PM   #2
Cocolate
Member
 
Registered: Jul 2013
Location: I live in an igloo
Distribution: Hoping to fix my Internets! xD
Posts: 107

Original Poster
Rep: Reputation: Disabled
oops omgosh Im sorry I reposted this I thought it was lost please delete.

I am disabled. I am sorry.
 
  


Closed Thread


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
[SOLVED] Transfer files and omit duplicates? Cocolate Linux - Newbie 13 09-04-2014 06:14 AM
Chemistry problem: Identify duplicates and non-duplicates within TWO sdf files robertselwyne Programming 5 12-09-2011 07:20 AM
[SOLVED] Duplicates or hard-linked files? littlebigman Linux - Software 7 07-18-2011 10:14 AM
Merging files and removing near-duplicates TheBigH Linux - Newbie 3 12-02-2009 05:24 PM
Comparing 2 Files for Duplicates Mr_H Linux - Newbie 5 11-09-2005 01:43 PM


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