系统信息
cat /proc/version
# 系统的版本信息
Linux version 5.4.0-1028-raspi (buildd@bos02-arm64-020) # linux内核版本号
gcc version 9.3.0 # gcc编译器版本号
Ubuntu 9.3.0-17ubuntu1~20.04 # Ubuntu版本号
uname -a
# 显示内核版本和系统是多少位的
sb_release -a
Distributor ID: Ubuntu //类别是ubuntu
Description: Ubuntu 14.04.2 LTS //14年2月4月发布的稳定版本,LTS是Long Term Support:长时间支持版本 三年 ,一般是18个月
Release: 14.04 //发行日期或者是发行版本号
Codename: trusty //ubuntu的代号名称
Python
- 查看python 版本
python --version
- 查看python 位数
python -c "import platform;print(platform.architecture())"
- 查看路径
which python
whereis python