LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Urgen:how to free the disk space in linux (https://www.linuxquestions.org/questions/linux-newbie-8/urgen-how-to-free-the-disk-space-in-linux-144721/)

tejpatil 02-11-2004 01:25 AM

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.

synapse 02-11-2004 01:46 AM

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

personne4792 02-11-2004 03:38 AM

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

tk31337 02-11-2004 05:27 AM

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.


All times are GMT -5. The time now is 11:08 PM.