Skip to content
Advertisement

How to export daily disk space usage?

I am new to scripting.

Is it possible to export the disk space usage of a linux server to an excel shell(.csv) sheet daily ? If so, what will be the scripting for that?

Advertisement

Answer

Use awk to parse df result:

Assuming ; is your csv separator, then:

JavaScript

gives:

JavaScript

In a full script with the date:

JavaScript
Advertisement