Pierre Frenkiel composed on 2021-10-12 13:05 (UTC-0400): > I found today that my runlevel is set to 5, but I have no idea where it > comes from. > in /etc/inittab, it is set to 2, but I saw that this file is no more used. > So, can anybody tell where it is set? > In installations using systemd, targets have replaced runlevels. Selected runlevel numbers are aliased to selected targets. e.g. 3 equates roughly to multi-user.target, and 5 equates to graphical.target, when used on a kernel command line or the telinit alias to systemctl:
# ll /sbin/init lrwxrwxrwx 1 root root 20 Jul 13 13:29 /sbin/init -> /lib/systemd/systemd # ll /sbin/telinit lrwxrwxrwx 1 root root 14 Jul 13 13:29 /sbin/telinit -> /bin/systemctl <https://alibaba-cloud.medium.com/understanding-and-changing-runlevels-in-systemd-ccc30065c53d> -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata