Download your favorite Linux distribution at LQ ISO.
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 02-16-2004, 07:39 PM   #1
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, 07:49 PM   #2
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, 07:55 PM   #3
Senior Member
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

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


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

All times are GMT -5. The time now is 10:24 AM.

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