|
|
1.1 root 1: .TH TTY 1
2: .CT 1 comm_term
3: .SH NAME
4: tty, logtty \- get terminal name
5: .SH SYNOPSIS
6: .B tty
7: [
8: .B -s
9: ]
10: .PP
11: .B logtty
12: .SH DESCRIPTION
13: .I Tty
14: prints the pathname associated with the standard input file
15: if it can be found in
16: the
17: .F /dev
18: directory,
19: .L "nameless pipe/"
20: and a unique string if the file is a pipe,
21: .L "not a tty"
22: otherwise.
23: Option
24: .L -s
25: suppresses output,
26: returning exit status only.
27: .PP
28: .I Logtty
29: prints the pathname associated with the terminal
30: on which the current session was logged in.
31: If the login terminal can't be found,
32: .L "no login tty"
33: is printed.
34: .PP
35: In a
36: .IR mux (9.1)
37: window,
38: .I tty
39: reports the name of the window, while
40: .I logtty
41: reports the name of the terminal.
42: But see
43: .SM BUGS.
44: .SH "SEE ALSO"
45: .IR who (1)
46: .SH DIAGNOSTICS
47: Exit status is
48: 0 if a real pathname was printed,
49: 1 for
50: .LR "not a tty"
51: or
52: .LR "no login tty" ,
53: 2 for a pipe.
54: .SH BUGS
55: Mounting something atop the login terminal
56: hides it from
57: .IR logtty .
58: .IR Vismon (9.1)
59: does this.
60: .PP
61: Try
62: .LR "tty </" .
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.