当前位置:科普知识站>IT科技>

linux|shapecfg命令详解

IT科技 阅读(3W)

shapecfg命令可以用来管制网络设备的流量。

shapecfg命令的具体命令的语法格式为shapecfg[参数]。

参数:

attach 将流量管制器与实际的网络设备相结合 

speed 设置流量管制器的对外传输宽带 

参考范例:

如若是管制网络设备的流量,其具体命令为:

[root@linuxcool ~]# shapecfg attach [流量管制器] [网络设备] 

linux shapecfg命令详解

拓展:

常用的linux命令有哪些?

常用的linux命令一般可以分为很多种,比如查看硬件信息相关命令就有8个,分别是ifconfig、free、fdisk、ethtool、mii-tool、dmidecode、dmesg、lspci,用于系统性能监视高级命令有uptime、top、free、vmstat、mpstat、iostat、sar、chkconfig,用于内存的命令是top、free、vmstat、mpstat、iostat、sar等。