md-notes/services-and-process-manage...

20 lines
626 B
Markdown
Raw Normal View History

2022-07-25 13:05:35 +02:00
---
tags: [linux]
title: Services and process management
created: '2021-11-24T23:37:56.443Z'
modified: '2021-12-09T21:40:19.872Z'
---
# 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 by `ps` command
- `pkill <process-name>` - kill process by name :sunglasses:
2022-09-27 09:43:08 +02:00
**OG COMMAND** -> `ps -auxf` (tree structure)
2022-07-25 13:05:35 +02:00
## on systemd u can also
- `systemctl | grep <service_name>` - display all running services or grep one
- `sudo systemctl is-enabled ssh` - check if service is enabled