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

相关推荐
qetfw2 天前
Debian OpenSSL CA 证书配置参考:根证书、服务证书与验证
linux·debian·ssl·openssl
qetfw5 天前
Debian OpenSSL 搭建 CA 证书服务:签发、吊销与客户端信任
linux·debian·openssl·ca
qetfw9 天前
Debian 使用 FTP 镜像源配置 APT 软件源
linux·debian·apt·ftp
XiangrongZ10 天前
debian中配置stm32的交叉编译环境
运维·stm32·debian
qetfw10 天前
Debian Apache2 执行 Shell CGI:动态时间页面配置与验证
linux·运维·debian
qetfw12 天前
Debian Apache2 实战:自定义站点目录、运行用户与 Basic Auth 认证
linux·运维·debian
qetfw13 天前
Debian 配置 AIDE 文件完整性检测:基线初始化、变更检查与数据库更新
linux·网络·数据库·debian
谜之锋25 天前
银河麒麟 Debian 系统离线deb包安装Mariadb 数据库指南
数据库·debian·mariadb
美丽的欣情1 个月前
RK3588 Debian 交叉编译环境搭建(Windows + VMware Debian + CMake)
运维·windows·debian