systemctl enable and start service
2018-09-10
71 words
1 min read
Most of the times when I want to enable the service, I find myself enabling it immediately or it is vice versa. So, the commands I used to use were:
systemctl enable sshd.service systemctl start sshd.service
But recently I learned that I do not need the 2 commands and this can be done in single command like below
1
|
systemctl enable --now sshd.service
Related Articles:
- 2017/03/20 flatpak – get latest libreoffice
- 2017/03/13 systemd – start service when you enable it
- 2016/05/16 firewalld – enable logging
- 2015/11/30 Disk usage by file type
- 2015/07/09 evvsubst – substitute variables in text in shell
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.