Show Menu
Cheatography

systemd Cheat Sheet (DRAFT) by

systemd

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Services

start
systemctl start NAME
stop
systemctl stop NAME
restart
systemctl restart NAME
restart if running
systemctl condre­start NAME
reload
systemctl reload NAME
show status
systemctl status NAME
start at boot (enable)
systemctl enable NAME
don't start at boot (disable)
systemctl disable NAME
is enabled?
systemctl is-enabled NAME
reload systemd
systemctl daemon­-reload

File locations

 
 

Logs (journald)

show all logs
journalctl
follow log
journalctl -f

journalctl filter

today
--sinc­e=today
kernel messages (dmesg)
--dmesg
boot messages
--boot
newer than
--sinc­e=DATE
older than
--unti­l=DATE
system logs only
--system
user logs only
--user
DATE: "­201­2-10-30 18:17:­16", "­now­", "­yes­ter­day­", "­tod­ay", "­tom­orr­ow"
Default time if omitted: "­00:­00:­00"
Default date if omitted: "­tod­ay"
DATERANGE: "­s", "­min­", "­h", "­day­s", "­mon­ths­", "­wee­ks", "­yea­rs"