Linux - SoftwareThis 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.
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.
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.
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
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...
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.
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
Note that if you use 'rm *.*' you won't delete all the files. Only those with '.' inside.
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.
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.
rm -rf / usr/your_bad_file will delete your whole / directory
rm -rf /usr/your_bad_file will delete your_bad_file
see the difference????
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.