码迷,mamicode.com
首页 > 系统相关 > 详细

linux 学习笔记 tail 命令

时间:2015-01-22 00:06:33      阅读:284      评论:0      收藏:0      [点我收藏+]

标签:

#tail -f -n 100 catalina.out 

含义:从文件尾部监视catalina.out文件  主要看尾部100行

#tail -f -n 100 catalina.out > nohup.out&

                ------------也可以指定输出文件的路径

                                       &进入后台 

                                       >输出内容到指定文件覆盖原有文件内容

                                       >>输出内容不覆盖而是追加内容到原有文件

#nohup  tail -f -n100 catalina.out > nohup.out&

 

备注: 使劲撑在用户退出登录后仍继续执行.

nohup 将执行虎的数据信息默认存于文件nohup.out中

例子

 

 nohup find / -name init* >/root /find_init_0213&

nohup sh startup.sh &>nohup.out

linux 学习笔记 tail 命令

标签:

原文地址:http://www.cnblogs.com/cici-new/p/4240291.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!