查看进程信息
ps -elf | grep 项目名
直接查看进程号
pgrep 项目名
杀死进程
kill -s 9 进程号
挂起运行
nohup ./执行文件名 &
新建文件
touch 文件名(带后缀)
赋予某个可执行文件fileName 执行权限
chmod +x fileName
搜索历史命令
history | grep sftp
查看运行的java进程:
xx@oo:~/aaa/apps$ ps -ef | grep java
xx 1042 870 0 20:00 pts/1 00:00:00 grep --color=auto java
xx 31789 1 0 Jun13 ? 00:02:27 java -jar apps/bbb.jar --spring.profiles.active=test