spanskiblog/content/posts/services-and-process-manage...

20 lines
645 B
Markdown
Raw Permalink Normal View History

2022-12-24 17:42:40 +01:00
2022-12-24 17:09:22 +01:00
+++
2023-02-27 21:59:02 +01:00
date="2023-02-03"
2022-12-24 17:09:22 +01:00
author="spanskiduh"
title="services-and-process-management"
2022-12-24 17:42:40 +01:00
description="click to read about services-and-process-management"
2022-12-24 17:09:22 +01:00
+++
# 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:
**OG COMMAND** -> `ps -auxf` (tree structure)
## 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