Helm's Technology Blog

Tag: Server

Linux – Calculating Diskspace free

by admin on May.03, 2010, under Server

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.

Leave a Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!