# 在nohup.out里搜索,并把结果导出到指定文件
grep 'Send mq message success.Topic is' ./nohup.out >>a.txt
# 查找端口占用的进程
netstat -anp | grep 9000
# 结束进程
kill -9 线程
# 启动Java项目
nohup java -jar bz-supplychain-open.jar & tail -f -n500 nohup.out
#查磁盘空间使用
df -h 当前目录
df -h /usr/ 指定目录
查看全部目录(包含隐藏目录)
ls -a
清理进程
ps -aux | grep "node" | awk '{print $2}' | xargs kill -9