Thursday, 5 September 2013

Detect the device file used by a terminal

Detect the device file used by a terminal

When a terminal or console is started a /dev/ttyX file is created for that
instance. From that given terminal, is it possible to detect what is the
ttyX file being used?

No comments:

Post a Comment