◎名称
lastcomm - show last commands executed in reverse order
◎语法
lastcomm [-escesu] [-f file] [command ...] [user ...] [terminal ...]
◎描述
lastcomm 提供先前所执行命令的讯息,若没有任何参数被加上,
lastcomm 会将目前记录档中的所有纪录显示出来。
◎参数
-e 显示行程(process)结束的时间。
-s 显示行程开始的时间。
-c 显示行程所用去的 cpu 时间。
-e 显示行程所消耗的时间。
-s 显示行程所用去的系统时间(system time)。
-u 显示行程所用去的使用者时间(user time)。
-f file 让 lastcomm 读取其他档案而非预设的档案 /var/account/acct。
若没有参数被指定使用,-cs 是预设值。
若有加上参数,则只有完全符合的资讯才会被列出。
ex:
lastcomm a.out root ttyd0
=> lastcomm (command) (user) (terminal)
会列出所有叫做 a.out 且在 ttyd0 被 root 执行的命令。
◎flags 说明
s => 此命令是由super-user所执行的。
f => 此命令是在fork後执行,而非是在exec之後。
d => 此命令终止(terminated)并产生一个core file。
x => 此命令经由一个讯号(signal)被终止。
◎档案
/var/account/acct 预设的统计资讯档案。
◎参考资料
lastcomm(1)
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器