O'Reilly logo

Practical UNIX by Steve Moritsugu - DTR Business Systems

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required