LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-26-2011, 07:26 PM   #1
Shamekaw
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
How do you free space on linux system


Could someone please assist me on how to free space on my computer
 
Old 01-26-2011, 07:31 PM   #2
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
Well several ways to do this. You could right a script or you could just simply uninstall any unneeded programs and delete some .files in your home directory that you may not need no more and any unused or wanted files in your home directory. Also you could compress files as well.
 
Old 01-26-2011, 07:35 PM   #3
binary_pearl
Member
 
Registered: Jul 2007
Location: Chicago Illinois
Distribution: SLES 10 SP2/SP3, SLES 11 SP1, OpenSUSE, Sabayon, Gentoo, Fedora 14, RHEL 3/4/5/6
Posts: 98
Blog Entries: 3

Rep: Reputation: 23
Take a look at this link:

http://www.cyberciti.biz/faq/find-large-files-linux/

It gives several commands on how to find the largest files on your system.

From that link here is the command to search for files that are 50MB or more:
Quote:
find . -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
This helps if you have some really large files like videos or iso's that are lying around.

--Shaun
 
Old 01-26-2011, 07:41 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by binary_pearl View Post
Take a look at this link:

http://www.cyberciti.biz/faq/find-large-files-linux/

It gives several commands on how to find the largest files on your system.

From that link here is the command to search for files that are 50MB or more:
Code:
find . -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
This helps if you have some really large files like videos or iso's that are lying around.

--Shaun

No need to invoke two other commands, really ...
Code:
find . -type f -size +50000k -printf "%p\t%s\n"


Cheers,
Tink
 
Old 01-27-2011, 12:13 AM   #5
Aleksdem
LQ Newbie
 
Registered: Jan 2011
Location: Russia, Ryazan
Distribution: Linux Mint
Posts: 5

Rep: Reputation: 0
Use sudo ncdu /
It's perfect program.
 
Old 01-27-2011, 04:37 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,133
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
Quote:
Originally Posted by Aleksdem View Post
Use sudo ncdu /
It's perfect program.
Why do you use sudo here? Is there any need for it?
 
Old 01-27-2011, 04:58 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,724

Rep: Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121
Until I see evidence there actually is a problem, I treat this as a phishing (homework ?) exercise.
And without wishing to be too pedantic, how does "find" free up space ?.
 
Old 01-27-2011, 12:08 PM   #8
Aleksdem
LQ Newbie
 
Registered: Jan 2011
Location: Russia, Ryazan
Distribution: Linux Mint
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
Why do you use sudo here? Is there any need for it?

I usually try to avoid work as Root. In my directory can write any services that operate from other users. But sudo is not required.
 
Old 03-24-2011, 01:13 PM   #9
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
1 TB HDD and you won't even ask yourself about it.
 
  


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
Help removing free space to create Raw free space nightmare55 Linux - Newbie 11 10-01-2009 03:07 AM
System failed due to lack of free disk space une Mandriva 18 09-26-2007 05:56 AM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM
After removing another hard drive, system sees incorrect amount of free space cellphone Linux - General 5 09-28-2003 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:50 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