linux语法使用大全

linux语法使用大全

tail 用法

 

# 查看最后实时输出,300f是显示最后的300行
tail -300f zhuaqu.log

# 搜索查询显示关键字相邻的50行
tail -300f zhuaqu.log |grep "tcmalloc" -C 50

 

 

nohup后台启动

# nohup 命令不会自动把进程变为”后台任务”,所以必须加上&符号
# 自定义输出位置
nohup command > myout.log 2>&1 &


# 命令+ &后台启动
./nginx &

 

posted @ 2022-07-22 10:37  一只琥珀  阅读(73)  评论(0)    收藏  举报