Aamnah's Dev Notes
Home
About
Quotes
Resources
What i did
Sections
APIs
Algorithms
Amazon Web Services (AWS)
Armbian
Bash Scripting
CSS & Sass
Cheatsheets
Commands
Databases
DevOps
Drafts
Expo
Flutter
Git & Github
Graphql
Hardware
JS Interview Prep
JavaScript
Jekyll
Linux
Misc
Node-api
Node.js
OpenCart
PHP
Programming
Python
Quotes
Raspberry Pi
React Native & Expo
Reactjs
Redux
Resources
System Administration
Web Development
Workflow
iOS & Swift
Most Used Tags
linux
,
es2015
,
mysql
,
bash
,
how-to
,
array-methods
,
commands
,
concepts
,
cheatsheet
,
free
,
sass
,
ssh
,
compass
,
python
,
backups
,
editor
,
hugo
,
opencart
,
raspberry-pi
,
basics
,
Require script to be run as root
Edit on Github
bash-scripting/run-script-as-root.md
Mar 13, 2017
Bash Scripting
Run as root
[ "$EUID" -eq 0 ] || { echo 'Please run with sudo or as root.' exit 1 }