I used df -h to determine the file system usage as shown above . i want to know how much of total space is available in OS for later use in Operating system.
i cannot understand this coding.Could you please explain me briefly on this?
Thanks $ Regards,
William
Skip the 1st line.
The split function is used to search for a "G" in the 4th field and to separate the last letter from the numeric value. If the last letter of the 4th field is a "G", f[1] holds the value of the available Gigabytes, f[2] holds the "G" and the return code is 2 otherwise the return code is 1.
If the returncode > 1 the value is multiplied with 1024 (to Megabytes) and assigned to the 4th field.
The sub function deletes the "M" from field $4 (if it's available). The next statement adds the value of the 4th field to the variable s.
After processing the last line, print the sum of available Megabytes.
Hi,
Could you please tell me the commands to find Total storage space and Serial number of Linux server.
OS -- Red Hat Enterprise Linux Server release 6.6 (Santiago)
This is 2 node cluster.
Regards,
Maddy (1 Reply)
Hi Everyone,
I try to calculate the total hard disk space of a solaris machine using iostat -En command. Iterating the output and summing up all the number present near the Size: will give the exact size of the harddisk. But it is not working for a machine.
This command works in many flavors... (2 Replies)
Hi Experts,
In a particular dir, I have many files *AJAY*.
How can I get total size of all such files.
I tried du -hs *AJAY* but it gave me individual size of all files.
All I require is summation of all.
Thanks,
Ajay (4 Replies)
Hi experts,
In my solaris system when i run the command df -h i got the below response.I have some confusion which i want to share with you guys.1)there are two SWAP file system shows are they same or different?2)if i want to count the total disk space should i take both the swap space or only... (2 Replies)
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Hi,
I see from lsvg the total used PPs is 1050 (67200 megabytes), but when I check the disk space with df command I can only see 31G total space, can somebody tell how this come?
Thanks!
Victor
# lsvg
rootvg
# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: ... (2 Replies)
Hi All,
Will df+du=Total space allocted for a file system??
Is the above correct. Please correct me If iam wrong.
In one my programs the above is not happening.
Please help me out.
Many thanks.
Regards,
Manas (2 Replies)