)
Based on the distribution you are using, the uid numbering may be in the thousands.
You can see information about your current login session by using the who command. In the following
example, the -u option says to add information about idle time and the process ID, and -H
asks that a header be printed:
$ who -uH
NAME LINE TIME IDLE PID COMMENT
chris tty1 Jan 13 20:57 . 2013
The output from this who command shows that the user chris is logged in on tty1 (which is the
monitor connected to the computer), and his login session began at 20:57 on January 13. The
IDLE time shows how long the shell has been open without any command being typed (the dot
indicates that it is currently active). PID shows the process ID of the user??™s login shell. COMMENT
would show the name of the remote computer the user had logged in from, if that user had logged
in from another computer on the network, or the name of the local X display if you were using a
Terminal window (such as :0.0).
Checking Directories and Permissions
Associated with each shell is a location in the Linux file system known as the current or working
directory. Each user has a directory that is identified as the user??™s home directory. When you first
log in to Linux, you begin with your home directory as the current directory.
Pages:
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174