nettop加指令
2016-03-23 14:06
1296 查看
Mac OS X includes an excellent command line network utility called “nettop” that allows users to monitor all network activity, traffic, and routes from a Mac to the outside world, both through local (LAN) and wide area (WAN) connections. If you’re unfamiliar
with networking tools like this, you can think of nettop as a network centric task manager, displaying active networking connections, sockets and routes, their respective names and process id, the state of the connection and whether the connection is established,
waiting, or listening, and information about individual process data transfer. It’s a bit like the standard ‘top’ and ‘htop’ commands which show process and resource information, but rather than showing CPU and RAM usage, it will show live network transfer
information like packets sent and received, packet size, and total data transferred.
nettop has a wide variety of uses, but it can be particularly helpful when trying to determine what is using the Macs internet connection and networking interfaces, what is communicating with what and how much data is being transferred, and it’s also just
a great utility for network troubleshooting. Command line tools aren’t for everyone though, and for users who would like to view similar network information in a more traditional OS X app format,
进入控制界面后,把terminal的界面放到最大哦否则看不到全部信息
nettop
Once in nettop you can adjust the output a bit to see more or less information for specific processes and their network communications. Basic nettop commands are:
p – changes to and from human readable format (i.e.: kilobytes and megabytes rather than pure byte count)
d – show delta count (i.e.: active change in packet count rather than total packets
Up & Down arrow keys – navigate up and down in the list
Right & Left arrow keys – expand or collapse specific process or routing groups
q – quit out of nettop
Formatting is easy to follow, despite what the pasted sample block looks like below:
如果在输入阶段就需要过滤可以考虑的参数
-m Set the mode
Without any parameters, nettop will monitor all tcp and udp sockets.
tcp - only tcp sockets will be monitored
udp - only udp sockets will be monitored
route - instead of sockets, the routing table will be monitored
-n Disable address to name resolution
-c Be gentle on the CPU - draw less often
with networking tools like this, you can think of nettop as a network centric task manager, displaying active networking connections, sockets and routes, their respective names and process id, the state of the connection and whether the connection is established,
waiting, or listening, and information about individual process data transfer. It’s a bit like the standard ‘top’ and ‘htop’ commands which show process and resource information, but rather than showing CPU and RAM usage, it will show live network transfer
information like packets sent and received, packet size, and total data transferred.
nettop has a wide variety of uses, but it can be particularly helpful when trying to determine what is using the Macs internet connection and networking interfaces, what is communicating with what and how much data is being transferred, and it’s also just
a great utility for network troubleshooting. Command line tools aren’t for everyone though, and for users who would like to view similar network information in a more traditional OS X app format,
进入控制界面后,把terminal的界面放到最大哦否则看不到全部信息
nettop
Once in nettop you can adjust the output a bit to see more or less information for specific processes and their network communications. Basic nettop commands are:
p – changes to and from human readable format (i.e.: kilobytes and megabytes rather than pure byte count)
d – show delta count (i.e.: active change in packet count rather than total packets
Up & Down arrow keys – navigate up and down in the list
Right & Left arrow keys – expand or collapse specific process or routing groups
q – quit out of nettop
Formatting is easy to follow, despite what the pasted sample block looks like below:
如果在输入阶段就需要过滤可以考虑的参数
-m Set the mode
Without any parameters, nettop will monitor all tcp and udp sockets.
tcp - only tcp sockets will be monitored
udp - only udp sockets will be monitored
route - instead of sockets, the routing table will be monitored
-n Disable address to name resolution
-c Be gentle on the CPU - draw less often
相关文章推荐
- Hadoop常用命令
- 友善之臂MINI2440移植Linux内核“Kernel panic”的解决方法
- 安卓通用android adb shell 命令大全
- nginx 502错误
- RabbitMQ监控(4)——URL监控
- 高并发负载均衡(一)——企业架构分析和DNS
- 各大网站css初始化代码【转】
- 每天一点Linux--图形界面回到命令行
- bash实现两个文件的并交减集合操作
- 每天一点Linux--查看版本号
- Centos下安装ssh、samba安装
- 关于ERROR: While executing gem ... (Errno::EPERM)Operation not permitted - /usr/bin/xcodeproj的问题
- 使用nginx配置Laravel中的虚拟站点
- MyEclipse+Tomcat+MAVEN+SVN项目完整环境搭建(转载)
- 父元素高度为auto:子元素使用top:-50%没有效果的问题
- What is Cross Linux From Scratch?
- RabbitMQ监控(3)——核心监控类实现
- [nginx] 网上最全面nginx教程(近100篇文章整理)
- Linux/Ubuntu下编译Qt4.8.2源码
- OPENCV jpg图片合成avi视屏