This file is indexed.

/usr/share/doc/HOWTO/ja-html/Text-Terminal-HOWTO-6.html is in doc-linux-ja-html 2006.05.25-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE> Text-Terminal-HOWTO : /dev/tty $B$N$h$&$JC<Kv%9%Z%7%c%k%U%!%$%k(B</TITLE>
 <LINK HREF="Text-Terminal-HOWTO-7.html" REL=next>
 <LINK HREF="Text-Terminal-HOWTO-5.html" REL=previous>
 <LINK HREF="Text-Terminal-HOWTO.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="Text-Terminal-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="Text-Terminal-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="Text-Terminal-HOWTO.html#toc6">$BL\<!$X(B</A>
<HR>
<H2><A NAME="devices_"></A> <A NAME="s6">6.</A> <A HREF="Text-Terminal-HOWTO.html#toc6">/dev/tty $B$N$h$&$JC<Kv%9%Z%7%c%k%U%!%$%k(B</A></H2>

<P>``tty'' $B$O(B ``$B%F%l%?%$%W(B (Teletype)'' $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%3%^%s%I%W%m%s%W%H(B
$B$G(B ``echo test > /dev/ttyS1'' $B$H%?%$%W$9$l$P!"(BttyS1 (COM2) $B$K$D$J$,$k(B
$BC<Kv$K(B ``test'' $B$,Aw$i$l$^$9!#(B/dev/ttyS1 $B$K%i%$%H%Q!<%_%C%7%g%s$rM?$((B
$B$F$*$-$^$7$g$&!#F1MM$K!"(B``cat my_file > /dev/ttyS0'' $B$H%?%$%W$9$l$P!"(B
my_file $B$NFbMF$,(B COM1 (ttyS0) $B$KAw$i$l$^$9!#(B</P>
<P>ttyS0 (/dev/ttyS0), ttyS1, ttyS2 $BEy(B (``S'' $B$O%7%j%"%k%]!<%H$rI=$o$9(B) 
$B$K2C$($F!"(Bcua0, cua1, cua2$BEy$N(B ``cua'' $B%7%j!<%:$,$"$j$^$9!#(Bcua0 $B$O(B 
ttyS0 $B$HF1$8%]!<%H$G$9!#(B cua $B$N(B ``cu'' $B$O(B CalloUt $B$rI=$7$^$9!#(BttyS $B%7%j!<(B
$B%:$O(B Posix $B=`5r$G$9$,!"(Bcua $B$O%b%G%`@)8f%i%$%s$,%l%G%#$8$c$J$/$F$b%]!<(B
$B%H$N%*!<%W%s$r5v$7$F$$$^$9!#%+!<%M%k$N(B 2.2 $BHG$N(B cua $B$O$9$G$KGQ$l$+$1$F(B
$B$$$F!"$=$l$r;H$*$&$H$9$k$H7Y9p%a%C%;!<%8$,H/$;$i$l$k$G$7$g$&(B ($B$^$@F0$-(B
$B$O$7$^$9$,(B)$B!#2a5n?tG/4V!"8e$m8~$-$N8_49@-$N$?$a$K$N$_(B Linux $B$K4^$^$l$F(B
$B$$$k$N$G$9!#%W%m%0%i%^$O(B ttyS $B$,(B cua $B$HF1$8$h$&$KF/$/$h$&%"%l%s%8$G$-(B
$B$k$N$G!"(Bcua $B$O$^$C$?$/I,MW$J$/$J$j$^$7$?!#(B</P>

<H2><A NAME="ss6.2">6.2</A> <A HREF="Text-Terminal-HOWTO.html#toc6.2">$B5<;wC<Kv(B</A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$%s(B) 
$B$G(B ``ps -a'' $B$r;H$($P$o$+$j$^$9!#(B``tty'' $B$NNs$r$4Mw$/$@$5$$!#%m%0%$%s(B
$B$7$F$$$k%7%'%k%W%m%;%9$G$O!"(B/dev/tty $B$,8=:_;HMQCf$NC<Kv$G$9!#$=$l$,2?(B
$B$+$rD4$Y$k$K$O(B ``tty'' $B$H%?%$%W$9$l$P$h$$$N$G$9(B (man $B%Z!<%8$N(B tty(1) 
$B$r;2>H$7$F$/$@$5$$(B)$B!#(B/dev/tty $B$O!"(BC $B%W%m%0%i%^$N$?$a$K4v$D$+$NFCD'$rJ;(B
$B$;;}$DK\Ev$NC<Kv%G%P%$%9L>$X$N%j%s%/$N$h$&$J$b$N$G$9!#(Bman $B%Z!<%8$N(B 
tty(4) $B$r$4Mw$/$@$5$$!#(B</P>

<H2><A NAME="ss6.4">6.4</A> <A HREF="Text-Terminal-HOWTO.html#toc6.4">/dev/ttyIN ``$BC<Kv(B''</A>
</H2>

<P>N $B$O(B $B@0?tCM$G$9!#(BLinux $B$G$N;HMQNc$N0l$D$K(B ISDN $B%I%i%$%P%Q%C%1!<%8(B 
isdn4linux $B$,$"$j$^$9!#(BttyIN $B$O(B ttySN $B$N$h$&$J$b$N$G$9!#(BcuaN $B$N$h$&$J(B 
cuiN $B$b$"$j$^$9!#(BttyI $B$H(B cui $B$O%b%G%`$r%(%_%e%l!<%H$7!"%b%G%`$N%3%^%s%I$b(B
$BM?$($i$l$^$9!#(B</P>

<H2><A NAME="console_dev"></A> <A NAME="ss6.5">6.5</A> <A HREF="Text-Terminal-HOWTO.html#toc6.5">$B%3%s%=!<%k(B /dev/ttyN </A>
</H2>

<P>Linux $B$G(B PC $B%b%K%?$N$3$H$rIaDL$O%3%s%=!<%k$H8F$S!"(Btty0, tty1, tty2 $BEy(B
$B$K4XO"$E$1$i$l$??t<oN`$N%G%P%$%9%9%Z%7%c%k%U%!%$%k$,$"$j$^$9!#%m%0%$%s(B
$B$7$?$H$-$O(B tty1 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$^$9!#(B
$B%7%j%"%k%]!<%HMQ%9%Z%7%c%k%U%!%$%k:n@.J}K!$O(B man $B%Z!<%8$N(B ttys(4) $B$r$4(B
$BMw$/$@$5$$!#(B mknod $B$r;H$&$K$O%a%8%c!<5Z$S%^%$%J!<%G%P%$%9HV9f$K$D$$$F(B
$BCN$C$F$$$J$1$l$P$J$j$^$;$s!#(B/dev $B%G%#%l%/%H%j$G(B ``ls -l'' $B%3%^%s%I$r;H(B
$B$($P!"I,MW$JHV9f$r?d;!$G$-$k$+$b$7$l$^$;$s!#$=$l$O4{B8$N%9%Z%7%c%k%U%!(B
$B%$%k$N%a%8%c!<!"%^%$%J!<HV9f$r2hLLI=<($G$-$k$+$i$G$9!#(B</P>

<HR>
<A HREF="Text-Terminal-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="Text-Terminal-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="Text-Terminal-HOWTO.html#toc6">$BL\<!$X(B</A>
</BODY>
</HTML>