watch监视变化 @log

宿舍网络小水管,本来速度就慢,再加上别人还就相对用PPS之类的P2P在线看视频,下载各种无能,用浏览器自带的下载动不动就被中断了,为了稳定起见,开个wget加上-b选项让它在后台慢慢下好了,但是有时候又想看看它下载到什么地方了,这个容易,只要看到log文件即可,再详细点的就可以用watch命令来实现了:

命令:$watch tail -n2 wget-log

如果嫌这样太简单的话,可以组合一下:

命令: $watch eval "head -n1 wget-log; tail -n2 wget-log; echo " 这下可以了吧

Advertisements
此条目发表在未分类分类目录。将固定链接加入收藏夹。

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s