LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   using cp and rm (https://www.linuxquestions.org/questions/linux-newbie-8/using-cp-and-rm-69987/)

durden2.0 07-04-2003 12:03 AM

using cp and rm
 
Well I can't seem to find what I am looking for anywhere. I figure you guys can help and its a n00b question for sure. Well when using cp how can I copy multiple files to the same directory? For example, say I want to take 6 different mp3s and move them from the current directory all to another directory. This question also goes for using rm when deleting things. How can I delete multiple files in the same command, say different files inside one directory? Thanks sooo much cuz this really puzzles me, I wonder if its possible? :)

ksgill 07-04-2003 12:19 AM

Its really simple:

cp file1 file2 file3 mp3/

<command> name of the files separated by spaces and then the direcotry.

ksgill 07-04-2003 12:20 AM

Also, for moving mp3's u need this command: -

mv (move)

not cp (copy)

durden2.0 07-04-2003 12:38 AM

Well thanks for the help I wasn't sure if that would work. Sorry about the clarfication, I meant to copy the files instead of saying move. Thanks for the help again though! Ok so how about using rm to remove multiple files is it the same?

ksgill 07-04-2003 12:40 AM

Yeah man...no problem. rm is the same

durden2.0 07-04-2003 12:47 AM

Sweet I guess my n00b is showing lol :) Well I guess I should have tried that but just didnt bother cause didn't know. Anywho thanks again!


All times are GMT -5. The time now is 09:44 AM.