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

相关推荐
周杰伦的稻香5 天前
Debian 9 (Stretch)仓库无法使用
运维·debian
MaoSource5 天前
Debian 12 安装 FFmpeg 命令
服务器·ffmpeg·debian
weixin_462446236 天前
一键安装单节点 Zookeeper 3.8.5(附完整 Bash 脚本)
zookeeper·debian·bash
胖好白6 天前
【RK3588开发】Debian系统的驱动开发配置
驱动开发·debian
网硕互联的小客服9 天前
Debian系统提示“Media change...”如何处理?
运维·debian
shhpeng10 天前
Debian packages 的签名与验证
运维·debian
shhpeng10 天前
Debian 包的制作与安装完整指南
运维·debian
shhpeng10 天前
如何制作一个简单的 .deb Debian 包 ?
运维·debian
weixin_4307509312 天前
OpenMediaVault debian Linux安装配置企业私有网盘(三) 静态ip地址配置
linux·服务器·debian·nas·网络存储系统
零意@12 天前
debian如何把新编译的内核镜像替换原来的内核
运维·debian·更新内核版本·linux内核版本更新·debian更新内核