Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.89 KB | None | 0 0
  1. systemctl [OPTIONS...] {COMMAND} ...
  2.  
  3. Query or send control commands to the systemd manager.
  4.  
  5. -h --help Show this help
  6. --version Show package version
  7. --system Connect to system manager
  8. --user Connect to user service manager
  9. -H --host=[USER@]HOST
  10. Operate on remote host
  11. -M --machine=CONTAINER
  12. Operate on local container
  13. -t --type=TYPE List units of a particular type
  14. --state=STATE List units with particular LOAD or SUB or ACTIVE state
  15. --failed Shorcut for --state=failed
  16. -p --property=NAME Show only properties by this name
  17. -a --all Show all properties/all units currently in memory,
  18. including dead/empty ones. To list all units installed on
  19. the system, use the 'list-unit-files' command instead.
  20. -l --full Don't ellipsize unit names on output
  21. -r --recursive Show unit list of host and local containers
  22. --reverse Show reverse dependencies with 'list-dependencies'
  23. --job-mode=MODE Specify how to deal with already queued jobs, when
  24. queueing a new job
  25. -T --show-transaction
  26. When enqueuing a unit job, show full transaction
  27. --show-types When showing sockets, explicitly show their type
  28. --value When showing properties, only print the value
  29. -i --ignore-inhibitors
  30. When shutting down or sleeping, ignore inhibitors
  31. --kill-who=WHO Who to send signal to
  32. -s --signal=SIGNAL Which signal to send
  33. --what=RESOURCES Which types of resources to remove
  34. --now Start or stop unit in addition to enabling or disabling it
  35. --dry-run Only print what would be done
  36. -q --quiet Suppress output
  37. --wait For (re)start, wait until service stopped again
  38. For is-system-running, wait until startup is completed
  39. --no-block Do not wait until operation finished
  40. --no-wall Don't send wall message before halt/power-off/reboot
  41. --no-reload Don't reload daemon after en-/dis-abling unit files
  42. --no-legend Do not print a legend (column headers and hints)
  43. --no-pager Do not pipe output into a pager
  44. --no-ask-password
  45. Do not ask for system passwords
  46. --global Enable/disable/mask unit files globally
  47. --runtime Enable/disable/mask unit files temporarily until next
  48. reboot
  49. -f --force When enabling unit files, override existing symlinks
  50. When shutting down, execute action immediately
  51. --preset-mode= Apply only enable, only disable, or all presets
  52. --root=PATH Enable/disable/mask unit files in the specified root
  53. directory
  54. -n --lines=INTEGER Number of journal entries to show
  55. -o --output=STRING Change journal output mode (short, short-precise,
  56. short-iso, short-iso-precise, short-full,
  57. short-monotonic, short-unix,
  58. verbose, export, json, json-pretty, json-sse, cat)
  59. --firmware-setup Tell the firmware to show the setup menu on next boot
  60. --boot-loader-menu=TIME
  61. Boot into boot loader menu on next boot
  62. --boot-loader-entry=NAME
  63. Boot into a specific boot loader entry on next boot
  64. --plain Print unit dependencies as a list instead of a tree
  65.  
  66. Unit Commands:
  67. list-units [PATTERN...] List units currently in memory
  68. list-sockets [PATTERN...] List socket units currently in memory,
  69. ordered by address
  70. list-timers [PATTERN...] List timer units currently in memory,
  71. ordered by next elapse
  72. start UNIT... Start (activate) one or more units
  73. stop UNIT... Stop (deactivate) one or more units
  74. reload UNIT... Reload one or more units
  75. restart UNIT... Start or restart one or more units
  76. try-restart UNIT... Restart one or more units if active
  77. reload-or-restart UNIT... Reload one or more units if possible,
  78. otherwise start or restart
  79. try-reload-or-restart UNIT... If active, reload one or more units,
  80. if supported, otherwise restart
  81. isolate UNIT Start one unit and stop all others
  82. kill UNIT... Send signal to processes of a unit
  83. clean UNIT... Clean runtime, cache, state, logs or
  84. or configuration of unit
  85. is-active PATTERN... Check whether units are active
  86. is-failed PATTERN... Check whether units are failed
  87. status [PATTERN...|PID...] Show runtime status of one or more units
  88. show [PATTERN...|JOB...] Show properties of one or more
  89. units/jobs or the manager
  90. cat PATTERN... Show files and drop-ins of specified units
  91. set-property UNIT PROPERTY=VALUE... Sets one or more properties of a unit
  92. help PATTERN...|PID... Show manual for one or more units
  93. reset-failed [PATTERN...] Reset failed state for all, one, or more
  94. units
  95. list-dependencies [UNIT] Recursively show units which are required
  96. or wanted by this unit or by which this
  97. unit is required or wanted
  98.  
  99. Unit File Commands:
  100. list-unit-files [PATTERN...] List installed unit files
  101. enable [UNIT...|PATH...] Enable one or more unit files
  102. disable UNIT... Disable one or more unit files
  103. reenable UNIT... Reenable one or more unit files
  104. preset UNIT... Enable/disable one or more unit files
  105. based on preset configuration
  106. preset-all Enable/disable all unit files based on
  107. preset configuration
  108. is-enabled UNIT... Check whether unit files are enabled
  109. mask UNIT... Mask one or more units
  110. unmask UNIT... Unmask one or more units
  111. link PATH... Link one or more units files into
  112. the search path
  113. revert UNIT... Revert one or more unit files to vendor
  114. version
  115. add-wants TARGET UNIT... Add 'Wants' dependency for the target
  116. on specified one or more units
  117. add-requires TARGET UNIT... Add 'Requires' dependency for the target
  118. on specified one or more units
  119. edit UNIT... Edit one or more unit files
  120. get-default Get the name of the default target
  121. set-default TARGET Set the default target
  122.  
  123. Machine Commands:
  124. list-machines [PATTERN...] List local containers and host
  125.  
  126. Job Commands:
  127. list-jobs [PATTERN...] List jobs
  128. cancel [JOB...] Cancel all, one, or more jobs
  129.  
  130. Environment Commands:
  131. show-environment Dump environment
  132. set-environment VARIABLE=VALUE... Set one or more environment variables
  133. unset-environment VARIABLE... Unset one or more environment variables
  134. import-environment [VARIABLE...] Import all or some environment variables
  135.  
  136. Manager Lifecycle Commands:
  137. daemon-reload Reload systemd manager configuration
  138. daemon-reexec Reexecute systemd manager
  139.  
  140. System Commands:
  141. is-system-running Check whether system is fully running
  142. default Enter system default mode
  143. rescue Enter system rescue mode
  144. emergency Enter system emergency mode
  145. halt Shut down and halt the system
  146. poweroff Shut down and power-off the system
  147. reboot [ARG] Shut down and reboot the system
  148. kexec Shut down and reboot the system with kexec
  149. exit [EXIT_CODE] Request user instance or container exit
  150. switch-root ROOT [INIT] Change to a different root file system
  151. suspend Suspend the system
  152. hibernate Hibernate the system
  153. hybrid-sleep Hibernate and suspend the system
  154. suspend-then-hibernate Suspend the system, wake after a period of
  155. time and put it into hibernate
  156.  
  157. See the systemctl(1) man page for details.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement