Manage services useing the service command
get service status
service --status-all
service sends the status-all output to stderr. If you want to search for a service name you can run this: service --status-all |& grep <pattern>
service restart
service <service name> restart
example: sudo service lightdm restart
If X hangs you can run a few things to kill it
Alt + PrtScn +K
or
Ctrl + Alt + F1
(if you want more then one terminal you can hit F2 and F3)
No comments:
Post a Comment