DS bash – check that script is being executed by root ~~ August 24, 2019 12345if [ $EUID -ne 0 ] then /bin/echo $'\nThis script must be run as the root user!\n' exit fi Related Posts:bash - du to get space used by directorybash: for - looping over and processing files in…bash NULL DEVICE - redirecting output & errorssqlite3 access via bashApple Mail - control mail check intervalbash OSX: hours on a computer, list rebootsBash Substring Matching within Stringbash - awk with colored outputBitBar - OSX custom menu bar - running #!/bin/bash