Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattn/sudo
sudo for windows
https://github.com/mattn/sudo
go golang sudo website
Last synced: 5 days ago
JSON representation
sudo for windows
- Host: GitHub
- URL: https://github.com/mattn/sudo
- Owner: mattn
- License: mit
- Created: 2017-06-07T08:45:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-17T14:55:23.000Z (almost 3 years ago)
- Last Synced: 2024-10-22T12:52:21.882Z (12 days ago)
- Topics: go, golang, sudo, website
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 749
- Watchers: 19
- Forks: 41
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - sudo
- awesome-discoveries - sudo - sudo for windows _(`Go`)_ (CLI Utilities)
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](https://github.com/mattn/sudo/releases) tab.
## License
MIT
## Author
Yasuhiro Matsumoto (a.k.a. mattn)