4 ms·
then you watch the code, create a branch: git checkout -b `bugfix/nasty_one` Please remove backticks from the command. What if you called the branch `powero
by 0xmohit 10y ago
then you watch the code, create a branch:
git checkout -b `bugfix/nasty_one`
Please remove backticks from the command. What if you called the branch `poweroff` instead and a naive reader copy/pasted the command into her terminal?
- icebraining 10y agopoweroff: Need to be root
- 0xmohit 10y agoOne might have sudo privileges configured via /etc/sudoers (It's the default on AWS EC2 instances!)
- icebraining 10y agoYes, but you still need to call "sudo poweroff", not just "poweroff".
- avhon1 10y agoSee user chainsaw10. Anecdotally, on my vanilla Arch systems, I can run "poweroff" without being root, and without sudo, and the computers will end all processes and turn off.
- chainsaw10 10y agoSome recent distros will actually let you run that as yourself, without root, if you're physically present at the machine. It's convenient for personal machines.
- guyzmo 10y agoThanks, fixed