LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-16-2004, 06:39 PM   #1
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Rep: Reputation: 30
moving files and folders thru command line


I have mounted a partition that has music on it. I have a /nt/d/FTP/music/
This is where the music is. Now in the music folder is the songs in folders by their artists. I have a lot of them and I dont want to keep doing all these cp. Is there a command that I can do to just move all these at once?
 
Old 02-16-2004, 06:49 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
i dont know if theres a single comand but a bash script might be able to do it (i aint good at scriptsing so i dont knwo how it would be done),

mybe try (hmmm i think that is jsut 1 comand?)

mv /nt/d/FTP/music/*/* /music/werever/you/want
 
Old 02-16-2004, 06:55 PM   #3
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
cp with the -R (recursive) option will work.
 
  


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
Moving files from the command line adam-red Linux - Newbie 5 12-06-2004 04:42 AM
rename files on a command line? CrazyPilot Linux - General 9 06-30-2004 04:10 PM
How do I edit files in command line sweb74 Linux - Newbie 13 01-27-2004 10:53 PM
Running .sh files from the command line zulu1_hl Linux - Newbie 3 11-01-2002 12:05 PM
Editing files at command line Goatdemon Linux - Newbie 15 08-12-2002 11:56 AM


All times are GMT -5. The time now is 01:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration