Skip to content
Advertisement

Tag: diskspace

How to print only disk usage percentage of linux?

How to print only disk usage percentage of linux similar to memory percentage. for memory percentage i’m using this command: output: like this is there any command for knowing disk usage percentage ? Answer Use df: For one mount point: Percent usage: Excluding header:

df –total command for mac?

I want to use command line to retrieve the total disk space on a machine as one value. On most Linux machines, the “df –total” returns such a value at the end of the regular df output. On osx9, 10, 11, and 12, there seems to be no option like this. Same issue with older linux os, redhat5, centos5, etc.

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? Answer Use awk to parse df result: Assuming ; is your csv separator, then: gives: In a full script with the date:

Advertisement