一.查看当前操作系统版本信息
1. cat /proc/version
2. uname -a
3.lsb_release -a
4.file /sbin/init
二.Linux查看版本当前操作系统发行版信息
1.cat /etc/issue
2.cat /etc/redhat-release
三.Linux查看cpu相关信息,包括型号、主频、内核信息等
1.cat /proc/cpuinfo
四.查看CPU位数
1. getconf LONG_BIT
2.arch
3.uname -m
五.查看端口占用
1. netstat -anp | grep portno(8080)
2. netstat –apn
找到对应端口所占用的程序
ps
-aux | grep java,或者直接:ps -aux | grep pid 查看
六.查看程序所在
如 which java
whereis java