1. 查看进程信息
ps aux
2. 查看匹配某文本的进程信息
ps aux|grep ./update_stock //匹配./update_stock的进程
3. 打印相关
ls > test.log #输出目录到文件 ls >> test.log #追加目录到文件 ls | tee test.log #打印并输出目录到文件 ls | tee -a test.log #打印并追加目录到文件