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

Содержание

Журнал

Понедельник (05/25/09)

/dev/pts/0
11:09:44
#Package generated configuration file

/dev/pts/2
11:09:46
#nano ssh_config
/dev/pts/0
11:09:48
#./ssh restart
Restarting OpenBSD Secure Shell server: sshd.
11:09:53
#ls -l
total 268
-rw-r--r-- 1 root root  1510 Dec 26  2007 README
-rwxr-xr-x 1 root root  4021 May 14 22:50 aumix
-rwxr-xr-x 1 root root  2155 Jan  5  2008 bootlogd
-rwxr-xr-x 1 root root  1988 Jul 16  2008 bootmisc.sh
-rwxr-xr-x 1 root root  3004 Aug 12  2008 checkfs.sh
-rwxr-xr-x 1 root root  9831 Dec 30  2007 checkroot.sh
-rwxr-xr-x 1 root root  7651 Feb 20 20:00 console-screen.kbd.sh
-rwxr-xr-x 1 root root  1053 May 19 21:04 console-setup
-rwxr-xr-x 1 root root  3009 May 13 03:05 cron
...
-rwxr-xr-x 1 root root   525 Jan  2  2008 stop-bootlogd
-rwxr-xr-x 1 root root  1096 Jan  2  2008 stop-bootlogd-single
-rwxr-xr-x 1 root root   515 Mar 28 23:16 sudo
-rwxr-xr-x 1 root root  7345 Apr 18 04:44 udev
-rwxr-xr-x 1 root root  1001 Jul 11  2008 udev-mtab
-rwxr-xr-x 1 root root  3175 Mar  2  2008 umountfs
-rwxr-xr-x 1 root root  2140 Dec 30  2007 umountnfs.sh
-rwxr-xr-x 1 root root  1456 May 29  2008 umountroot
-rwxr-xr-x 1 root root  1815 Sep 13  2006 urandom
-rwxr-xr-x 1 root root  1777 Feb  2 14:29 x11-common
/dev/pts/2
11:10:10
# GNU nano 2.0.9 File: ssh_config

/dev/tty1
11:10:24
#cd /etc

/dev/pts/2
11:10:28
#Package generated configuration file

11:10:36
#./ssh restart
Restarting OpenBSD Secure Shell server: sshd.
/dev/tty1
11:10:38
#ssh 192.168.15.14
root@192.168.15.14's password:
Linux linux14 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon May 25 10:22:49 2009 from linux13.unix.nt
l3-agent is already running: pid=4426; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/2
11:10:42
#cd /etc

/dev/tty1
11:11:36
#exit
exit
Connection to 192.168.15.14 closed.
11:11:38
#cd /init.d
bash: cd: /init.d: No such file or directory
/dev/pts/2
11:13:04
#ls|grep lila
lilalo
11:13:11
#cd lilalo

11:13:15
#ls
l3config.pm
11:13:17
#cat l3config.pm
    "terminal_width"    => 400,
    "terminal_height"   => 300,
    "verbose"           => "yes",
    "head_lines"        => 10,
    "tail_lines"        => 10,
    "cache_head_lines"  => 250,
    "cache_tail_lines"  => 250,
    "skip_text"         => "...",
    "show_time"         => "yes",
    "show_diffs"        => "yes",
...
        my %argv_config;
        my %file_config;
        read_config_file(\%file_config, $System_Config_File);
        read_config_file(\%file_config, $User_Config_File);
        GetOptions(\%argv_config, map "$_=s", keys %Config);
        %Config = (%Config, %file_config, %argv_config);
    for my $key (keys %Config) {
        utf8::decode($Config{$key});
    }
}
/dev/tty1
11:13:31
#cd init.d

11:13:37
#w
 11:13:48 up  2:50,  3 users,  load average: 0.06, 0.12, 0.04
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     tty1     -                11:10    0.00s  0.00s  0.00s script -f -c ba
user     tty2     -                11:10    3:12   0.00s  0.00s -bash
user     tty7     :0               09:39    2:50m 30.68s  0.10s x-session-manag
/dev/pts/2
11:13:42
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data.
64 bytes from 10.0.35.100: icmp_seq=1 ttl=62 time=0.238 ms
64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.236 ms
64 bytes from 10.0.35.100: icmp_seq=3 ttl=62 time=0.225 ms
64 bytes from 10.0.35.100: icmp_seq=4 ttl=62 time=0.233 ms
64 bytes from 10.0.35.100: icmp_seq=5 ttl=62 time=0.228 ms
64 bytes from 10.0.35.100: icmp_seq=6 ttl=62 time=0.224 ms
64 bytes from 10.0.35.100: icmp_seq=7 ttl=62 time=0.225 ms
64 bytes from 10.0.35.100: icmp_seq=8 ttl=62 time=0.221 ms
64 bytes from 10.0.35.100: icmp_seq=9 ttl=62 time=0.223 ms
^C
--- 10.0.35.100 ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 7999ms
rtt min/avg/max/mdev = 0.221/0.228/0.238/0.009 ms
/dev/tty1
11:13:48
#ping 10.1.35.100
PING 10.1.35.100 (10.1.35.100) 56(84) bytes of data.
^C
--- 10.1.35.100 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2015ms
11:15:42
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data.
64 bytes from 10.0.35.100: icmp_seq=1 ttl=62 time=0.226 ms
64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.219 ms
^C
--- 10.0.35.100 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.219/0.222/0.226/0.015 ms
/dev/pts/2
11:15:46
#LANG=ru_RU.UTF8

/dev/tty1
11:15:47
#ssh 10.0.35.100
^C
11:16:16
#ssh root@10.0.35.100
^C
11:17:00
#ssh root@10.0.35.100
The authenticity of host '10.0.35.100 (10.0.35.100)' can't be established.
RSA key fingerprint is 69:b5:3e:1a:9a:b7:c3:c3:96:03:c7:b7:b4:69:1d:3b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.0.35.100' (RSA) to the list of known hosts.
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon May 25 08:31:21 2009 from linux3.unix.nt
/dev/tty2
11:17:19
#ssh root@10.0.35.100
The authenticity of host '10.0.35.100 (10.0.35.100)' can't be established.
RSA key fingerprint is 69:b5:3e:1a:9a:b7:c3:c3:96:03:c7:b7:b4:69:1d:3b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.0.35.100' (RSA) to the list of known hosts.
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon May 25 08:31:22 2009 from linux13.unix.nt
/dev/pts/1
11:22:58
#whatis route
route (8)            - show / manipulate the IP routing table
/dev/tty2
11:22:58
#whatis route
route (8)            - show / manipulate the IP routing table
/dev/tty3
11:23:30
#whatis w
w (1)                - Show who is logged on and what they are doing.
/dev/pts/1
11:23:35
#apropos copy
cp (1)               - copy files and directories
cpgr (8)             - copy with locking the given file to the password or gr...
cpio (1)             - copy files to and from archives
cppw (8)             - copy with locking the given file to the password or gr...
dd (1)               - convert and copy a file
debconf-copydb (1)   - copy a debconf database
install (1)          - copy files and set attributes
rcp (1)              - secure copy (remote file copy program)
scp (1)              - secure copy (remote file copy program)
ssh-copy-id (1)      - install your public key in a remote machine's authoriz...
/dev/tty2
11:23:35
#apropos copy
cp (1)               - copy files and directories
cpgr (8)             - copy with locking the given file to the password or gr...
cpio (1)             - copy files to and from archives
cppw (8)             - copy with locking the given file to the password or gr...
dd (1)               - convert and copy a file
debconf-copydb (1)   - copy a debconf database
install (1)          - copy files and set attributes
rcp (1)              - secure copy (remote file copy program)
scp (1)              - secure copy (remote file copy program)
ssh-copy-id (1)      - install your public key in a remote machine's authoriz...
/dev/tty3
11:23:37
#apropos copy
cp (1)               - copy files and directories
cpgr (8)             - copy with locking the given file to the password or gr...
cpio (1)             - copy files to and from archives
cppw (8)             - copy with locking the given file to the password or gr...
dd (1)               - convert and copy a file
debconf-copydb (1)   - copy a debconf database
install (1)          - copy files and set attributes
rcp (1)              - secure copy (remote file copy program)
scp (1)              - secure copy (remote file copy program)
ssh-copy-id (1)      - install your public key in a remote machine's authoriz...
/dev/pts/1
11:23:51
#apropos move
colrm (1)            - remove columns from a file
cut (1)              - remove sections from each line of files
DebianNet (3pm)      - create, remove, enable or disable entry in /etc/inetd....
delgroup (8)         - remove a user or group from the system
deluser (8)          - remove a user or group from the system
ipcrm (1)            - remove a message queue, semaphore set or shared memory id
lockfile-remove (1)  - command-line programs to safely lock and unlock files ...
lprm (1)             - remove jobs from the line printer spooling queue
modprobe (8)         - program to add and remove modules from the Linux Kernel
mv (1)               - move (rename) files
psfstriptable (1)    - remove the embedded Unicode character table from a con...
remove-default-ispell (8) - remove default ispell dictionary
remove-default-wordlist (8) - remove default wordlist
remove-shell (8)     - remove shells from the list of valid login shells
rm (1)               - remove files or directories
rmdir (1)            - remove empty directories
rmmod (8)            - simple program to remove a module from the Linux Kernel
unlink (1)           - call the unlink function to remove the specified file
update-inetd (8)     - create, remove, enable or disable entry in /etc/inetd....
update-rc.d (8)      - install and remove System-V style init script links
/dev/tty2
11:23:51
#apropos move
colrm (1)            - remove columns from a file
cut (1)              - remove sections from each line of files
DebianNet (3pm)      - create, remove, enable or disable entry in /etc/inetd....
delgroup (8)         - remove a user or group from the system
deluser (8)          - remove a user or group from the system
ipcrm (1)            - remove a message queue, semaphore set or shared memory id
lockfile-remove (1)  - command-line programs to safely lock and unlock files ...
lprm (1)             - remove jobs from the line printer spooling queue
modprobe (8)         - program to add and remove modules from the Linux Kernel
mv (1)               - move (rename) files
psfstriptable (1)    - remove the embedded Unicode character table from a con...
remove-default-ispell (8) - remove default ispell dictionary
remove-default-wordlist (8) - remove default wordlist
remove-shell (8)     - remove shells from the list of valid login shells
rm (1)               - remove files or directories
rmdir (1)            - remove empty directories
rmmod (8)            - simple program to remove a module from the Linux Kernel
unlink (1)           - call the unlink function to remove the specified file
update-inetd (8)     - create, remove, enable or disable entry in /etc/inetd....
update-rc.d (8)      - install and remove System-V style init script links
/dev/tty3
11:23:57
#man less
/dev/pts/1
11:24:00
#apropos resolve
host.conf (5)        - resolver configuration file
resolv.conf (5)      - resolver configuration file
resolver (5)         - resolver configuration file
/dev/tty2
11:24:00
#apropos resolve
host.conf (5)        - resolver configuration file
resolv.conf (5)      - resolver configuration file
resolver (5)         - resolver configuration file
/dev/pts/1
11:24:10
#man -k copy
/dev/tty2
11:24:10
#man -k copy
/dev/pts/1
11:24:26
#whatis shutdown
shutdown (8)         - bring the system down
/dev/tty2
11:24:26
#whatis shutdown
shutdown (8)         - bring the system down
/dev/pts/1
11:26:32
#whatis passwd
passwd (5)           - the password file
passwd (1)           - change user password
passwd (1ssl)        - compute password hashes
/dev/tty2
11:26:32
#whatis passwd
passwd (5)           - the password file
passwd (1)           - change user password
passwd (1ssl)        - compute password hashes
/dev/pts/1
11:26:42
#man 5 passwd
/dev/tty2
11:26:42
#man 5 passwd
/dev/pts/1
11:27:13
#man passwd
/dev/tty2
11:27:13
#man passwd
/dev/pts/1
11:27:20
#man ls
/dev/tty2
11:27:20
#man ls
/dev/tty3
11:30:28
#less
11:30:57
#less -h
11:31:01
#less --help
/dev/tty1
11:31:22
#who
root     pts/0        May 25 08:31 (linux3.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
/dev/tty2
11:31:23
#who
root     pts/0        May 25 08:31 (linux3.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
/dev/tty3
11:31:25
#man ls
/dev/tty2
11:31:26
#who
root     pts/0        May 25 08:31 (linux3.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
/dev/tty1
11:31:27
#w
 08:31:31 up 6 min,  8 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux3.unix.nt   08:31   10.00s  0.00s  0.00s script -f -c ba
root     pts/2    linux13.unix.nt  08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/4    linux14.unix.nt  08:31    5.00s  0.00s  0.00s script -f -c ba
root     pts/6    linux6.unix.nt   08:31    3.00s  0.00s  0.00s script -f -c ba
root     pts/8    linux1.unix.nt   08:31    4.00s  0.00s  0.00s script -f -c ba
root     pts/10   linux7.unix.nt   08:31    2.00s  0.00s  0.00s script -f -c ba
root     pts/12   linux11.unix.nt  08:31    1.00s  0.00s  0.00s script -f -c ba
root     pts/14   linux5.unix.nt   08:31    2.00s  0.01s  0.01s script -f -c ba
11:31:31
#w
 08:31:33 up 6 min,  8 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux3.unix.nt   08:31    1.00s  0.00s  0.00s script -f -c ba
root     pts/2    linux13.unix.nt  08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/4    linux14.unix.nt  08:31    7.00s  0.00s  0.00s script -f -c ba
root     pts/6    linux6.unix.nt   08:31    5.00s  0.00s  0.00s script -f -c ba
root     pts/8    linux1.unix.nt   08:31    6.00s  0.00s  0.00s script -f -c ba
root     pts/10   linux7.unix.nt   08:31    4.00s  0.00s  0.00s script -f -c ba
root     pts/12   linux11.unix.nt  08:31    3.00s  0.00s  0.00s script -f -c ba
root     pts/14   linux5.unix.nt   08:31    4.00s  0.01s  0.01s script -f -c ba
11:31:33
#w
 08:31:35 up 6 min,  8 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux3.unix.nt   08:31    3.00s  0.00s  0.00s script -f -c ba
root     pts/2    linux13.unix.nt  08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/4    linux14.unix.nt  08:31    9.00s  0.00s  0.00s script -f -c ba
root     pts/6    linux6.unix.nt   08:31    7.00s  0.00s  0.00s script -f -c ba
root     pts/8    linux1.unix.nt   08:31    8.00s  0.00s  0.00s script -f -c ba
root     pts/10   linux7.unix.nt   08:31    1.00s  0.00s  0.00s script -f -c ba
root     pts/12   linux11.unix.nt  08:31    5.00s  0.00s  0.00s script -f -c ba
root     pts/14   linux5.unix.nt   08:31    6.00s  0.01s  0.01s script -f -c ba
11:31:35
#w
 08:31:38 up 6 min, 10 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux3.unix.nt   08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/2    linux13.unix.nt  08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/4    linux14.unix.nt  08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/6    linux6.unix.nt   08:31   10.00s  0.00s  0.00s script -f -c ba
root     pts/8    linux1.unix.nt   08:31   11.00s  0.00s  0.00s script -f -c ba
root     pts/10   linux7.unix.nt   08:31    4.00s  0.00s  0.00s script -f -c ba
root     pts/12   linux11.unix.nt  08:31    8.00s  0.00s  0.00s script -f -c ba
root     pts/14   linux5.unix.nt   08:31    9.00s  0.01s  0.01s script -f -c ba
root     pts/16   linux12.unix.nt  08:31    2.00s  0.00s  0.00s script -f -c ba
root     pts/18   192.168.15.253   08:31    1.00s  0.00s  0.00s script -f -c ba
/dev/tty2
11:31:36
#who
root     pts/0        May 25 08:31 (linux3.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
11:31:36
#who
root     pts/0        May 25 08:31 (linux3.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
11:31:37
#who
root     pts/0        May 25 08:31 (linux3.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
11:31:37
#who
root     pts/0        May 25 08:31 (linux3.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
11:31:38
#who
root     pts/0        May 25 08:31 (linux3.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
11:31:38
#who
root     pts/0        May 25 08:31 (linux3.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
/dev/tty1
11:31:38
#w
 08:31:44 up 6 min, 13 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux8.unix.nt   08:31    1.00s  0.00s  0.00s script -f -c ba
root     pts/2    linux13.unix.nt  08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/4    linux14.unix.nt  08:31    2.00s  0.00s  0.00s script -f -c ba
root     pts/6    linux6.unix.nt   08:31    2.00s  0.00s  0.00s script -f -c ba
root     pts/8    linux1.unix.nt   08:31   17.00s  0.00s  0.00s script -f -c ba
root     pts/10   linux7.unix.nt   08:31    5.00s  0.00s  0.00s script -f -c ba
root     pts/12   linux11.unix.nt  08:31   14.00s  0.00s  0.00s script -f -c ba
root     pts/14   linux5.unix.nt   08:31   15.00s  0.01s  0.01s script -f -c ba
root     pts/16   linux12.unix.nt  08:31    8.00s  0.00s  0.00s script -f -c ba
root     pts/18   192.168.15.253   08:31    7.00s  0.00s  0.00s script -f -c ba
root     pts/20   linux4.unix.nt   08:31    5.00s  0.00s  0.00s script -f -c ba
root     pts/22   linux9.unix.nt   08:31    4.00s  0.00s  0.00s script -f -c ba
root     pts/24   linux10.unix.nt  08:31    2.00s  0.00s  0.00s script -f -c ba
/dev/tty2
11:31:39
#who
root     pts/0        May 25 08:31 (linux3.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
11:31:39
#who
root     pts/0        May 25 08:31 (linux3.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
11:31:39
#who
root     pts/0        May 25 08:31 (linux3.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
11:31:40
#who
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
11:31:40
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
11:31:41
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
11:31:41
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
11:31:42
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
root     pts/24       May 25 08:31 (linux10.unix.nt)
11:31:42
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
root     pts/24       May 25 08:31 (linux10.unix.nt)
/dev/tty1
11:31:44
#w
 08:31:56 up 6 min, 14 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux8.unix.nt   08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/2    linux13.unix.nt  08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/4    linux14.unix.nt  08:31    1.00s  0.00s  0.00s script -f -c ba
root     pts/6    linux6.unix.nt   08:31   14.00s  0.00s  0.00s script -f -c ba
root     pts/8    linux1.unix.nt   08:31   29.00s  0.00s  0.00s script -f -c ba
root     pts/10   linux7.unix.nt   08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/12   linux11.unix.nt  08:31   26.00s  0.00s  0.00s script -f -c ba
root     pts/14   linux5.unix.nt   08:31   27.00s  0.01s  0.01s script -f -c ba
root     pts/16   linux12.unix.nt  08:31   20.00s  0.00s  0.00s script -f -c ba
root     pts/18   192.168.15.253   08:31    1.00s  0.00s  0.00s script -f -c ba
root     pts/20   linux4.unix.nt   08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/22   linux9.unix.nt   08:31    8.00s  0.00s  0.00s script -f -c ba
root     pts/24   linux10.unix.nt  08:31   12.00s  0.00s  0.00s script -f -c ba
root     pts/26   linux15.unix.nt  08:31    4.00s  0.00s  0.00s script -f -c ba
/dev/tty2
11:31:45
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
root     pts/24       May 25 08:31 (linux10.unix.nt)
root     pts/26       May 25 08:31 (linux15.unix.nt)
11:31:55
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
root     pts/24       May 25 08:31 (linux10.unix.nt)
root     pts/26       May 25 08:31 (linux15.unix.nt)
/dev/tty1
11:31:56
#w
 08:32:05 up 7 min, 15 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux8.unix.nt   08:31    3.00s  0.00s  0.00s script -f -c ba
root     pts/2    linux13.unix.nt  08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/4    linux14.unix.nt  08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/6    linux6.unix.nt   08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/8    linux1.unix.nt   08:31   38.00s  0.00s  0.00s script -f -c ba
root     pts/10   linux7.unix.nt   08:31    9.00s  0.00s  0.00s script -f -c ba
root     pts/12   linux11.unix.nt  08:31   35.00s  0.00s  0.00s script -f -c ba
root     pts/14   linux5.unix.nt   08:31   36.00s  0.01s  0.01s script -f -c ba
root     pts/16   linux12.unix.nt  08:31    3.00s  0.00s  0.00s script -f -c ba
root     pts/18   192.168.15.253   08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/20   linux4.unix.nt   08:31    5.00s  0.00s  0.00s script -f -c ba
root     pts/22   linux9.unix.nt   08:31   17.00s  0.00s  0.00s script -f -c ba
root     pts/24   linux10.unix.nt  08:31   21.00s  0.00s  0.00s script -f -c ba
root     pts/26   linux15.unix.nt  08:31   13.00s  0.00s  0.00s script -f -c ba
root     pts/28   linux3.unix.nt   08:32    3.00s  0.00s  0.00s script -f -c ba
/dev/tty2
11:31:59
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
root     pts/24       May 25 08:31 (linux10.unix.nt)
root     pts/26       May 25 08:31 (linux15.unix.nt)
11:32:00
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
root     pts/24       May 25 08:31 (linux10.unix.nt)
root     pts/26       May 25 08:31 (linux15.unix.nt)
root     pts/28       May 25 08:32 (linux3.unix.nt)
11:32:03
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
root     pts/24       May 25 08:31 (linux10.unix.nt)
root     pts/26       May 25 08:31 (linux15.unix.nt)
root     pts/28       May 25 08:32 (linux3.unix.nt)
11:32:03
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
root     pts/24       May 25 08:31 (linux10.unix.nt)
root     pts/26       May 25 08:31 (linux15.unix.nt)
root     pts/28       May 25 08:32 (linux3.unix.nt)
11:32:04
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
root     pts/24       May 25 08:31 (linux10.unix.nt)
root     pts/26       May 25 08:31 (linux15.unix.nt)
root     pts/28       May 25 08:32 (linux3.unix.nt)
11:32:04
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
root     pts/24       May 25 08:31 (linux10.unix.nt)
root     pts/26       May 25 08:31 (linux15.unix.nt)
root     pts/28       May 25 08:32 (linux3.unix.nt)
11:32:05
#who
root     pts/0        May 25 08:31 (linux8.unix.nt)
root     pts/2        May 25 08:31 (linux13.unix.nt)
root     pts/4        May 25 08:31 (linux14.unix.nt)
root     pts/6        May 25 08:31 (linux6.unix.nt)
root     pts/8        May 25 08:31 (linux1.unix.nt)
root     pts/10       May 25 08:31 (linux7.unix.nt)
root     pts/12       May 25 08:31 (linux11.unix.nt)
root     pts/14       May 25 08:31 (linux5.unix.nt)
root     pts/16       May 25 08:31 (linux12.unix.nt)
root     pts/18       May 25 08:31 (192.168.15.253)
root     pts/20       May 25 08:31 (linux4.unix.nt)
root     pts/22       May 25 08:31 (linux9.unix.nt)
root     pts/24       May 25 08:31 (linux10.unix.nt)
root     pts/26       May 25 08:31 (linux15.unix.nt)
root     pts/28       May 25 08:32 (linux3.unix.nt)
/dev/tty1
11:32:05
#w
 08:32:16 up 7 min, 15 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux8.unix.nt   08:31   14.00s  0.00s  0.00s script -f -c ba
root     pts/2    linux13.unix.nt  08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/4    linux14.unix.nt  08:31   10.00s  0.00s  0.00s script -f -c ba
root     pts/6    linux6.unix.nt   08:31    5.00s  0.00s  0.00s script -f -c ba
root     pts/8    linux1.unix.nt   08:31   49.00s  0.00s  0.00s script -f -c ba
root     pts/10   linux7.unix.nt   08:31    5.00s  0.00s  0.00s script -f -c ba
root     pts/12   linux11.unix.nt  08:31    7.00s  0.00s  0.00s script -f -c ba
root     pts/14   linux5.unix.nt   08:31   47.00s  0.01s  0.01s script -f -c ba
root     pts/16   linux12.unix.nt  08:31    7.00s  0.00s  0.00s script -f -c ba
root     pts/18   192.168.15.253   08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/20   linux4.unix.nt   08:31   16.00s  0.00s  0.00s script -f -c ba
root     pts/22   linux9.unix.nt   08:31   28.00s  0.00s  0.00s script -f -c ba
root     pts/24   linux10.unix.nt  08:31   32.00s  0.00s  0.00s script -f -c ba
root     pts/26   linux15.unix.nt  08:31   24.00s  0.00s  0.00s script -f -c ba
root     pts/28   linux3.unix.nt   08:32    9.00s  0.00s  0.00s script -f -c ba
/dev/tty2
11:32:06
#screen -x
/dev/tty1
11:32:16
#w
 08:32:27 up 7 min, 16 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux8.unix.nt   08:31   25.00s  0.00s  0.00s script -f -c ba
root     pts/2    linux13.unix.nt  08:31    0.00s  0.00s  0.00s script -f -c ba
root     pts/4    linux14.unix.nt  08:31   21.00s  0.00s  0.00s script -f -c ba
root     pts/6    linux6.unix.nt   08:31   16.00s  0.00s  0.00s script -f -c ba
root     pts/8    linux1.unix.nt   08:31   60.00s  0.00s  0.00s script -f -c ba
root     pts/10   linux7.unix.nt   08:31   16.00s  0.00s  0.00s script -f -c ba
root     pts/12   linux11.unix.nt  08:31   18.00s  0.00s  0.00s script -f -c ba
root     pts/14   linux5.unix.nt   08:31   58.00s  0.01s  0.01s script -f -c ba
root     pts/16   linux12.unix.nt  08:31   18.00s  0.00s  0.00s script -f -c ba
root     pts/18   192.168.15.253   08:31    6.00s  0.00s  0.00s script -f -c ba
root     pts/20   linux4.unix.nt   08:31   27.00s  0.00s  0.00s script -f -c ba
root     pts/22   linux9.unix.nt   08:31   39.00s  0.00s  0.00s script -f -c ba
root     pts/24   linux10.unix.nt  08:31   43.00s  0.00s  0.00s script -f -c ba
root     pts/26   linux15.unix.nt  08:31   35.00s  0.00s  0.00s script -f -c ba
root     pts/28   linux3.unix.nt   08:32   20.00s  0.00s  0.00s script -f -c ba
root     pts/30   linux2.unix.nt   08:32    7.00s  0.00s  0.00s script -f -c ba
11:32:27
#screen -s
/dev/tty3
11:33:17
#No previous regular expression (press RETURN)
       --block-size=SIZE
              use SIZE-byte blocks
       -B, --ignore-backups
              do not list implied entries ending with ~
       -c     with -lt: sort by, and show, ctime (time of last modification of
              file status information) with -l: show ctime and  sort  by  name
              otherwise: sort by ctime
       -C     list entries by columns
       --color[=WHEN]
              control  whether  color is used to distinguish file types.  WHEN
...
       -L, --dereference
              when showing file information for a symbolic link, show informa-
              tion for the file the link references rather than for  the  link
              itself
       -m     fill width with a comma separated list of entries
       -n, --numeric-uid-gid
              like -l, but list numeric user and group IDs
       -N, --literal
              print  raw entry names (don't treat e.g. control characters spe-
              cially)
/dev/tty1
11:34:26
#screen -x
/dev/tty3
11:35:36
#whereis mc
mc:
/dev/pts/1
11:35:39
#whereis set
set:
/dev/tty2
11:35:39
#whereis set
set:
/dev/tty3
11:35:42
#whereis vi
vi: /usr/bin/vi /usr/share/man/man1/vi.1.gz
/dev/pts/1
11:35:43
#whereis man
man: /usr/bin/man /usr/local/man /usr/share/man /usr/share/man/man7/man.7.gz /usr/share/man/man1/man.1.gz
/dev/tty2
11:35:43
#whereis man
man: /usr/bin/man /usr/local/man /usr/share/man /usr/share/man/man7/man.7.gz /usr/share/man/man1/man.1.gz
/dev/tty3
11:35:45
#info
/dev/pts/1
11:35:46
#man -Tps ls > /tmp/ls.ps

Файлы

  • l3config.pm
  • l3config.pm
    >
        "terminal_width"    => 400,
        "terminal_height"   => 300,
        "verbose"           => "yes",
        "head_lines"        => 10,
        "tail_lines"        => 10,
        "cache_head_lines"  => 250,
        "cache_tail_lines"  => 250,
        "skip_text"         => "...",
        "show_time"         => "yes",
        "show_diffs"        => "yes",
        "show_screenshots"  => "yes",
        "show_comments"     => "yes",
        "show_notes"        => "yes",
        "input"             => "$ENV{HOME}/.lilalo",
        "diffs"             => "",
        "input_mask"        => "*.script",
        "encoding"          => "utf-8",
        "cache"             => "$ENV{HOME}/.lilalo/report.xml",
        "cache_stat"        => "$ENV{HOME}/.lilalo/.report.dat",
        "output"            => "/tmp/report.html",
        "output_mask"       => "INDEX",
        "output_format"     => "html",
        "cgi_path"          => "/l3",
        "frontend_files"    => "/l3files",
        "frontend_css"      => "/l3files/l3.css",
        "l3shot_path"       => "/l3shot/",
        "l3shot_suffix"       => ".png",
        "frontend_google_ico"   => "/l3/google.ico",
        "frontend_linux_ico"    => "/l3/linux.ico",
        "frontend_freebsd_ico"  => "/l3/freebsd.ico",
        "frontend_opennet_ico"  => "/l3/opennet.ico",
        "frontend_local_ico"    => "/l3/freebsd.ico",
        "mywi_server"       => "127.0.0.1",
        "mywi_port"         => "19801",
        "stat_inactivity_interval"  =>  "1800",
        "signature"         => "#lm:",
        "from"              => "",
        "to"                => "",
        "lab"               => "",
        "keywords"          => "linux command",
        "files_keywords"    => "linux file",
        comment_width       => "300",
        note_width          => "500",
        time_width          => "6em",
        "mode"              => "daemon",        # daemon | normal
        "daemon_sleep_interval" => "10",
        "detach"            => "yes",
        "agent_pidfile"     => "$ENV{HOME}/.lilalo/l3-agent.pid",
        "backend_address"   => "xgu.ru",
        "backend_port"      => "18030",
        "backend_pidfile"   => "/tmp/l3-backend.pid",
        "backend_datafile"  => "/var/lilalo/lablogs-xml/backend.xml",
        "backend_datadir"  => "/var/lilalo/lablogs-xml/",
        "upload_dir"        => "/var/www/l3shot",
        "l3-agent"          => "l3-agent",
        "l3-backend"        => "l3-backend",
        "course-name"       => "",
        "course-code"       => "",
        "course-date"       => "",
        "course-center"     => "",
        "course-trainer"    => "",
        "course-student"    => "",
        "filter"            => "",
    #lm
        "show_host"         => "no",
        "l3cd"              => "",          # Текущий контекст перехваченных команд
                                            # Возможные варианты:
                                            #   КУРС/ДАТА-НАЧАР                 #   ДАТА-НАЧАР                          #   УНИКАЗОВАТЕÐ3-report"    => "./lm-report",
        "l3-report"         => "./l3-report",
    # Каталоги
        "path_lilalo"       => "/var/lilalo/",
        "path_classes"      => "/var/lilalo/classes/",
        "path_lablogs"      => "/var/lilalo/lablogs/",
        "courses_path"      => "/var/lilalo/courses/",
        "outpath"           => "/var/lilalo/out/",
        "path_web"          => "/var/www/l3",   # Путь к web-отчётам
        "path_share"        => "./share/",      # Путь к web-отчётам
    # Файлы
        "runfile"           => "lm.run",
        "logfile"           => "lm.log",
        "class"             => "class",         # Имя файла класса
        "class_suffix"      => ".xml",      # Cуффикс файла класса
        "classfile"         => "",
        "sshkey"            => "$ENV{HOME}/.ssh/id_dsa.pub",
        "lmssh"             => "./lm-ssh",
        "lminstall"         => "./lm-install",
        "ssh_user"          => "root",
        "l3scripts"         => "l3scripts",
        "cgi_path_info"     => "",
        "cgi2file"          => "",
        "year"              =>  "2006",
        "commands_to_show_at_a_go" => "100",
        "start_from_command" => "0",
    );
    sub read_config_file
    {
            my $config = $_[0];
            my $filename = $_[1];
            open(CONFIG, "$filename")
                    or return;
            while (<CONFIG>) {
            chomp;
                    s/#.*//;
                    next if /^\s*$/;
                    my ($var, $val) =  split /\s*=\s*/, $_, 2;
                    $var =~ s/\s*//;
                    $config->{$var} = $val;
            }
            close(CONFIG);
    }
    sub init_config
    {
            my %argv_config;
            my %file_config;
            read_config_file(\%file_config, $System_Config_File);
            read_config_file(\%file_config, $User_Config_File);
            GetOptions(\%argv_config, map "$_=s", keys %Config);
            %Config = (%Config, %file_config, %argv_config);
        for my $key (keys %Config) {
            utf8::decode($Config{$key});
        }
    }
    

    Статистика

    Время первой команды журнала11:09:44 2009- 5-25
    Время последней команды журнала11:35:46 2009- 5-25
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 2.97
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 0.43
    Количество командных строк в единицу времени, команда/мин 3.88
    Частота использования команд
    who27|==========================| 26.21%
    man11|==========| 10.68%
    w10|=========| 9.71%
    apropos7|======| 6.80%
    ssh7|======| 6.80%
    whatis7|======| 6.80%
    whereis6|=====| 5.83%
    cd5|====| 4.85%
    screen3|==| 2.91%
    ping3|==| 2.91%
    less3|==| 2.91%
    ls3|==| 2.91%
    Package2|=| 1.94%
    ls.ps1|| 0.97%
    GNU1|| 0.97%
    nano1|| 0.97%
    info1|| 0.97%
    No1|| 0.97%
    cat1|| 0.97%
    grep1|| 0.97%
    LANG=ru_RU.UTF81|| 0.97%
    exit1|| 0.97%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

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

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ find / -name abc
      find: /home/devi-orig/.gnome2: Keine Berechtigung
      find: /home/devi-orig/.gnome2_private: Keine Berechtigung
      find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
      find: /home/devi-orig/.metacity: Keine Berechtigung
      find: /home/devi-orig/.inkscape: Keine Berechtigung
      ^C
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

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

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$