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. |
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 |
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 |
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. |