Commands.app

systemctl

System Info

Control systemd services and system state

Examples
Common usage examples

Start nginx service

systemctl start nginx

Stop nginx service

systemctl stop nginx

Restart nginx service

systemctl restart nginx

Check status of nginx service

systemctl status nginx

Enable nginx to start at boot

systemctl enable nginx
Notes
  • Used in modern Linux distributions with systemd
  • Requires root or sudo privileges for most commands