Журнал лабораторных работ

Содержание

Журнал

Четверг (10/16/14)

/dev/pts/1
14:48:40
#l3pwd
/users/13-10-2014/NT-BSDadm/based-freebsd/root
14:48:40
#l3pwd
/users/13-10-2014/NT-BSDadm/based-freebsd/root
14:48:42
#ps aux|grep l3
root  45160  0.0  0.1  9544  1240  1  S+    3:48PM  0:00.02 script -t 0 -q /root/.lilalo//849712518274432672-1413463718.script l3script
root  45196  0.0  0.1  8036  1420  2  Ss    3:48PM  0:00.02 l3script (bash)
root  45241  0.0  0.1  8036  1416  2  R+    3:48PM  0:00.00 l3script (bash)
14:48:42
#ps aux|grep l3
root  45160  0.0  0.1  9544  1240  1  S+    3:48PM  0:00.02 script -t 0 -q /root/.lilalo//849712518274432672-1413463718.script l3script
root  45196  0.0  0.1  8036  1420  2  Ss    3:48PM  0:00.02 l3script (bash)
root  45241  0.0  0.1  8036  1416  2  R+    3:48PM  0:00.00 l3script (bash)
14:48:52
#w
 3:49PM  up  3:38, 2 users, load averages: 1.26, 1.08, 1.03
USER       TTY      FROM                      LOGIN@  IDLE WHAT
user       pts/0    fobos.net.nt             12:12PM    58 /usr/ports/lang/gcc48/work/build/./prev-gcc/cc1plus -quiet -nostdinc++ -I /usr/ports/lang/gcc48/work/build/prev-i386-portbld-freebsd9.2/libstdc+
root       pts/1    net.nt                    3:47PM     - script -t 0 -q /root/.lilalo//849712518274432672-1413463718.script l3script
14:48:52
#w
 3:49PM  up  3:38, 2 users, load averages: 1.26, 1.08, 1.03
USER       TTY      FROM                      LOGIN@  IDLE WHAT
user       pts/0    fobos.net.nt             12:12PM    58 /usr/ports/lang/gcc48/work/build/./prev-gcc/cc1plus -quiet -nostdinc++ -I /usr/ports/lang/gcc48/work/build/prev-i386-portbld-freebsd9.2/libstdc+
root       pts/1    net.nt                    3:47PM     - script -t 0 -q /root/.lilalo//849712518274432672-1413463718.script l3script
14:49:00
#ps aux|grep agent

14:49:00
#ps aux|grep agent

14:49:12
#ps aux|grep agent

14:49:12
#ps aux|grep agent

прошло 26 минут
15:15:20
#ls -la
total 56
drwxr-xr-x   3 root  wheel   512 Oct 16 15:48 .
drwxr-xr-x  18 root  wheel  1024 Oct 16 12:10 ..
-rw-------   1 root  wheel   131 Oct 16 15:02 .bash_history
-rw-r--r--   1 root  wheel    10 Oct 16 15:48 .bash_profile
-rw-r--r--   1 root  wheel    60 Oct 16 15:48 .bashrc
-rw-r--r--   2 root  wheel   968 Sep 27  2013 .cshrc
-rw-------   1 root  wheel  2262 Oct 16 12:13 .history
-rw-r--r--   1 root  wheel   151 Sep 27  2013 .k5login
-rw-r--r--   1 root  wheel    52 Oct 16 15:48 .l3rc
drwxr-xr-x   2 root  wheel   512 Oct 16 15:48 .lilalo
-rw-r--r--   1 root  wheel   299 Sep 27  2013 .login
-rw-r--r--   2 root  wheel   256 Sep 27  2013 .profile
-rw-r--r--   1 root  wheel  5270 Oct 16 14:35 install
15:15:20
#ls -la
total 56
drwxr-xr-x   3 root  wheel   512 Oct 16 15:48 .
drwxr-xr-x  18 root  wheel  1024 Oct 16 12:10 ..
-rw-------   1 root  wheel   131 Oct 16 15:02 .bash_history
-rw-r--r--   1 root  wheel    10 Oct 16 15:48 .bash_profile
-rw-r--r--   1 root  wheel    60 Oct 16 15:48 .bashrc
-rw-r--r--   2 root  wheel   968 Sep 27  2013 .cshrc
-rw-------   1 root  wheel  2262 Oct 16 12:13 .history
-rw-r--r--   1 root  wheel   151 Sep 27  2013 .k5login
-rw-r--r--   1 root  wheel    52 Oct 16 15:48 .l3rc
drwxr-xr-x   2 root  wheel   512 Oct 16 15:48 .lilalo
-rw-r--r--   1 root  wheel   299 Sep 27  2013 .login
-rw-r--r--   2 root  wheel   256 Sep 27  2013 .profile
-rw-r--r--   1 root  wheel  5270 Oct 16 14:35 install
15:15:23
#vim .vimrc
--- /dev/null	2014-10-16 16:15:29.000000000 +0300
+++ .vimrc	2014-10-16 16:15:36.000000000 +0300
@@ -0,0 +1,2 @@
+set nubmer
+
15:15:23
#vim .vimrc
--- /dev/null	2014-10-16 16:15:29.000000000 +0300
+++ .vimrc	2014-10-16 16:15:36.000000000 +0300
@@ -0,0 +1,2 @@
+set nubmer
+
15:15:36
#vim
15:15:36
#vim
15:15:39
#~
~
~
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
".vimrc" 2L, 12C written
15:15:39
#~
~
~
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
".vimrc" 2L, 12C written
15:15:51
#vim
15:15:51
#vim
15:15:55
#~
  1 # /etc/crontab - root's crontab for FreeBSD
  2 #
  3 # $FreeBSD: release/9.2.0/etc/crontab 194170 2009-06-14 06:37:19Z brian $
  4 #
  5 SHELL=/bin/sh
  6 PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
  7 #
  8 #minute hour    mday    month   wday    who     command
  9 #
 10 */5     *       *       *       *       root    /usr/libexec/atrun
...
 17 #
 18 # Perform daily/weekly/monthly maintenance.
 19 1       3       *       *       *       root    periodic daily
 20 15      4       *       *       6       root    periodic weekly
 21 30      5       1       *       *       root    periodic monthly
 22 #
 23 # Adjust the time zone if the CMOS clock keeps local time, as opposed to
 24 # UTC time.  See adjkerntz(8) for details.
 25 1,31    0-5     *       *       *       root    adjkerntz -a
"/etc/crontab" 25L, 732C
15:15:55
#~
  1 # /etc/crontab - root's crontab for FreeBSD
  2 #
  3 # $FreeBSD: release/9.2.0/etc/crontab 194170 2009-06-14 06:37:19Z brian $
  4 #
  5 SHELL=/bin/sh
  6 PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
  7 #
  8 #minute hour    mday    month   wday    who     command
  9 #
 10 */5     *       *       *       *       root    /usr/libexec/atrun
...
 17 #
 18 # Perform daily/weekly/monthly maintenance.
 19 1       3       *       *       *       root    periodic daily
 20 15      4       *       *       6       root    periodic weekly
 21 30      5       1       *       *       root    periodic monthly
 22 #
 23 # Adjust the time zone if the CMOS clock keeps local time, as opposed to
 24 # UTC time.  See adjkerntz(8) for details.
 25 1,31    0-5     *       *       *       root    adjkerntz -a
"/etc/crontab" 25L, 732C
15:16:06
#/e
  2
~
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
".vimrc" 1L, 11C written
15:16:06
#/e
  2
~
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
".vimrc" 1L, 11C written
15:16:15
#cd

15:16:15
#cd

15:16:16
#/usr/libexec/locate.updatedb
>>> WARNING
>>> Executing updatedb as root.  This WILL reveal all filenames
>>> on your machine to all login users, which is a security risk.
15:16:16
#/usr/libexec/locate.updatedb
>>> WARNING
>>> Executing updatedb as root.  This WILL reveal all filenames
>>> on your machine to all login users, which is a security risk.
15:17:46
#locate l3
/etc/lilalo/l3config.pm
/root/.l3rc
/root/.lilalo/l3bashrc
/root/.lilalo/l3prompt
/usr/home/user/.l3rc
/usr/home/user/.lilalo/l3bashrc
/usr/home/user/.lilalo/l3prompt
/usr/include/openssl/ssl3.h
/usr/local/bin/l3-agent
/usr/local/bin/l3-config
...
/usr/src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/translators/err.D_SYNTAX.BadTransDecl3.d
/usr/src/contrib/gcclibs/libdecnumber/decimal32.c
/usr/src/contrib/gcclibs/libdecnumber/decimal32.h
/usr/src/crypto/openssl/ssl/ssl3.h
/usr/src/share/doc/usd/07.mail/mail3.nr
/usr/src/sys/powerpc/ofw/ofwcall32.S
/usr/src/tools/regression/bin/sh/builtins/eval3.0
/usr/src/tools/regression/bin/sh/builtins/local3.0
/usr/src/tools/regression/bin/sh/execution/subshell3.0
/usr/src/tools/regression/bin/sh/set-e/until3.0
15:17:46
#locate l3
/etc/lilalo/l3config.pm
/root/.l3rc
/root/.lilalo/l3bashrc
/root/.lilalo/l3prompt
/usr/home/user/.l3rc
/usr/home/user/.lilalo/l3bashrc
/usr/home/user/.lilalo/l3prompt
/usr/include/openssl/ssl3.h
/usr/local/bin/l3-agent
/usr/local/bin/l3-config
...
/usr/src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/translators/err.D_SYNTAX.BadTransDecl3.d
/usr/src/contrib/gcclibs/libdecnumber/decimal32.c
/usr/src/contrib/gcclibs/libdecnumber/decimal32.h
/usr/src/crypto/openssl/ssl/ssl3.h
/usr/src/share/doc/usd/07.mail/mail3.nr
/usr/src/sys/powerpc/ofw/ofwcall32.S
/usr/src/tools/regression/bin/sh/builtins/eval3.0
/usr/src/tools/regression/bin/sh/builtins/local3.0
/usr/src/tools/regression/bin/sh/execution/subshell3.0
/usr/src/tools/regression/bin/sh/set-e/until3.0
15:21:09
#locate l3-agent
/usr/local/bin/l3-agent
15:21:09
#locate l3-agent
/usr/local/bin/l3-agent
15:21:13
#/usr/local/bin/l3-agent

15:21:13
#/usr/local/bin/l3-agent

15:21:22
#ps aux|l3-agent
l3-agent is already running: pid=78836; pidfile=/root/.lilalo/l3-agent.pid
15:21:22
#ps aux|l3-agent
l3-agent is already running: pid=78836; pidfile=/root/.lilalo/l3-agent.pid
15:21:32
#ps aux|grep l3-agent
root  78836  3.0  1.0 20668 10168 ??  Ss    4:21PM  0:05.50 l3-agent (perl5.14.4)
15:21:32
#ps aux|grep l3-agent
root  78836  3.0  1.0 20668 10168 ??  Ss    4:21PM  0:05.50 l3-agent (perl5.14.4)

Статистика

Время первой команды журнала14:48:40 2014-10-16
Время последней команды журнала15:21:32 2014-10-16
Количество командных строк в журнале38
Процент команд с ненулевым кодом завершения, %26.32
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 0.55
Количество командных строк в единицу времени, команда/мин 1.16
Частота использования команд
ps10|====================| 20.83%
grep8|================| 16.67%
vim6|============| 12.50%
locate4|========| 8.33%
l3-agent4|========| 8.33%
~4|========| 8.33%
/e2|====| 4.17%
locate.updatedb2|====| 4.17%
l3pwd2|====| 4.17%
ls2|====| 4.17%
cd2|====| 4.17%
w2|====| 4.17%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматичес