mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-17 02:49:20 +00:00
Update cheatsheets
This commit is contained in:
29
linux/vnstat
Normal file
29
linux/vnstat
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# vnstat
|
||||
|
||||
> A console-based network traffic monitor.
|
||||
> More information: <https://manned.org/vnstat>.
|
||||
|
||||
- Display traffic summary for all interfaces:
|
||||
|
||||
`vnstat`
|
||||
|
||||
- Display traffic summary for a specific network interface:
|
||||
|
||||
`vnstat -i {{eth0}}`
|
||||
|
||||
- Display live stats for a specific network interface:
|
||||
|
||||
`vnstat -l -i {{eth0}}`
|
||||
|
||||
- Show traffic statistics on an hourly basis for the last 24 hours using a bar graph:
|
||||
|
||||
`vnstat -hg`
|
||||
|
||||
- Measure and show average traffic for 30 seconds:
|
||||
|
||||
`vnstat -tr {{30}}`
|
||||
Reference in New Issue
Block a user