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

相关推荐
程序员 _孜然4 天前
Ubuntu/Debian修改网卡名字enP3p49s0为eth0
linux·运维·驱动开发·嵌入式硬件·ubuntu·debian
Gavin_9157 天前
从零开始部署经典开源项目管理系统最新版redmine6-Linux Debian12
linux·ruby on rails·开源·debian·ruby·redmine
天朝八阿哥7 天前
Debian从12升到13的翻车记
debian
闻道且行之10 天前
嵌入式|VNC实现开发板远程Debian桌面
运维·debian·嵌入式
路多辛12 天前
Debian新一代的APT软件源配置文件格式DEB822详解
linux·运维·ubuntu·debian
飘飘燃雪17 天前
在 Linux 系统上安装 Docker 的步骤如下(以 Ubuntu/Debian为例)
linux·ubuntu·docker·debian
ℳ₯㎕ddzོꦿ࿐19 天前
在 Debian 系统上安装 Redis服务
运维·redis·debian
samson_www20 天前
Debian系统更新实现
运维·debian
木子欢儿23 天前
在 Debian 12 上安装 Xfce 桌面
java·linux·运维·服务器·debian