Difference between revisions of "Systemctl"

From wikieduonline
Jump to navigation Jump to search
Line 22: Line 22:
 
** <code>[[systemctl list-unit-files]] --state=enabled</code>
 
** <code>[[systemctl list-unit-files]] --state=enabled</code>
 
* List services enabled: <code>systemctl list-unit-files --state=enabled</code>
 
* List services enabled: <code>systemctl list-unit-files --state=enabled</code>
* Show properties: <code>systemctl show sshd.service</code>
+
* Show properties:  
 +
** <code>[[systemctl show]] sshd.service</code>
 
* View dependencies: <code>systemctl list-dependencies sshd.service</code>
 
* View dependencies: <code>systemctl list-dependencies sshd.service</code>
 
* Creating new services in: <code>/etc/systemd/system/</code> https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-unit_files
 
* Creating new services in: <code>/etc/systemd/system/</code> https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-unit_files

Revision as of 06:45, 17 December 2020

systemctl command is used to control the systemd system and service manager.[1]

Services configuration directory:

/etc/systemd/system/
    sshd.service


Basic Usage

Activities

Basic

Advanced


Related terms

See also

  • https://www.freedesktop.org/software/systemd/man/systemctl.html
  • https://www.linuxtrainingacademy.com/systemd-cheat-sheet/
  • https://wiki.ubuntu.com/DebuggingSystemd
  • Advertising: