GO KALI FREE
Service Commands

service Linux Command

Legacy command to run SysV init scripts (works on both SysV and systemd).

What does service do?

Legacy command to run SysV init scripts (works on both SysV and systemd).

Syntax

service service_name action

Practical example

sudo service networking restart

Related Service Commands

systemctl list-units

Lists all loaded and active systemd units (services, mounts, sockets, etc.).

journalctl

Queries and displays logs from the systemd journal.

systemctl status

Shows the current status, recent logs, and PID of a systemd service.

systemctl start

Starts a systemd service immediately.

systemctl disable

Disables a service from starting automatically at boot.

systemctl stop

Stops a running systemd service immediately.