1.uname命令
uname -r Linux发行版本
uname -a 显示包括发行版本、发行时间、机器ID等在内的一系列信息。
2.查看Redhat版本
more /etc/redhat-release
3.查看Ubuntu的版本
cat /etc/issue
或者:lsb_release -a
4.查看Linux是32位还是64位
getconf LONG_BIT
1.uname命令
uname -r Linux发行版本
uname -a 显示包括发行版本、发行时间、机器ID等在内的一系列信息。
2.查看Redhat版本
more /etc/redhat-release
3.查看Ubuntu的版本
cat /etc/issue
或者:lsb_release -a
4.查看Linux是32位还是64位
getconf LONG_BIT