The Login Session
When you log in and your password is verified, you are now a user on the system. Several commands give you information about your session.
The tty Command
Another command you should examine is the tty command. This command tells you the terminal or, if you are logging in across the network, the pseudo-terminal with which you are connected. The term pseudo-terminal means that you are not directly connected to the machine through a physical connection; you are connected through the network. Take a look at an example:
1. | At the shell prompt, type tty.
|
2. | You should see something close to the following:
$ tty /dev/ttyp1 $ |
3. | The system returns the device name that your terminal uses to connect to the system. Take note that the ... |
Get Practical UNIX now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.