Skip to main content

sudo_command

Function sudo_command 

Source
pub fn sudo_command(arguments: &str) -> String
Expand description

sudo, then this program, then arguments: a command an operator can paste.

sudo searches only its own secure_path, which an npm or nvm installation is not on, and the npm command is a Node shim that root’s PATH could not run either. So the command names this executable – the native binary, even behind that shim – unless it already lives on secure_path, where the bare name reads better and works.