How Can You Tell If You Are Logged In As Root?

RegisterLogin
How Can You Tell If You Are Logged In As Root?
Post Description: How Can You Tell If You Are Logged In As Root?
Tags: How, Can, You, Tell, If, You, Are, Logged, In, As, Root?
This Post Was Posted On Sep 29, 2008 By Webune #2236
there is a simple way you can find out whether or not you are logged in as root.

once logged in to a command-line termina, you'll receive a prompt into which you can enter commands. if you log is as the root user, a # prompt will be shown:

[root@localhost]#

but if you are not logged in as root and instead as a regular user, you will see the $ prompt instead

[root@localhost]$

hope this helps
Leave Your Comments
coddy
#2310 1
Actualy there is an easyer way to tell on linux. If
you are loged in as root your "[rootat localhost]#"
will be green instead of red. And yes that hapens to.
:)
Dec 03, 2008 Reply Report abuse
©2011 Webune Forums - Wed Dec 21, 2011 2:41 am
Powered by: Webune Forums V3