Skip to content
On this page

Menampilkan informasi systemd

CommandKeterangan
sudo systemctl list-dependenciesMenampilkan unit dependencies
sudo systemctl list-socketsDaftar soket dan apa yang diaktifkan
sudo systemctl list-jobsMelihat pekerjaan systemd yang aktif
sudo systemctl list-unit-filesLihat file unit dan statusnya
sudo systemctl list-unitsDaftar target default

Perintah dasar systemd

CommandKeterangan
sudo systemctl stop <service>Menghentikan service yang berjalan
sudo systemctl start <service>Memulai service
sudo systemctl restart <service>Restart service yang berjalan
sudo systemctl reload <service>Reload semua config file di service
sudo systemctl status <service>Melihat status service apakah berjalan/tidak
sudo systemctl enable <service>Aktifkan service saat boot
sudo systemctl disable <service>Non-aktifkan service saat boot
sudo systemctl show <service>Menampilkan properties dari service
sudo systemctl -H <host> status networkMenjalankan perintah systemctl secara remote

Perintah System states

CommandKeterangan
sudo systemctl rebootMulai ulang/reboot system
sudo systemctl poweroffShutdown/Mematikan system
sudo systemctl emergencyEmergency mode
sudo systemctl defaultMengembalikan default target

Menampilkan pesan log

CommandKeterangan
journalctlMenampilkan semua pesan log
journalctl -u network.serviceMenampilkan pesan service network
journalctl -fIkuti pesan yang muncul
journalctl -kMenampilkan pesan log hanya kernel