系统信息

​cat /proc/version​​ # 系统的版本信息

ubuntu 常用命令_ubuntu

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​​ # 显示内核版本和系统是多少位的

ubuntu 常用命令_版本号_02

​sb_release -a​

ubuntu 常用命令_ubuntu_03

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())"
    ubuntu 常用命令_ubuntu_04
  • 查看路径
    which python
    whereis python
    ubuntu 常用命令_版本号_05