赞
踩
有时候在 "ps aux" 命令的输出中,可以看到以下进程:
/sbin/agetty --noclear tty1 linux
这个进程是怎么来的?
在系统起来之后,屏幕上会出现一个登录框,这个登录框就是这个 agetty 整出来的。在登录之后,这个进程就自动退出了。
- # cat /etc/init/tty.conf
-
- stop on runlevel [S016]
-
- respawn
- instance $TTY
- exec /sbin/mingetty $TTY
- usage 'tty TTY=/dev/ttyX - where X is console id'
同理,当按下 Ctrl + Alt + F1/2/3/4/5/6 的时候,画面里出现的登录界面也是agetty整出来的。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。