Linux command
systemctl-show 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
systemctl show
Example
systemctl show --user
Example
systemctl show [unit]
Example
systemctl show [unit] -p [MainPID,ActiveState]
Example
systemctl show [unit] -p [MainPID] --value
Example
systemctl show -a [unit]
说明
systemctl show displays properties of units, jobs, or the service manager itself in a machine-readable format. Without arguments, it shows properties of the service manager. The output is suitable for parsing by scripts. Use `systemctl status` for human-readable output.
参数
- --user
- Show user service manager properties
- -a, --all
- Include empty properties
- -p, --property= _NAME_
- Show only specified properties
- --value
- Print only the value, skip property name and "=" (useful with -p)
- --no-pager
- Disable pager
FAQ
What is the systemctl-show command used for?
systemctl show displays properties of units, jobs, or the service manager itself in a machine-readable format. Without arguments, it shows properties of the service manager. The output is suitable for parsing by scripts. Use `systemctl status` for human-readable output.
How do I run a basic systemctl-show example?
Run `systemctl show` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --user do in systemctl-show?
Show user service manager properties