Система и процессыCLI Manual
$systemctl
Control and inspect the systemd system and service manager.
Синтаксис командыPOSIX Standard
systemctl [OPTIONS] COMMAND [UNIT...]Попробуйте в интерактивной песочнице
Клиентская симуляция без установки с мгновенным результатом.
bash — terminal
AST Sandbox (Free)
Обзор и принцип работы
`systemctl` is the central management tool for controlling systemd services, daemons, timers, and system states (boot targets, reboots, shutdowns) on modern Linux distributions.
Основные флаги и параметры команды
| 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. |
Практические примеры использования
#1Check status of nginx web server
systemctl status nginxInspects running state, PID, uptime, and recent journal logs for nginx.
Похожие команды Linux
$psСистема и процессы
Отображение моментального снимка активных процессов операционной системы.
$topСистема и процессы
Display real-time Linux processes and system resource utilization.
$htopСистема и процессы
Interactive process viewer with colorful CPU meters and mouse support.
$killСистема и процессы
Send termination or control signals to processes by PID.
$whoamiСистема и процессы
Print the effective username associated with the current shell session.
$dateСистема и процессы
Display or set system date and time.