项目作者: mattn

项目描述 :
sudo for windows
高级语言: Go
项目地址: git://github.com/mattn/sudo.git
创建时间: 2017-06-07T08:45:36Z
项目社区:https://github.com/mattn/sudo

开源协议:MIT License

下载


sudo

sudo for windows

Usage

  1. C:\>sudo cmd /c dir

Then, you’ll see the UAC dialog.

Tutorials

Display contents of file which can’t access from you

  1. sudo cmd /c type secret-file.txt > accessible-file.txt

Pipe from/to stream

  1. echo 123 | sudo my-command.exe | more

Change IP address

  1. sudo netsh interface ip add address "Local Area Connection" 33.33.33.33 255.255.255.255

Edit hosts file

  1. sudo notepad c:\windows\system32\drivers\etc\hosts

Create admin’s console

  1. sudo

Installation

  1. go install github.com/mattn/sudo@latest

requirement go1.8 or later.

Or download from release tab.

License

MIT

Author

Yasuhiro Matsumoto (a.k.a. mattn)