Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2238  / 2 Years ago, fri, june 3, 2022, 7:08:44

An Ubuntu installation may vary hugely in size, depending on the installed packages. Is there any quick way to check how mutch disk the current installation uses.



I want to know, because I plan to build a new PC, with a smaller and fast SSD for / and a large mechanical drive for /home (I have need for a large home directory), to decresase boot time. To solve this problem I would like to know the size of my current installation, so I know how large the system file system needs to be for my use.


More From » apt

 Answers
6

This should work on any GNU/Linux system:



(sudo du -b -s $(ls | grep -v 'home|media|mnt|proc|sys|run') ) | awk -M '{s+=$1} END {print s}'


I find that my current installation is 9 892 901 210 bytes, or approximately 10 GB.


[#9544] Sunday, June 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mouedi

Total Points: 420
Total Questions: 109
Total Answers: 116

Location: Philippines
Member since Wed, Aug 19, 2020
4 Years ago
;