Sistema y procesosCLI Manual
$systemctl
Control and inspect the systemd system and service manager.
Sintaxis del comandoPOSIX Standard
systemctl [OPTIONS] COMMAND [UNIT...]Prueba en vivo en la terminal interactiva
Simulación del lado del cliente sin instalación y con respuesta inmediata.
bash — terminal
AST Sandbox (Free)
Descripción general y funcionamiento
`systemctl` is the central management tool for controlling systemd services, daemons, timers, and system states (boot targets, reboots, shutdowns) on modern Linux distributions.
Opciones y banderas comunes
| 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. |
Ejemplos prácticos del mundo real
#1Check status of nginx web server
systemctl status nginxInspects running state, PID, uptime, and recent journal logs for nginx.
Comandos de Linux relacionados
$psSistema y procesos
Muestra una instantánea de los procesos activos en ejecución.
$topSistema y procesos
Display real-time Linux processes and system resource utilization.
$htopSistema y procesos
Interactive process viewer with colorful CPU meters and mouse support.
$killSistema y procesos
Send termination or control signals to processes by PID.
$whoamiSistema y procesos
Print the effective username associated with the current shell session.
$dateSistema y procesos
Display or set system date and time.