Show Menu
Cheatography

Systemd (systemctl Journalctl) Cheat Sheet (DRAFT) by

Systemd (systemctl Journalctl)

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

systemctl

list-units
Show running Units
enable Unitfile
Enable Unit
disable Unitfile
Disables Unit
start Unitname
Starting Unit
stop Unitname
Stoping Unit
restart Unitname
Restarting Unit
reload Unitname
Reloding Unit new
status unitname
Show Status of the Unit
is-enabled Unitfile
Checks if Unit is enabled
--failed
List failed Units
list-u­­ni­t­-­files
List Unit files with Status
mask Unit
Makes impossible to start unit
unmask Unit
Unmaks Unit
systemctl reboot
reboot
systemctl poweroff
poweroff
systemctl suspend
suspend
systemctl hibernate
hiberate

systemd

/usr/l­ib/­sys­tem­d/s­ystemd -- version
systemd version
system­d-a­nalyze
overview of the system boot-up time
system­d-a­nalyze blame
Find Out Time Each Unit Took to Start
system­d-a­nalyze critic­al-­chain
Print time-c­ritical Chain for Default Target
system­d-a­nalyze plot > file.svg
stdout boot analyze to file
 

journalctl

journalctl --list­-boots
list of boots
journalctl -b
show all meaages from this boot
journalctl -b -1
show all mesages from previous boot
journalctl --sinc­e="2­012­-10-30 18:17:16
Show all messages from date
journalctl --since "20 min ago
Show all messages since 20 minutes ago
journalctl -f
Follow new messages
journalctl -u netcfg
Show all messages by a specific unit
journalctl -f -u apache
Follow new messages of unit
journalctl _PID=1
Show all messages by a specific process
journalctl -p err..alert
Show only error, critical, and alert priority messages
journalctl --vacu­um-­siz­e=100M
Remove archived journal files until the disk space they use falls below 100M
journalctl --vacu­um-­siz­e=100M
Remove archived journal files until the disk space they use falls below 100M
journalctl --vacu­um-­tim­e=2­weeks
Make all journal files contain no data older than 2 weeks.
 

Kernel­modul

lsmod
list kernel­modules
modinfo modulname
show info about modul
modprobe
load modul
modprobe -r modulname
remove modul
/etc/m­odp­rob­e.d­/bl­ack­lis­t.conf
blacklist pcspkr
example blackl­isting
/etc/m­odp­rob­e.d­/my­fil­ena­me.conf
options thinkp­ad_acpi fan_co­ntrol=1
example pass module settings
modprobe - c
Show config­uration of all modules
modprobe - c | grep module­_name
Show config­uration of an modul
/etc/m­odu­les­-lo­ad.d­/<­pro­gra­m>.conf (insert modulname in file)
load modul manually
/etc/m­kin­itc­pio.conf
modul hooks
mkinitcpio -M
automa­tically detected modules
mkinitcpio -v
list all modules pulled in by the various hooks
modpro­be.b­la­ckl­ist­=mo­dna­me1­,mo­dna­me2­,mo­dname3
add to bootlo­ader's kernel line if no boot is possible