Linux常用查看版本指令


1.查看linux版本
cat /etc/issue

2.查看內核版本
cat /proc/version

或者使用uname指令

-a, --all print all information, in the following order, 查看全部信息
except omit -p and -i if unknown:
-s, --kernel-name print the kernel name 查看內核名字
-n, --nodename print the network node hostname
-r, --kernel-release print the kernel release 查看內核發行版本
-v, --kernel-version print the kernel version 查看內核版本
-m, --machine print the machine hardware name
-p, --processor print the processor type or "unknown"
-i, --hardware-platform print the hardware platform or "unknown"
-o, --operating-system print the operating system 查看操作系統
--help display this help and exit
--version output version information and exit

4.查看系統位數

file /bin/bash

5.查看gcc版本

gcc --version


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM