LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-04-2003, 12:03 AM   #1
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Rep: Reputation: 15
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?
 
Old 07-04-2003, 12:19 AM   #2
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Its really simple:

cp file1 file2 file3 mp3/

<command> name of the files separated by spaces and then the direcotry.
 
Old 07-04-2003, 12:20 AM   #3
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

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

mv (move)

not cp (copy)
 
Old 07-04-2003, 12:38 AM   #4
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Original Poster
Rep: Reputation: 15
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?
 
Old 07-04-2003, 12:40 AM   #5
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Yeah man...no problem. rm is the same
 
Old 07-04-2003, 12:47 AM   #6
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Original Poster
Rep: Reputation: 15
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!
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:52 AM.

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
Open Source Consulting | Domain Registration