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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-04-2003, 12:03 AM
|
#1
|
Member
Registered: May 2003
Distribution: redhat 9.0
Posts: 113
Rep:
|
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? 
|
|
|
07-04-2003, 12:19 AM
|
#2
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
Its really simple:
cp file1 file2 file3 mp3/
<command> name of the files separated by spaces and then the direcotry.
|
|
|
07-04-2003, 12:20 AM
|
#3
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
Also, for moving mp3's u need this command: -
mv (move)
not cp (copy)
|
|
|
07-04-2003, 12:38 AM
|
#4
|
Member
Registered: May 2003
Distribution: redhat 9.0
Posts: 113
Original Poster
Rep:
|
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?
|
|
|
07-04-2003, 12:40 AM
|
#5
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
Yeah man...no problem. rm is the same
|
|
|
07-04-2003, 12:47 AM
|
#6
|
Member
Registered: May 2003
Distribution: redhat 9.0
Posts: 113
Original Poster
Rep:
|
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 06:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|