linux常用命令-网络命令

网络命令

目录

 1. 网络通信指令: write

 2. 网络通信指令: wall

 3. 网络通信指令: ping

 4. 网络通信指令: ifconfig

1. 网络通信指令: write

	指令名称:write (实时通讯工具)
	指令所在路径:/usr/bin/write
	执行权限:  ALL User
	语法: write <用户名>
	功能描述:向另外一个用户发信息,以Ctrl+D作为结束
	范例: $ write samplee

2. 网络通信指令: wall

	指令名称:wall
	指令所在路径:/usr/bin/wall
	执行权限:  ALL User
	语法: wall [message] [文件名]
	功能描述:向所有用户广播信息
	范例: $ wall Happy New Year!

3. 网络通信指令: ping

	指令名称:ping
	指令所在路径:/usr/sbin/ping
	执行权限:  root
	语法: 	ping 选项 IP地址
	功能描述:测试网络连通性
	范例: $ ping 192.168.1.1

4. 网络通信指令: ifconfig

	指令名称:ifconfig
	指令所在路径:/usr/sbin/ifconfig
	执行权限:  root
	语法: 	ifconfig  选项[-a] [网卡设备标识]
        		-a  显示所有网卡信息
	功能描述:查看网络设置信息
	范例: $ ifconfig -a
	       $ ifconfig eth0 192.168.4.1   直接设置本次会话的ip地址
posted @ 2016-10-08 22:44  银河统计  阅读(130)  评论(0)    收藏  举报