updated notes
This commit is contained in:
@@ -105,9 +105,31 @@ top # Display running processes
|
||||
top -o %MEM # Sort by memory 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
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user