I am making a simple bash script. I want to use an IF statement that checks to make sure the user is logged in before it runs (else Exit).
Anyone know what command line to use to make sure the computer is not at the login window, or that a user is logged in?
Thanks in advance.