645 B
645 B
+++ date="2022-12-24" author="spanskiduh" title="services-and-process-management" description="click to read about services-and-process-management" +++
Services and process management
PS command
ps aux
- display all running services (snapshot) ex.ps aux | grep "ssh"
sudo kill <pid>
- kill process with provided pid, provided byps
commandpkill <process-name>
- kill process by name 😎
OG COMMAND -> ps -auxf
(tree structure)
on systemd u can also
systemctl | grep <service_name>
- display all running services or grep onesudo systemctl is-enabled ssh
- check if service is enabled