⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sa.8

📁 UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱昂氏unix源代码分析都是用的该版
💻 8
字号:
.th SA VIII 6/1/74.sh NAMEsa \*- Shell accounting.sh SYNOPSISsa [.bd \*-abcjlnrstuv] [ file ].sh DESCRIPTIONWhen a user logs in,if the Shell is able to open the file.it /usr/adm/sha,then as each command completes the Shell writes at the end of this filethe name of the command, the user, system, and realtime consumed,and the user ID..it Sareports on, cleans up, and generally maintains this and otheraccounting files.To turn accounting on and off,the accounting file must be created or destroyedexternally..s3.it Sais able to condensethe information in.it /usr/adm/shainto a summary file.it /usr/adm/shtwhich contains a count of thenumber of times each command was called and the time resourcesconsumed.This condensation is desirable because on a large system.it shacan grow by 100 blocks per day.The summary file is read before the accounting file,so the reports include all available information..s3If a file name is given as the last argument,that file will be treatedas the accounting file;.it shais the default.There are zillions of options:.s3.de qq.s3.lp +3 3\fB\\$1\fR	\\...qq aPlace all command names containing unprintable charactersand those used only once under the name ``***other.''.qq bSort output by sum of user and system time divided by number ofcalls.Default sort is by sum of user and system times..qq cBesides total user, system, and real time for each command print percentageof total time over all commands..qq jInstead of total minutes time for each category,give seconds per call..qq lSeparate system and user time; normally they are combined..qq nSort by number of calls..qq rReverse order of sort..qq sMerge accounting file into summary file.it /usr/adm/shtwhen done..qq tFor each command report ratio of real time to the sum of user andsystem times..qq uSuperseding all other flags,print for each command in the accounting file theday of the year, time, day of the week,user ID and command name..qq vIf the next character is a digit.it n,then type the name ofeach command used.it ntimes or fewer.Await a reply from the typewriter;if it begins with ``y'', add the command tothe category ``**junk**.''This is used to strip out garbage..i0.dt.sh FILES/usr/adm/sha	accounting.br/usr/adm/sht	summary.sh "SEE ALSO"ac (VIII).sh BUGS

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -