Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-11-2004, 01:25 AM   #1
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.

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

Rep: Reputation: 30

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

Old 02-11-2004, 03:38 AM   #3
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, 05:27 AM   #4
Registered: Oct 2003
Location: Tucson, AZ
Distribution: Linux Mint
Posts: 194

Rep: Reputation: 32
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.


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

All times are GMT -5. The time now is 12:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration