Skip to main content
4 events
when toggle format what by license comment
Aug 15, 2022 at 11:55 comment added ychaouche "Only separate script can be used with sudo" : NO. you can have sudo inside the alias or function or script. "Only aliases or functions could replace system commands under same name " : No again. You can have your own scripts that replace system commands.
Aug 19, 2018 at 8:17 comment added tripleee While it is true that executing a script will momentarily consume more memory for the duration of the fork+exec, having a lot of code loaded into the memory of the current shell instance makes it consume more memory going forward, often to store code which only gets used fairly rarely.
May 9, 2012 at 15:32 comment added Mikel Aliases can also be used with sudo. But first you need alias sudo='sudo '.
Feb 10, 2012 at 16:37 history answered corvinus CC BY-SA 3.0