zoukankan      html  css  js  c++  java
  • linux 学习笔记六 tail 命令

      #tail -f -n100 catalina.out

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

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

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

    &意味着进入后台

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

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

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

    等价于

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

    备注 :

     使用进程在登录的用户退出后仍继续执行

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

    例子 :

     nohup find / -name init* >/root /find_init.0113&

    nohup sh startup.sh&>nohup.out

  • 相关阅读:
    adb
    js百分比
    隐私策略
    JSON.parse&JSON.stringify
    MVC内容backgroundimage: url('')问题
    mvc笔记
    winform路径
    配置
    邮件发送的原理
    如何调试Windows服务
  • 原文地址:https://www.cnblogs.com/cici-new/p/4263509.html
Copyright © 2011-2022 走看看