pub fn extract_root_cmd(command: &str) -> Option<String>Expand description
Extracts the root command from a shell command string, skipping environment variables and common prefixes
like sudo, time, etc., as well as shell operators like && or ;.