Linux

  1. Home
  2. Computing & Technology
  3. Linux
Linux / Unix Command: mingetty
Command Library

NAME

mingetty - minimal getty for consoles  

SYNOPSIS

mingetty [--noclear] [--long-hostname] 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).
--long-hostname
By default the hostname is only printed until the first dot. With this option enabled, the full text from gethostname() is shown.

 

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),
\n
inserts machine's network node hostname (uname -n),
\o
inserts domain name,
\r
inserts operating system release (uname -r),
\t
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 \n \m \v" into /etc/issue.

 

SEE ALSO

mgetty(8), agetty(8).

 


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Explore Linux

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Linux

  1. Home
  2. Computing & Technology
  3. Linux

©2009 About.com, a part of The New York Times Company.

All rights reserved.