systemctl enable and start service

2018-09-10 1 min read Fedora

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

  <td>
    <div class="text codecolorer">
      &nbsp;
    </div>
  </td>
</tr>
1
systemctl enable --now sshd.service
comments powered by Disqus