systemctl enable and start service
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