Skip to content

YisusGaming/windows-sudo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build

Sudo

Linux's sudo command now for Windows.
Contents Links
Installation Go
How to Use Go
Build from Source Go
License Go

Installation

You can also build the program from source, see Build from Source.

First, download the "windows-sudo" zip file from the release you're planning to use.

Once you've downloaded the file, unzip it. After, you should see a folder with the .exe file inside.

To complete the installation, you could add the unzipped folder to your path.

Usage

<!> If you haven't installed the program, please follow the installation guide first.

The program is very easy to use and once installed it can be used right away.

sudo [options] <program>

That's the structure the program expects you to pass in arguments.

To see available options, pass --help as an option.

Build from Source

First, make sure you have .NET installed.

.NET 6.0.302 was used for this project.

If you have git, you can git clone this repository.

git clone repo-link

Or you could simply download the source code as a zip and unzip it.

Then, navigate to the cloned or downloaded folder and run:

dotnet build --configuration Release

It should compile the solution automatically, if it doesn't work, try specifying the solution explicitly:

dotnet build SudoCommand.sln --configuration Release

These commands will compile the project in Release mode. If you need it, you can also compile in Debug mode by removing --configuration Release from the options.

Once done, the build should compile successfully and you'll see the executable in sudo/bin/Release/net6.0/.

If you compiled in Debug mode, you'll find the executable in sudo/bin/Debug/net6.0/.

License

This project is licensed under the Attribution-NonCommercial-NoDerivatives 4.0 International license.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License