mingetty(8) - Linux man page
NAME
mingetty - minimal getty for consoles
# 注释 :mingetty 是一个用于虚拟控制台的最小化的 getty 工具
SYNOPSIS
mingetty [--noclear] [--nonewline] [--noissue] [--nohangup] [--nohostname] [--long-hostname] [--loginprog=/bin/login] [--nice=10] [--delay=5] [--chdir=/home] [--chroot=/chroot] [--autologin username] tty
DESCRIPTION
mingetty is a minimal getty for use on virtual consoles. Unlike (8), mingetty is not suitable for serial lines. I recommend using (8) for this purpose.
# 注释 :mingetty 是一个最小化的用于虚拟控制台的 getty 程序。mingetty 并不适用于串口登录的情况,推荐使用 mgetty 工具来用该情况
OPTIONS
- --noclear
- Do not clear the screen before prompting for the login name (the screen is normally cleared).
# 注释 :--noclear 表示在提示登录前不清屏。默认是清屏的
- --nonewline
- Do not print a newline before writing out /etc/issue.
# 注释 :--nonewline 表示在输出 /etc/issue 文件的内容之前不先打印一个空行
- --noissue
- Do not utput /etc/issue.
# 注释 :--noissue 表示不输出 /etc/issue 文件的内容。/etc/issue 的内容一般显示在 “login:" 提示符之前,包括内核版本、发行版本名称等
- --nohangup
- Do not call vhangup() to disable writing to this tty by other applications.
- --nohostname
- Do not print the hostname before the login prompt.
# 注释 :--nohostname 表示在打印 login 提示符之前不打印主机名。默认是打印的
- --long-hostname
- By default the hostname is only printed until the first dot. With this option enabled, the full text from gethostname() is shown.
# 注释 :--long-hostname 表示打印完整的主机名。默认是只打印 hostname 而已,不包括域名
- --loginprog /bin/login
- Change the login app.
# 注释 :--loginprog 表示使用那个程序来作为登录程序。默认是 /bin/login
- --nice 10
- Change the priority by calling nice().
# 注释 :--nice 表示通过调用 nice()改变优先级
- --delay 5
- Sleep this many seconds after startup of mingetty.
# 注释 :--delay 表示在“睡眠”多少秒后启动 mingetty
- --chdir /home
- Change into this directory before calling the login prog.
# 注释 :--chdir 表示在调用 login 程序之前先进入那个目录,默认是 /home
- --chroot /chroot
- Call chroot() with this directory name.
# 注释 :--chroot 表示调用 chroot
- --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.
# 注释 :--autologin 表示自动使用指定用户登录,而不用询问密码。
# 具体请看 /bin/login -f 选项
ISSUE ESCAPES
mingetty recognizes the following escapes sequences which might be embedded in the /etc/issue file:
# 注释 :mingetty 能够识别 /etc/issue 文件的一些特殊字符
- \d
- insert current day (localtime), # 注释 :\d 表示当前日期(第几天)
- \l
- insert line on which mingetty is running, # 注释 :\l 表示插入 mingetty 正在运行的行
- \m
- inserts machine architecture (uname -m), # 注释 :\m 表示插入机器的架构(uname -m)
- \n
- inserts machine's network node hostname (uname -n), # 注释 :\n 插入机器的主机名(uname -n)
- \o
- inserts domain name, # 注释 :\o 表示插入域名
- \r
- inserts operating system release (uname -r), # 注释 :\r 表示插入内核的 release (uname -r)
- \t
- insert current time (localtime), # 注释 :\t 表示插入当前时间
- \s
- inserts operating system name, # 注释 :\s 表示插入操作系统的名称
- \u
- resp. \U the current number of users which are currently logged in. \U inserts "n users", where as \u only inserts "n".
- # 注释 :\u 表示当前登录的用户数量。\U 打印 "n users"
- \v
- inserts operating system version (uname -v).
# 注释 :\v 表示插入操作系统的版本 (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.
FILES
/etc/issue, /var/run/utmp.
SEE ALSO
(8), (8).
AUTHOR
Copyright © 1996 Florian La Roche <>. Man-page written by David Frey <> and Florian La Roche.
REFERENCED BY
(5)
阅读(1098) | 评论(0) | 转发(0) |