Free web hosting music - Sometimes you will be logging in to different
Sometimes you will be logging in to different machines or will have switched users so much that you aren t sure what user you currently are. To do so, use the whoami or who am i command. These commands look almost the same, but the spaces make a big difference. whoami shows who you are currently logged in as, whereas who am i shows who you originally logged on to the system as. Figure 3-14 shows examples of the two commands. Figure 3-14 The first time the whoami command is run, it shows the user as beginningunix, which is the user who logged in to this system. Then the who am i command also shows that the user is beginning unix, along with the other information that appears with the who command. Following the sudo sh command in Figure 3-14, taking beginningunix to a root shell, whoami shows the user as root. The id command shows information about the user logged in and about the user s groups. An example of id displaying the beginningunix account s information is shown in Figure 3-15, followed by an id after sudo sh, which shows the root user s information. 48 Chapter 3
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision personal web hosting services