diff --git a/src/rhcsa.md b/src/rhcsa.md index 74bd387..7cd3ade 100644 --- a/src/rhcsa.md +++ b/src/rhcsa.md @@ -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 ``` + + + +