- 查看端口号如tomcat
ps -ax|grep tomcat
- 杀死进程(pid指进程号)如tomcat端口号被占用,可以查看该tomcat的端口,并且杀死该进程
kill -9 PID
- 通过文件名称查找文件
find /home -name '*test*'
在/home 查找名称 有test的文件,*代表模糊匹配
- 安装rpm包
rpm -i example.rpm
- 文件压缩
tar -czf all.tar.gz *.jpg
ps -ax|grep tomcat
kill -9 PID
find /home -name '*test*'
在/home 查找名称 有test的文件,*代表模糊匹配
rpm -i example.rpm
tar -czf all.tar.gz *.jpg