LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 747|回复: 4

Gentoo: 请问登录之后执行顺序, 从哪里开始的, 退出之后又是从哪里开始执行的, 谢

[复制链接]
发表于 2009-3-2 10:23:55 | 显示全部楼层 |阅读模式
Last login: Thu Feb 26 13:44:10 2009 from 192.168.1.28
zshenv...
  load /etc/profile...
/etc/profile:60: no matches found: /etc/profile.d/*.sh
zprofile...
zshrc...
zaliasrc...
  executing zfunct...
  executing zlogin...

比如上面 Last login: Thu Feb 26 13:44:10 2009 from 192.168.1.28
是哪里输出的?
发表于 2009-3-2 12:00:18 | 显示全部楼层
cat /etc/issue
回复 支持 反对

使用道具 举报

发表于 2009-3-2 12:17:59 | 显示全部楼层
你可以找advance programming in unix environment来看看
里面有一章

or
man agetty
man login
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-3 10:13:05 | 显示全部楼层
感谢回复
Post by tlze;1954991
cat /etc/issue
这个我知道, 是登录之前的欢迎词, 根我的问题不相关哦
顺便请教一下, This is \n.\O (\s \m \r) \t
\t 有什么方法设置时间格式吗?
最近 \t 显示的年份和时区不显示了.  (2009 HKT  不显示了),  现在想让这个显示, 不是直接把这个加到 issue后面, 有没有这种时间格式显示.  \ x 这种, 或什么变量显示
Post by zhllg;1955003
你可以找advance programming in unix environment来看看
里面有一章

or
man agetty
man login

现在就去看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-4 09:55:45 | 显示全部楼层
/etc/issue
b   Insert the baudrate of the current line.
d   Insert the current date.
s   Insert the system name, the name of the operating system.
l   Insert the name of the current tty line.
m   Insert the architecture identifier of the machine, e.g., i686.
n   Insert the nodename of the machine, also known as the hostname.
o   Insert the domainname of the machine.
r   Insert the release number of the kernel, e.g., 2.6.11.12.
t   Insert the current time.
u   Insert the number of current users logged in.
U   Insert the string "1 user" or "<n> users" where <n> is the number of current users logged in.
v   Insert the version of the OS, e.g., the build-date etc.

没有显示TIMEZONE的,我装完系统之后的确有显示,现在不见了,只显示时间
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表