如何在Ubuntu 18.04系统查看系统信息

0 98
本文目录导读:查看基本信息查看硬件信息查看软件包信息Ubuntu 18.04,作为一款流行的Linux发行版,提供了丰富的系统信息查看工具,这些工具可以帮助用户...

本文目录导读:

  1. 查看基本信息
  2. 查看硬件信息
  3. 查看软件包信息

Ubuntu 18.04,作为一款流行的Linux发行版,提供了丰富的系统信息查看工具,这些工具可以帮助用户了解系统的硬件配置、软件版本、系统资源使用情况等,下面将从多个方面介绍如何在Ubuntu 18.04系统中查看系统信息。

查看基本信息

1、查看发行版信息:打开终端,输入以下命令可以查看Ubuntu的发行版信息:

l**_release -a

2、查看内核信息:输入以下命令可以查看当前系统的内核信息:

uname -a

如何在Ubuntu 18.04系统查看系统信息

3、查看CPU信息:输入以下命令可以查看CPU的型号和详细信息:

lscpu

4、查看内存信息:输入以下命令可以查看内存的使用情况:

free -h

查看硬件信息

1、查看磁盘使用情况:输入以下命令可以查看磁盘的使用情况和分区信息:

df -h

2、查看磁盘健康状态:可以使用以下命令查看磁盘的健康状态和SMART属性:

**artctl -a /dev/sda

3、查看显卡信息:输入以下命令可以查看显卡的型号和驱动程序信息:

lspci | grep -i vga

4、查看网络接口和IP地址:输入以下命令可以查看网络接口和IP地址信息:

ip addr show

5、查看系统温度:可以使用以下命令查看CPU和主板的温度:

sensors

查看软件包信息

1、查看已安装软件包列表:输入以下命令可以查看已安装的软件包列表:

dpkg --list | grep installed | awk '{print $2}' | sort -u

2、查看软件源信息:输入以下命令可以查看软件源的配置信息和更新状态:

cat /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -v '#' | grep -v '^$' | sort -u | awk '{print $1}' | while read line; do echo "deb $line"; done | sort -u | uniq -c | sort -n | awk '{print $2, $1}' | sort -n | awk '{print $1, $2}' | while read line; do echo "deb-src $line"; done | sort -u | uniq -c | sort -n | awk '{print $2, $1}' | sort -n | head -n 1000000000000000000000000000000000000000000000000001; echo "done' | sudo tee /etc/apt/sources.list > /dev/null && sudo apt update && sudo apt list --installed > ~/installed_packages.txt && echo "Done" && nano ~/installed_packages.txt && nano /etc/apt/sources.list && sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo apt autoclean -y && echo "Done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done" && echo "All done"
最后修改时间:
文章相关标签:
美国vps
上一篇 2024年01月14日 07:08
下一篇 2024年01月14日 07:22

评论已关闭