With linux servers a couple of things can take up disk-space unexpectedly. Log files is the usual culprit, but if your server is a rented one you might be stuck with a bit of a weird partition setup.

For some reason some hosts will give little storage to partitions which then get filled up unexpectedly.

To find out how much space you have just use the following command.

df

– want to make it more readable?

Use df-h

Also if you want to see your diskspace changing over time the you can use the watch command. For example

watch -n 1 “df”

This will run the disk space command each second and you can view it’s output on the commandline – useful if you want to monitor some specific activity in real time.