Skip to content

Instantly share code, notes, and snippets.

@mike-zhang
Created October 15, 2012 06:36
Show Gist options
  • Save mike-zhang/3891089 to your computer and use it in GitHub Desktop.
Save mike-zhang/3891089 to your computer and use it in GitHub Desktop.
定时显示特定网卡信息供查看
#! /bin/sh
if [ -f '/usr/bin/watch' ]
then
watch -n 1 -d ifconfig eth0
#watch ifconfig eth0
else
#while [ 1 ];do ifconfig eth0 ;sleep 1;clear;done
while [ 1 ]
do
ifconfig eth0
sleep 1
clear
done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment