Online Linux Terminal Logo
OnlineLinuxTerminal
System & ProcessesCLI Reference

$systemctl

Control and inspect the systemd system and service manager.

Syntax DefinitionPOSIX standard
systemctl [OPTIONS] COMMAND [UNIT...]
Linux Community2.4k Online

Chat with real Linux users, learn new commands & get free cheat sheet PDFs.

Try `systemctl` Live in Interactive Sandbox

Zero-install client simulation with real-time feedback.

Open in Fullscreen Workspace↗
bash — terminal

Overview & How systemctl Works

`systemctl` is the central management tool for controlling systemd services, daemons, timers, and system states (boot targets, reboots, shutdowns) on modern Linux distributions.

Common Flags & Command Options

Flag / OptionDescription
status [service]Check running status, memory, and recent log entries of a service.
start [service]Start (activate) one or more service units.
stop [service]Stop (deactivate) one or more service units.
restart [service]Stop and then start the specified service.
enable [service]Enable service to start automatically on system boot.

Practical Real-World Examples

Example #1Check status of nginx web server
systemctl status nginx

Inspects running state, PID, uptime, and recent journal logs for nginx.

Sample Output:
● nginx.service - A high performance web server Loaded: loaded (/lib/systemd/system/nginx.service; enabled) Active: active (running) since Fri 2026-08-28 10:00:00 UTC Main PID: 1234 (nginx)

Frequently Asked Questions

What is the difference between systemctl restart and systemctl reload?

`restart` stops and restarts the process (causing brief downtime). `reload` tells the service to reload its configuration files on the fly without dropping active connections.