3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 503
/ 2 Years ago, wed, june 1, 2022, 3:35:05
I can get total network usage from terminal by ifconfig wlp0s20f3
but i also get many other extra info about wlp0s20f3 device.
The output:
wlp0s20f3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.43.67 netmask 255.255.255.0 broadcast 192.168.43.255
inet6 fe80::5f55:a45c:b66a:a7d2 prefixlen 64 scopeid 0x20<link>
ether 48:f1:7f:f3:15:83 txqueuelen 1000 (Ethernet)
RX packets 82724 bytes 108476705 (103.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28959 bytes 3840172 (3.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I only need 103.4 MiB for rx and 3.6 MiB for tx to use together with command output plasmoid in kde panel. How can i get that?
PS: Any bash script to parse ifconfig output or any application gives that values are acceptable
More From » command-line