Coder Social home page Coder Social logo

sudo's Introduction

SUDO

Order bash to do things by shouting.

How-to

Typing sudo chmod +x foo.sh is so boring, isn't it? You really want to chmod that file, so let bash know about it. Be assertive:

CHMOD +x foo.sh

That way, bash knows you mean business. Plus, you save yourself three keypresses if you use caps lock, or four(!) if you use shift.

Other features

You can yell type SUDO to get bash to run the last command you wrote with sudo prefixed. After all, forgetting sudo can be very frustrating; you need to let your anger out somehow. A typical usage looks like this:

$ mkdir /bar
mkdir: cannot create directory ‘/bar’: Permission denied
$ SUDO
[sudo] password for user: 
$ /bar
bash: /bar: Is a directory
$ :)

Installation

Run install.py, follow instructions (requires Python 3). Running this script will also allow you to update to new versions.

Note: this will append to your ~/.bashrc. A backup of your ~/.bashrc is kept at ~/.bashrc.old if anything goes catastrophically wrong.

Warning: never run scripts without checking them and being certain that they are not malicious.

Acknowledgements

Thanks to @rpprroger for the idea. I just implemented the idea, badly.

sudo's People

Contributors

jthistle avatar henkla avatar jdferreira avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.