Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fgetty(8) [debian man page]

FGETTY(8)						   System Administrator's Manual						 FGETTY(8)

NAME
fgetty - a small getty for linux SYNOPSIS
fgetty tty [--noclear] [--long-hostname] DESCRIPTION
The command fgetty is normally invoked by init(8), opens a tty port, prompts for a login name and invokes the /bin/login command. OPTIONS
--noclear makes fgetty not clear the screen before displaying the login prompt. --long-hostname makes fgetty display the full hostname in the login prompt. FILES
/etc/issue printed before the login prompt /etc/inittab init(8) configuration file /var/run/utmp the system status file ISSUE ESCAPES
The issue-file (/etc/issue or the file may contain certain escape codes to display the system name, date and time etc. All escape codes consist of a backslash () immediately followed by one of the letters explained below. d the current date. (eg: 2002-01-19) s the system name, the name of the operating system. (eg: Linux) l the name of the current tty line. (eg: tty3) m the architecture identifier of the machine (eg: i586) n the nodename of the machine, also known as the hostname. (eg: sirius) o the domainname of the machine. (eg: (none)) r the release number of the OS. (eg: 2.4.3-i) t the current time. (eg: 14:51:51) u the number of current users logged in. (eg: 4) U the string "1 user" or "<n> users", where <n> is the number of current users logged in. (eg: 4 users) v Insert the version of the OS. (eg: #2 Fre Jan 18 23:05:45 CET 2002) ENVIRONMENT VARIABLES
HOST is set to your hostname TERM is set to linux TTY is set to the current tty line RETURN VALUES
1 could not chown/chmod tty device 3 could not open tty device 4 not a typewriter 5 vhangup failed 6 could not open tty (can't happen) 7 dup failed 8 could not exec login 9 read returned an unexpected error 10 unprintable character in login name 11 login name too long (>40) 13 user name started with a dash 23 received SIGQUIT AUTHOR
Felix von Leitner <felix-fgetty@fefe.de> Homepage: http://www.fefe.de/fgetty/ fgetty 2002-01-19 FGETTY(8)

Check Out this Related Man Page

MINGETTY(8)						     Linux Programmer's Manual						       MINGETTY(8)

NAME
mingetty - minimal getty for consoles SYNOPSIS
mingetty [--noclear] [--nonewline] [--noissue] [--nohangup] [--nohostname] [--long-hostname] [--loginprog=/bin/login] [--nice=10] [--delay=5] [--chdir=/home] [--chroot=/chroot] [--autologin username] [--loginpause] tty DESCRIPTION
mingetty is a minimal getty for use on virtual consoles. Unlike agetty(8), mingetty is not suitable for serial lines. I recommend using mgetty(8) for this purpose. OPTIONS
--noclear Do not clear the screen before prompting for the login name (the screen is normally cleared). --nonewline Do not print a newline before writing out /etc/issue. --noissue Do not output /etc/issue. --nohangup Do not call vhangup() to disable writing to this tty by other applications. --nohostname Do not print the hostname before the login prompt. --long-hostname By default the hostname is only printed until the first dot. With this option enabled, the full text from gethostname() is shown. --loginprog /bin/login Change the login app. --nice 10 Change the priority by calling nice(). --delay 5 Sleep this many seconds after startup of mingetty. --chdir /home Change into this directory before calling the login prog. --chroot /chroot Call chroot() with this directory name. --autologin username Log the specified user automatically in without asking for a login name and password. Check the -f option from /bin/login for this. --loginpause Wait for any key before dropping to the login prompt. Can be combined with --autologin to save memory by lazily spawning shells. ISSUE ESCAPES
mingetty recognizes the following escapes sequences which might be embedded in the /etc/issue file: d insert current day (localtime), l insert line on which mingetty is running, m inserts machine architecture (uname -m), inserts machine's network node hostname (uname -n), o inserts domain name, inserts operating system release (uname -r), insert current time (localtime), s inserts operating system name, u resp. U the current number of users which are currently logged in. U inserts "n users", where as u only inserts "n". v inserts operating system version (uname -v). EXAMPLE
"Linux eos i386 #1 Tue Mar 19 21:54:09 MET 1996" was produced by putting "s m v" into /etc/issue. FILES
/etc/issue, /var/run/utmp. SEE ALSO
mgetty(8), agetty(8). AUTHOR
Copyright (C) 1996 Florian La Roche <laroche@redhat.com>. Man-page written by David Frey <David.Frey@eos.lugs.ch> and Florian La Roche. Debian-Local 6 Apr 1996 MINGETTY(8)
Man Page