Well, Git comes with Bash emulator and you can use *nix commands. "sudo" and "apt-get" are not such - there are tools, programs if you like which obviously you don't have. Say no to these problems! Install win-sudo and use sudo and su as on Linux. No more "Why must I …

I run them as postinstall scripts in a Mac install package, where they are being sudo-ed automatically, but I need to do stuff w Stack Overflow Products sudo - Can't open Gedit as root - Ask Ubuntu sudo apt install nautilus-admin While there are commands to run graphical applications as root, you are strongly advised to use nano text editor, which normally is run from the terminal, for editing files as root. How to Add a User to Sudoers on Debian

Linux sudo command help and examples - Computer Hope

Linux command line basics: sudo | Enable Sysadmin

Jul 20, 2020 · Or we can use sudo to restart the system immediately: $ sudo shutdown -r now. We can use the -k option with sudo to kill the current sudo authentication: $ sudo -k. Now, the next time we issue the sudo command, the system will prompt for our password. If we want to know the version of the sudo command version, we can use the -V option.

How to Use the sudo Command - HostingAdvice.com