...
- From the UI navigate to Locations > Connections > SHH
- Change commandprefixcode to SUDO
- Change usecommandprefix to True
The actual command that is being run is as follow:
...
{set
...
the
...
path};if
...
sudo
...
-l
...
{command}>/dev/null;
...
then
...
sudo
...
{command};
...
else
...
{command};fi
{set the path};if sudo -l {command}>/dev/null; then sudo {command}; else {command};fi
This difference might be important because the The precise behaviour might be dependent on the user’s standard shell. ‘if’ is a shell command that can have slightly different behaviours behaviors on different shells.… it is a very simple use of ‘if’, so it probably won’t be a problem … (probably).
Info |
---|
Related articles
...