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

相关推荐
小天源3 天前
Cacti在Debian/Ubuntu中安装及其使用
运维·ubuntu·debian·cacti
皓月盈江5 天前
Linux Debian13安装virtualbox-7.2_7.2.6-172322-Debian-trixie虚拟机平台无法运行的解决方法
linux·debian·虚拟机·virtualbox·debian13·virtualbox7.2.6·kernel driver
周杰伦的稻香13 天前
Debian 9 (Stretch)仓库无法使用
运维·debian
MaoSource13 天前
Debian 12 安装 FFmpeg 命令
服务器·ffmpeg·debian
weixin_4624462314 天前
一键安装单节点 Zookeeper 3.8.5(附完整 Bash 脚本)
zookeeper·debian·bash
胖好白14 天前
【RK3588开发】Debian系统的驱动开发配置
驱动开发·debian
网硕互联的小客服17 天前
Debian系统提示“Media change...”如何处理?
运维·debian
shhpeng18 天前
Debian packages 的签名与验证
运维·debian
shhpeng18 天前
Debian 包的制作与安装完整指南
运维·debian
shhpeng18 天前
如何制作一个简单的 .deb Debian 包 ?
运维·debian