Check ram utilization in linux6/18/2023 ![]() 100-cpu/NR: Finally print the ‘CPU Average’ by subtracting 100, divided by the number of records.Use the following format to limit a decimal places. %.2f%: By default it prints floating point numbers with 6 decimal places.printf: It used to format and print data.cpu+=$9: For each line, add column 9 to a variable ‘cpu’.awk: awk is a powerful command which is specialized for textual data manipulation.sar command to view swap space utilization statistics. sar command to display statistics for the specified processor. Display I/O and transfer rate statistics using sar command. sar command to display memory utilization statistics. ^%Cpu: Filter the lines which starts with %Cpu sar command to report CPU utilization for each N seconds.It is useful when you run the top command from local system to remote system. -b: -b option, allow the top command to switch in batch mode. ![]()
0 Comments
Leave a Reply. |