Added OG command

main
Gasper Spagnolo 2022-09-27 09:43:08 +02:00
parent 72fa9c1296
commit bc1dc2490f
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ modified: '2021-12-09T21:40:19.872Z'
- `sudo kill <pid>` - kill process with provided pid, provided by `ps` command - `sudo kill <pid>` - kill process with provided pid, provided by `ps` command
- `pkill <process-name>` - kill process by name :sunglasses: - `pkill <process-name>` - kill process by name :sunglasses:
**OG COMMAND** -> `ps -auxf` (tree structure)
## on systemd u can also ## on systemd u can also
- `systemctl | grep <service_name>` - display all running services or grep one - `systemctl | grep <service_name>` - display all running services or grep one
- `sudo systemctl is-enabled ssh` - check if service is enabled - `sudo systemctl is-enabled ssh` - check if service is enabled