System and processes
The service command
The old (SysV) way of managing services. It still works, but systemctl is used today.
Syntax
service NOMBRE {start|stop|restart|status}Most useful options
statusShows whether the service is activestart / stop / restartStart, stop or restartCopy-ready examples
$ service nginx statusService status$ sudo service nginx restartRestart itYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- On modern systems service is just a shortcut to systemctl; use systemctl for everything else.
- Changing the state needs sudo.
Related commands
FAQ
Is it obsolete?
Not entirely: many old scripts and tutorials use it and it still works.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course