| >> For example, want to list services? Just use `ls /etc/init.d/` You can do systemctl list-unit-files If you want to see the enabled services, then add --state=enabled , for disable --state=disabled. You can grep for those words as well. >> Want to monitor a log file? Use something like `tail -f /var/log/whatever` You can still do that. With systemd, You can use journalctl to tail the log file by
journalctl -u <unit> -f , so something like journalctl -u postfix -f You can use journalctl to search for logs in a specified time period
journalctl -u postfix --since "2022-09-30 15:10:00" --until "2022-10-01 02:00:00" Want to see a log for a specific boot ? journalctl --list-boots
journalctl -b <boot id from the previous command> You can view more about journalctl at https://linuxhandbook.com/journalctl-command/ >> How can I reliable see what file systems are supposed to be mounted at boot? I still use fstab for this. >> Sure, it wasn't super consistent but you used the same tools as you always used to. You can still use most of the same tools. I use tail,grep,awk like I used to, but I like the fact that with systemd I get a system configuration layer (which includes the init system) rather than having different tools in each distro. Do you prefer the old init system because it is something you are used to (and do not want to change) or do you have specific instances where systemd is broken for you ? |
Notably many exit codes are missing from systemd toolkits.
Gone are the Unix philosophy of mixing tools to achieve your objectives.