1、使用lsb_release -a
~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal
2、使用cat /etc/lsb-release
~# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
3、使用cat /etc/issue
~# cat /etc/issue Ubuntu 20.04.3 LTS \n \l
4、使用neofetch
安装
sudo apt install neofetch
查看
~# neofetch .-/+oossssoo+/-. root@xxxxxx `:+ssssssssssssssssss+:` -------------------- -+ssssssssssssssssssyyssss+- OS: Ubuntu 20.04.3 LTS on Windows 10 x86_64 .ossssssssssssssssssdMMMNysssso. Kernel: 4.4.0-18362-Microsoft /ssssssssssshdmmNNmmyNMMMMhssssss/ Uptime: 1 day, 3 hours +ssssssssshmydMMMMMMMNddddyssssssss+ Packages: 1643 (dpkg) /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Shell: bash 5.0.17 .ssssssssdMMMNhsssssssssshNMMMdssssssss. Theme: Adwaita [GTK3] +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Icons: Adwaita [GTK3] ossyNMMMNyMMhsssssssssssssshmmmhssssssso Terminal: /dev/tty1 ossyNMMMNyMMhsssssssssssssshmmmhssssssso CPU: Intel i7-10700 (16) @ 2.904GHz +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Memory: 4820MiB / 16225MiB .ssssssssdMMMNhsssssssssshNMMMdssssssss. /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ +sssssssssdmydMMMMMMMMddddyssssssss+ /ssssssssssshdmNNNNmyNMMMMhssssss/ .ossssssssssssssssssdMMMNysssso. -+sssssssssssssssssyyyssss+- `:+ssssssssssssssssss+:` .-/+oossssoo+/-.
标签:LTS,lsb,查看,信息,etc,Ubuntu,release,20.04 From: https://www.cnblogs.com/fireblackman/p/17323943.html