LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-11-2004, 02:25 AM   #1
tejpatil
Member
 
Registered: Feb 2004
Posts: 43

Rep: Reputation: 15
Urgen:how to free the disk space in linux


How to free disk the disk space in linux.

I need to free more disk space in /opt directory

can any one please give some directions to do it.

Thanks.
 
Old 02-11-2004, 02:46 AM   #2
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
Hi

to remove files use rm *.* or try man rm for indepth help to the remove command, remember to be carefull if you use this command as root, you can wipe your drive !!

cheers
 
Old 02-11-2004, 04:38 AM   #3
personne4792
Member
 
Registered: Jan 2004
Location: France
Distribution: Win2KPro,RH9
Posts: 34

Rep: Reputation: 15
If you know what kind of files you want to delete, it's not difficult: find <directory where to seach> -name <kinds of file to delete> <option:for example file of 0 size> -exec rm -i {} \;. For instance :
find /opt -name tralala.txt -exec rm -i {} \;
You only have to had whatever option you want concerning the size, time access, and so on. Have a look at find options
 
Old 02-11-2004, 06:27 AM   #4
tk31337
Member
 
Registered: Oct 2003
Location: Tucson, AZ
Distribution: Mandrake 10.0 Official
Posts: 193

Rep: Reputation: 31
If you have an RPM based distro, and you have software in /opt that was installed from rpm, it's probably best to use rpm to remove it, otherwise rpmdb being out of sync with what's actually on your system may cause probs down the road.
 
  


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
free disk space mp4-10 Linux - Software 1 04-06-2005 04:32 AM
rm doesn't free the disk space krizzz Linux - General 5 02-16-2005 12:27 PM
how to know how much disk space is free on linux through programming payal_shah Linux - Hardware 3 12-12-2004 03:49 PM
Free up disk space TheShemeta Slackware 5 11-26-2003 05:50 PM
free disk space? Alf829 Linux - Newbie 3 08-01-2003 12:26 PM


All times are GMT -5. The time now is 04:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration