From ed02f46578af6b994d6f9382669d3ab135081466 Mon Sep 17 00:00:00 2001 From: 8ga Date: Thu, 5 Mar 2026 10:28:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E6=9F=A5=E7=9C=8BUbuntu?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E8=AF=A6=E6=83=85.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 查看Ubuntu系统详情.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 查看Ubuntu系统详情.md diff --git a/查看Ubuntu系统详情.md b/查看Ubuntu系统详情.md new file mode 100644 index 0000000..7d9862d --- /dev/null +++ b/查看Ubuntu系统详情.md @@ -0,0 +1,11 @@ +# 安装相关工具 + +```bash +sudo apt update && sudo apt install -y pciutils util-linux +``` + +# 执行命令 + +```bash +echo "=== 系统核心信息 ===" && lsb_release -a && echo -e "\n=== 内核版本 ===" && uname -r && echo -e "\n=== 硬件架构 ===" && uname -m && echo -e "\n=== CPU 信息 ===" && lscpu | grep -E "Model name|CPU\(s\)|Architecture" && echo -e "\n=== 内存使用情况 ===" && free -h && echo -e "\n=== 磁盘空间 (根分区) ===" && df -h / && echo -e "\n=== 显卡信息 ===" && lspci -k | grep -A 2 -i vga && echo -e "\n=== 当前运行内核引导参数 ===" && cat /proc/cmdline +``` \ No newline at end of file