updated notes

This commit is contained in:
Hugh Ratsch
2025-02-12 21:29:13 -06:00
parent 8cbcebc1d1
commit 9f27419607
+22
View File
@@ -105,9 +105,31 @@ top # Display running processes
top -o %MEM # Sort by memory usage top -o %MEM # Sort by memory usage
top -o %CPU # Sort by CPU usage top -o %CPU # Sort by CPU usage
top -p 1234 # Display information for process 1234
```
### pidof
```bash
pidof sleep # Display the PID of the sleep command
```
### kill
```bash
kill -l # List all signals
kill -9 1234 # Kill the process with PID 1234
```
### nice
```bash
nice -n 10 sleep 100 # Run the sleep command with a priority of 10
``` ```