SkillAgentSearch skills...

Sudo

sudo for windows

Install / Use

/learn @mattn/Sudo
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

sudo

sudo for windows

Usage

C:\>sudo cmd /c dir

Then, you'll see the UAC dialog.

Tutorials

Display contents of file which can't access from you

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

Pipe from/to stream

echo 123 | sudo my-command.exe | more

Change IP address

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

Edit hosts file

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

Create admin's console

sudo

Installation

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)

View on GitHub
GitHub Stars752
CategoryDevelopment
Updated18d ago
Forks38

Languages

Go

Security Score

95/100

Audited on Mar 20, 2026

No findings