From 9f27419607af946b67d8bf2e23cfbb447ba1fc17 Mon Sep 17 00:00:00 2001 From: Hugh Ratsch Date: Wed, 12 Feb 2025 21:29:13 -0600 Subject: [PATCH] updated notes --- src/rhcsa.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 ``` + + + +