Hi,
What is the difference between sar command and /proc/net/dev file in linux server?
I know sar command can be used to get various metrics(ccpu,memory,network device etc) within the Linux server and /proc/net/dev file provides the network statistics.
1. which is the best way to get the network statistics, parsing the /proc/net/dev file or sar command output?
2. who writes data into /proc/net/dev file?
3. /proc/net/dev gives the current network stats whereas sar command gives the historic data, correct me if i am wrong?
Please clarify my doubts and suggest me with best way to get the network stats in linux.