Système et processusCLI Manual
$systemctl
Control and inspect the systemd system and service manager.
Syntaxe de la commandePOSIX Standard
systemctl [OPTIONS] COMMAND [UNIT...]Essayer en direct dans le bac à sable interactif
Simulation côté client sans installation avec retour instantané.
bash — terminal
AST Sandbox (Free)
Aperçu et fonctionnement
`systemctl` is the central management tool for controlling systemd services, daemons, timers, and system states (boot targets, reboots, shutdowns) on modern Linux distributions.
Options et drapeaux courants
| Flag / Option | Description |
|---|---|
| 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. |
Exemples pratiques du monde réel
#1Check status of nginx web server
systemctl status nginxInspects running state, PID, uptime, and recent journal logs for nginx.
Commandes Linux associées
$psSystème et processus
Afficher un instantané des processus en cours d'exécution dans le système.
$topSystème et processus
Display real-time Linux processes and system resource utilization.
$htopSystème et processus
Interactive process viewer with colorful CPU meters and mouse support.
$killSystème et processus
Send termination or control signals to processes by PID.
$whoamiSystème et processus
Print the effective username associated with the current shell session.
$dateSystème et processus
Display or set system date and time.