DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
bash script perform root access check
#!/bin/bash if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" exit 1 fi
Source by askubuntu.com #
PREVIOUS
NEXT
Tagged:
#bash
#script
#perform
#root
#access
#check
ADD COMMENT
Topic
COMMENT
Name
9+3 =
Submit