man-pages/man1/fgconsole.1.html
2021-03-31 01:06:50 +01:00

99 lines
1.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of FGCONSOLE</TITLE>
</HEAD><BODY>
<H1>FGCONSOLE</H1>
Section: Linux User's Manual (1)<BR>Updated: 14 Feburary 2002<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<P>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
fgconsole - print the number of the active VT.
<P>
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>fgconsole</B>
<B>[</B>
-h --help
|
-V --version
|
-n --next-available
]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
If the active Virtual Terminal is
<I>/dev/ttyN</I>,
then prints
<I>N</I>
on standard output.
<P>
If the console is a serial console, then
&quot;serial&quot;
is printed instead.
<DL COMPACT>
<DT id="1"><I>-h --help</I>
<DD>
Prints short usage message and exits.
<DT id="2"><I>-V --version</I>
<DD>
Prints version number and exits.
<DT id="3"><I>--next-available</I>
<DD>
Will show the next unallocated virtual terminal. Normally 6 virtual
terminals are allocated, with number 7 used for X; this will return
&quot;8&quot; in this case.
<P>
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>NOTES</H2>
Under
<I>devfs</I>,
the consoles are in
<I>/dev/vc/N</I>.
<I>devfsd</I>
may maintain symlinks for compatibility.
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?1+chvt">chvt</A></B>(1).
<P>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="4"><A HREF="#lbAB">NAME</A><DD>
<DT id="5"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="6"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="7"><A HREF="#lbAE">NOTES</A><DD>
<DT id="8"><A HREF="#lbAF">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:12 GMT, March 31, 2021
</BODY>
</HTML>