2023年1月6日
摘要: linux启动后,会默认打开3个文件描述符,0表示标准输入,1表示正确输出,2表示错误输出。 nohup ping www.baidu.com 1>result.out 2>result.out & #将正确输出和错误输出均写入result.out文件nohup ./program > /dev/n 阅读全文
posted @ 2023-01-06 14:26 boye169 阅读(325) 评论(0) 推荐(0) 编辑
摘要: ps -ef|grep query_test.sh|grep -v grep #查看进程是否存在 ps -ef|grep query_test.sh|grep -v grep |awk '{print $2}'|xargs kill -9 阅读全文
posted @ 2023-01-06 14:21 boye169 阅读(198) 评论(0) 推荐(0) 编辑