How to check from command line if your user has admin rights
This post explains how to check if your user has admin rights using your command line. Linux Using sudo command You can run a command like this: timeout 2 sudo id && echo Access granted || echo Access denied Mac…