Debian系统查看OS Loader、内核和init/systemd相关信息

OS Loader(GRUB)

  1. 查看是否使用grub作为OS Loader

    ls -lh /boot/grub/

  2. 查看.cfg文件

    sudo cat /boot/grub/grub.cfg

内核

  1. 查看内核文件位置

    ls /boot/vmlinuz-*

  2. 查看内核版本号

    uname -r

Init/systemd

  1. 查看init位置

    ls -l /sbin/init

如果输出如下,说明使用的是systemd

查看pid为1的进程,确认使用的是否为systemd

复制代码
ps -p 1 -o comm=
  1. 查看systemd位置

    ls -lh /etc/systemd

  2. 查看systemd的主配置文件

    cat /etc/systemd/system.conf

相关推荐
七歌杜金房8 小时前
我终于又有了自己的 Linux 电脑
linux·debian·mac
2601_9618752415 天前
决战申论100题2026|最新|范文
linux·容器·centos·debian·ssh·fabric·vagrant
AI帮小忙18 天前
Debian系linux操作系统里安装OpenClaw
linux·运维·debian
sxd200121 天前
Debian #1135514 bug引发的思考
网络·debian·bug
一池秋_24 天前
chroot-debian一键部署
android·容器·debian
来点抹茶吗1 个月前
U-Boot、内核移植与根文件系统构建(BeagleBone Green Gateway&AM335X)
linux·嵌入式硬件·ubuntu·debian
赵民勇1 个月前
Debian包systemd服务处理
debian
轻帆向远1 个月前
Debian 旧版源配置指南:国内镜像加速与 archive.debian.org 替代方案
网络·debian·apt
tianyuanwo1 个月前
Debian 系统 deb 仓库管理与配置完全指南
debian·deb
WXDcsdn1 个月前
新安装的Debian 12系统开启root用户和ssh登录权限
运维·debian·ssh