Menampilkan informasi systemd
| Command | Keterangan |
|---|---|
| sudo systemctl list-dependencies | Menampilkan unit dependencies |
| sudo systemctl list-sockets | Daftar soket dan apa yang diaktifkan |
| sudo systemctl list-jobs | Melihat pekerjaan systemd yang aktif |
| sudo systemctl list-unit-files | Lihat file unit dan statusnya |
| sudo systemctl list-units | Daftar target default |
Perintah dasar systemd
| Command | Keterangan |
|---|---|
| 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 network | Menjalankan perintah systemctl secara remote |
Perintah System states
| Command | Keterangan |
|---|---|
| sudo systemctl reboot | Mulai ulang/reboot system |
| sudo systemctl poweroff | Shutdown/Mematikan system |
| sudo systemctl emergency | Emergency mode |
| sudo systemctl default | Mengembalikan default target |
Menampilkan pesan log
| Command | Keterangan |
|---|---|
| journalctl | Menampilkan semua pesan log |
| journalctl -u network.service | Menampilkan pesan service network |
| journalctl -f | Ikuti pesan yang muncul |
| journalctl -k | Menampilkan pesan log hanya kernel |