Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

Firstly, you must find out what is eating away at your space. I'd suggest you track down the physical file or directory that grows to that size.

The simplest way would be to check the directories in / using: ( I'd suggest running it as rootroot )

 # du -hs /* 2> /dev/null 4.2M /bin 25M /boot 204K /dev 6.7M /etc 19G /home 112M /lib 16K /lost+found 12K /media 16K /mnt 4.0K /multimedia 1018M /opt 0 /proc 15M /root 8.6M /sbin 12K /srv 4.2M /storage 0 /sys 108K /tmp 16G /usr 4.3G /var 

Now, You run that when the computer has freshly started and has not started to eat space yet and you save the output in a file ( ~/record-space )

$ sudo du -hs /* 2> /dev/null 1> ~/record-space 

And then when your computer is nearing a "FULL" state, you can run the command again saving the output in a second file.

$ sudo du -hs /* 2> /dev/null 1> ~/record-space2 

Now you can compare these two files ( ~/record-space and ~/record-space2 ) to see how th e main directories differ...

My favourite way of comparing files is using diff:

$ diff ~/record-space{,2} 

update: See Gille's comment to this answer.

Instead of du -hs /*, rather use du -xsh /tmp/* /var/*/* ~/.*.

Firstly, you must find out what is eating away at your space. I'd suggest you track down the physical file or directory that grows to that size.

The simplest way would be to check the directories in / using: ( I'd suggest running it as root )

 # du -hs /* 2> /dev/null 4.2M /bin 25M /boot 204K /dev 6.7M /etc 19G /home 112M /lib 16K /lost+found 12K /media 16K /mnt 4.0K /multimedia 1018M /opt 0 /proc 15M /root 8.6M /sbin 12K /srv 4.2M /storage 0 /sys 108K /tmp 16G /usr 4.3G /var 

Now, You run that when the computer has freshly started and has not started to eat space yet and you save the output in a file ( ~/record-space )

$ sudo du -hs /* 2> /dev/null 1> ~/record-space 

And then when your computer is nearing a "FULL" state, you can run the command again saving the output in a second file.

$ sudo du -hs /* 2> /dev/null 1> ~/record-space2 

Now you can compare these two files ( ~/record-space and ~/record-space2 ) to see how th e main directories differ...

My favourite way of comparing files is using diff:

$ diff ~/record-space{,2} 

update: See Gille's comment to this answer.

Instead of du -hs /*, rather use du -xsh /tmp/* /var/*/* ~/.*.

Firstly, you must find out what is eating away at your space. I'd suggest you track down the physical file or directory that grows to that size.

The simplest way would be to check the directories in / using: ( I'd suggest running it as root )

 # du -hs /* 2> /dev/null 4.2M /bin 25M /boot 204K /dev 6.7M /etc 19G /home 112M /lib 16K /lost+found 12K /media 16K /mnt 4.0K /multimedia 1018M /opt 0 /proc 15M /root 8.6M /sbin 12K /srv 4.2M /storage 0 /sys 108K /tmp 16G /usr 4.3G /var 

Now, You run that when the computer has freshly started and has not started to eat space yet and you save the output in a file ( ~/record-space )

$ sudo du -hs /* 2> /dev/null 1> ~/record-space 

And then when your computer is nearing a "FULL" state, you can run the command again saving the output in a second file.

$ sudo du -hs /* 2> /dev/null 1> ~/record-space2 

Now you can compare these two files ( ~/record-space and ~/record-space2 ) to see how th e main directories differ...

My favourite way of comparing files is using diff:

$ diff ~/record-space{,2} 

update: See Gille's comment to this answer.

Instead of du -hs /*, rather use du -xsh /tmp/* /var/*/* ~/.*.

added 177 characters in body
Source Link
Stefan
  • 26.1k
  • 41
  • 103
  • 127

Firstly, you must find out what is eating away at your space. I'd suggest you track down the physical file or directory that grows to that size.

The simplest way would be to check the directories in / using: ( I'd suggest running it as rootroot )

 # du -hs /* 2> /dev/null 4.2M /bin 25M /boot 204K /dev 6.7M /etc 19G /home 112M /lib 16K /lost+found 12K /media 16K /mnt 4.0K /multimedia 1018M /opt 0 /proc 15M /root 8.6M /sbin 12K /srv 4.2M /storage 0 /sys 108K /tmp 16G /usr 4.3G /var 

Now, You run that when the computer has freshly started and has not started to eat space yet and you save the output in a file ( ~/record-space )

$ sudo du -hs /* 2> /dev/null 1> ~/record-space 

And then when your computer is nearing a "FULL" state, you can run the command again saving the output in a second file.

$ sudo du -hs /* 2> /dev/null 1> ~/record-space2 

Now you can compare these two files ( ~/record-space and ~/record-space2 ) to see how theth e main directories differ...

My favourite way of comparing files is using diff:

$ diff ~/record-space{,2} 

update: See Gille's comment to this answer.

Instead of du -hs /*, rather use du -xsh /tmp/* /var/*/* ~/.*.

Firstly, you must find out what is eating away at your space. I'd suggest you track down the physical file or directory that grows to that size.

The simplest way would be to check the directories in / using: ( I'd suggest running it as root )

 # du -hs /* 2> /dev/null 4.2M /bin 25M /boot 204K /dev 6.7M /etc 19G /home 112M /lib 16K /lost+found 12K /media 16K /mnt 4.0K /multimedia 1018M /opt 0 /proc 15M /root 8.6M /sbin 12K /srv 4.2M /storage 0 /sys 108K /tmp 16G /usr 4.3G /var 

Now, You run that when the computer has freshly started and has not started to eat space yet and you save the output in a file ( ~/record-space )

$ sudo du -hs /* 2> /dev/null 1> ~/record-space 

And then when your computer is nearing a "FULL" state, you can run the command again saving the output in a second file.

$ sudo du -hs /* 2> /dev/null 1> ~/record-space2 

Now you can compare these two files ( ~/record-space and ~/record-space2 ) to see how the main directories differ...

My favourite way of comparing files is using diff:

$ diff ~/record-space{,2} 

Firstly, you must find out what is eating away at your space. I'd suggest you track down the physical file or directory that grows to that size.

The simplest way would be to check the directories in / using: ( I'd suggest running it as root )

 # du -hs /* 2> /dev/null 4.2M /bin 25M /boot 204K /dev 6.7M /etc 19G /home 112M /lib 16K /lost+found 12K /media 16K /mnt 4.0K /multimedia 1018M /opt 0 /proc 15M /root 8.6M /sbin 12K /srv 4.2M /storage 0 /sys 108K /tmp 16G /usr 4.3G /var 

Now, You run that when the computer has freshly started and has not started to eat space yet and you save the output in a file ( ~/record-space )

$ sudo du -hs /* 2> /dev/null 1> ~/record-space 

And then when your computer is nearing a "FULL" state, you can run the command again saving the output in a second file.

$ sudo du -hs /* 2> /dev/null 1> ~/record-space2 

Now you can compare these two files ( ~/record-space and ~/record-space2 ) to see how th e main directories differ...

My favourite way of comparing files is using diff:

$ diff ~/record-space{,2} 

update: See Gille's comment to this answer.

Instead of du -hs /*, rather use du -xsh /tmp/* /var/*/* ~/.*.

added 731 characters in body; added 4 characters in body
Source Link
Stefan
  • 26.1k
  • 41
  • 103
  • 127

Firstly, you must find out what is eating away at your space. I'd suggest you track down the physical file or directory that grows to that size.

The simplest way would be to check the directories in / using: ( I'd suggest running it as root )

 # du -hs /* 2> /dev/null 4.2M /bin 25M /boot 204K /dev 6.7M /etc 19G /home 112M /lib 16K /lost+found 12K /media 16K /mnt 4.0K /multimedia 1018M /opt 0 /proc 15M /root 8.6M /sbin 12K /srv 4.2M /storage 0 /sys 108K /tmp 16G /usr 4.3G /var 

4.2M /bin 25MNow, You run that when the computer has freshly started and has not started to eat space yet and you save the output in a file /boot 204K /dev 6( ~/record-space )

$ sudo du -hs /* 2> /dev/null 1> ~/record-space 

And then when your computer is nearing a "FULL" state, you can run the command again saving the output in a second file.7M /etc 19G

$ sudo du -hs /* 2> /dev/null 1> ~/record-space2 

Now you can compare these two files /home 112M /lib 16K( /lost+found 12K~/record-space and /media 16K~/record-space2 /mnt 4) to see how the main directories differ.0K /multimedia 1018M /opt 0 /proc 15M /root 8.6M /sbin 12K /srv 4.2G /storage 0 /sys 108K /tmp

My favourite way of comparing files is using diff:

$ diff ~/record-space{,2} 

Firstly, you must find out what is eating away at your space. I'd suggest you track down the physical file or directory that grows to that size.

The simplest way would be to check the directories in / using: ( I'd suggest running it as root )

 # du -hs /* 2> /dev/null 

4.2M /bin 25M /boot 204K /dev 6.7M /etc 19G /home 112M /lib 16K /lost+found 12K /media 16K /mnt 4.0K /multimedia 1018M /opt 0 /proc 15M /root 8.6M /sbin 12K /srv 4.2G /storage 0 /sys 108K /tmp

Firstly, you must find out what is eating away at your space. I'd suggest you track down the physical file or directory that grows to that size.

The simplest way would be to check the directories in / using: ( I'd suggest running it as root )

 # du -hs /* 2> /dev/null 4.2M /bin 25M /boot 204K /dev 6.7M /etc 19G /home 112M /lib 16K /lost+found 12K /media 16K /mnt 4.0K /multimedia 1018M /opt 0 /proc 15M /root 8.6M /sbin 12K /srv 4.2M /storage 0 /sys 108K /tmp 16G /usr 4.3G /var 

Now, You run that when the computer has freshly started and has not started to eat space yet and you save the output in a file ( ~/record-space )

$ sudo du -hs /* 2> /dev/null 1> ~/record-space 

And then when your computer is nearing a "FULL" state, you can run the command again saving the output in a second file.

$ sudo du -hs /* 2> /dev/null 1> ~/record-space2 

Now you can compare these two files ( ~/record-space and ~/record-space2 ) to see how the main directories differ...

My favourite way of comparing files is using diff:

$ diff ~/record-space{,2} 
Source Link
Stefan
  • 26.1k
  • 41
  • 103
  • 127
Loading