LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-06-2003, 03:44 PM   #1
portable oxygen
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
Question greetings and request


hello everyone - just found this site while linking through NUMEROUS other linux sites this afternoon. i have been thrown into linux by my job -- don't mind it much because i like learning new things, but i have to be up and running immediately. i am currently trying to follow a maintenance schedule for linux which says to delete files from recyclebin. if i use the rm command, then i have to delte them one at a time? the man page for rm tells how to remove the directory and the files, but i only want to remove the mass amount of files there. any assistance? i will continue reading my manual in the meantime.
 
Old 10-06-2003, 05:21 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
Hello,
I've just moved your thread to Linux - Software. It is an introduction, but it has a question inside, so I think it fits here better.

To answer your question...You don't need to delete one by one...You can use masks..For example
rpm *.tmp
removes all files anding with '.tmp' from the current directory. Be careful when writing mask, there's a problem when you need to restore a file...
 
Old 10-07-2003, 07:40 AM   #3
portable oxygen
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Wink

Thanks Mara - I thought I could use a wildcard but was not positive. I can do a pwd to be sure of my location, then execute rm *.* to remove all files in the recycle bin? I guess I need to find a book that says : "if you do this in DOS, you do it this way in Linux". If anyone knows of such a reference, please post the book info.
 
Old 10-07-2003, 04:24 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
Your recycle bin is in /home/Desktop. Directory name is 'Recycle Bin' in your language. To delete everything here use
cd /home/yourlogin/Desktop/Recycle\ Bin
rm *
Note that if you use 'rm *.*' you won't delete all the files. Only those with '.' inside.
 
Old 10-07-2003, 06:13 PM   #5
bigVoice
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandrake 10
Posts: 237

Rep: Reputation: 30
Welcome Portable Oxygen.

If you need to be running *yesterday* consider using a disto that will get you up and running fast. My personal favourite is Mandrake, but I've also had good experiences with Redhat and Suse. If you have any "say" over what flavour you use, any of these 3 would be worth your time.

Regardless of which disto you pick, make sure you are running it with KDE or Gnome (the "GUIs"). Then you'll have a pretty recycle (trash) bin, a "My Documents" (documents in your home directory), shortcuts to "My Computer", etc, etc.

Good luck!
 
Old 10-07-2003, 06:38 PM   #6
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
yes likewise you can do the big rm-rf [delete without any questions whatsoever] if you run this command be sure you can type properly and always double check just in case.
ie.
rm -rf / usr/your_bad_file will delete your whole / directory
wheras
rm -rf /usr/your_bad_file will delete your_bad_file
see the difference????
 
Old 10-07-2003, 07:21 PM   #7
portable oxygen
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
No options

hi voice -

thanks for the input. i have heard similar from other folks about the easier distros to learn with. my situation is different though --- system is up and running, red hat 6.2, and no gui. so, command line it is! naturally i won't do a thing without checking and double checking first, so this is more research than work right now.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
script request lgualteri Programming 7 06-17-2005 10:19 AM
Request for URLs Paone Linux - Newbie 2 03-29-2005 04:09 PM
Quake 3 request Reefcrazed Linux - Games 2 12-10-2004 06:46 AM
request from every one the anti-riced General 3 04-21-2004 12:37 PM
request router? fuelinjection Linux - General 2 12-08-2003 12:48 PM


All times are GMT -5. The time now is 03:29 PM.

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