In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to use lnstat, a common Linux command. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
Linux common command nstat command is used to display the network status of Linux system, lnstat command is actually read system "/proc" directory "/proc/net/stat" file, to display the current host network status.
Command Format Format: lnstat [Parameter] Parameter-c Specifies the number of times to display network status, showing network status once at regular intervals-d Displays available files or keywords-i Specifies the number of seconds between two displays of network status-k Displays only the given keyword-s Whether to display header-w Specifies the width of each field-h Displays help information-v Displays instance of instruction version information Displays network status
[deng@localhost ~]$ lnstat [deng@localhost ~] Displays statistics files supported by the command
[root@localhost ~]# lnstat -d /proc/net/stat/nf_conntrack: 1: entries 2: searched 3: found 4: new 5: invalid 6: ignore 7: delete 8: delete_list 9: insert 10: insert_failed 11: drop 12: early_drop 13: icmp_error 14: expect_new 15: expect_create 16: expect_delete 17: search_restart Filter out only the key field information you want to view
[root@localhost ~]# lnstat -k arp_cache:entries,rt_cache:in_hit,arp_cache:destroys arp_cach|rt_cache|arp_cach| entries| in_hit|destroys| 7| 0| 4| Specifies the number of seconds between two displays of the network shape
[root@localhost ~]# lnstat -i 2 [root@localhost ~]#Specifies the number of times network status is displayed
[root@localhost ~]# lnstat -c 2 [root@localhost ~]#Thank you for reading! About "Linux common command lnstat how to use" This article is shared here, I hope the above content can have some help for everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.