Visit Jeremy's Blog.
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 09-21-2014, 05:06 PM   #1
LQ Newbie
Registered: Sep 2014
Posts: 1

Rep: Reputation: Disabled
How is calculated the size of Linux on hard drive?


If I use command:
$ df -h /
I will get 2.2GB as answer on clean, just installed Linux. But, what that really means? Is this just a sum of all installed packets?

$ dpkg-query -W --showformat='${Installed-Size}\n' > sizes
$ awk '{s+=$1} END {print s}' sizes
Result is: 1554MB. Where are missing 700MB? How to find it?
Old 09-21-2014, 05:29 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 5,393

Rep: Reputation: 409Reputation: 409Reputation: 409Reputation: 409Reputation: 409
How much in /var (du -ch /var)? In /tmp etc


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
Hard Drive Size Discrepancy? Deathwind Linux - General 6 05-12-2004 08:50 AM
largest hard drive size teuben Linux - Hardware 2 01-27-2004 09:11 AM
Hard drive size? tgardner Linux - Newbie 4 08-28-2003 10:46 PM
Hard Drive Size Michael Jones Linux - Newbie 4 01-11-2002 07:19 PM > Forums > Linux Forums > Linux - Newbie

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