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

Содержание

Журнал

Понедельник (06/01/09)

/dev/pts/3
09:47:57
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
...
Command (m for help): p
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
/dev/pts/8
09:47:57
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
...
Command (m for help): p
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
/dev/pts/3
09:49:11
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): a
Partition number (1-4): 1
Warning: partition 1 has empty type
Command (m for help): q
/dev/pts/8
09:49:11
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): a
Partition number (1-4): 1
Warning: partition 1 has empty type
Command (m for help): q
/dev/pts/3
09:49:34
#echo ';'|sfdisk /dev/sdb
Checking that no-one is using this disk right now ...
OK
Disk /dev/sdb: 9729 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdb1          0       -       0          0    0  Empty
/dev/sdb2          0       -       0          0    0  Empty
/dev/sdb3          0       -       0          0    0  Empty
/dev/sdb4          0       -       0          0    0  Empty
...
/dev/sdb2          0       -       0          0    0  Empty
/dev/sdb3          0       -       0          0    0  Empty
/dev/sdb4          0       -       0          0    0  Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table
Re-reading the partition table ...
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
/dev/pts/8
09:49:34
#echo ';'|sfdisk /dev/sdb
Checking that no-one is using this disk right now ...
OK
Disk /dev/sdb: 9729 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdb1          0       -       0          0    0  Empty
/dev/sdb2          0       -       0          0    0  Empty
/dev/sdb3          0       -       0          0    0  Empty
/dev/sdb4          0       -       0          0    0  Empty
...
/dev/sdb2          0       -       0          0    0  Empty
/dev/sdb3          0       -       0          0    0  Empty
/dev/sdb4          0       -       0          0    0  Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table
Re-reading the partition table ...
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
/dev/pts/3
09:50:12
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
...
   p   primary partition (1-4)
e
Partition number (1-4): 2
First cylinder (1218-9729, default 1218):
Using default value 1218
Last cylinder or +size or +sizeM or +sizeK (1218-9729, default 9729): +5G
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
/dev/pts/8
09:50:12
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
...
   p   primary partition (1-4)
e
Partition number (1-4): 2
First cylinder (1218-9729, default 1218):
Using default value 1218
Last cylinder or +size or +sizeM or +sizeK (1218-9729, default 9729): +5G
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
/dev/pts/6
09:53:58
#ыÑssh 10.0.35.100
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 Jun  1 10:16:59 2009 from 192.168.15.253
l3-agent is already running: pid=1851; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/5
09:53:58
#ыÑssh 10.0.35.100
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 Jun  1 10:16:59 2009 from 192.168.15.253
l3-agent is already running: pid=1851; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/3
09:54:04
#fidsk -l
bash: fidsk: command not found
/dev/pts/8
09:54:04
#fidsk -l
bash: fidsk: command not found
/dev/pts/3
09:54:08
#fddsk -l
bash: fddsk: command not found
/dev/pts/8
09:54:08
#fddsk -l
bash: fddsk: command not found
/dev/pts/3
09:54:11
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        1826     4891792+   5  Extended
/dev/pts/8
09:54:11
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        1826     4891792+   5  Extended
/dev/pts/3
09:54:15
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
^C
/dev/pts/8
09:54:15
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
^C
/dev/pts/3
09:54:42
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): d
Partition number (1-5): 2
Command (m for help): n
Command action
...
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3650    19543072+   5  Extended
Command (m for help): d
Partition number (1-5): 2
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
^C
/dev/pts/8
09:54:42
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): d
Partition number (1-5): 2
Command (m for help): n
Command action
...
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3650    19543072+   5  Extended
Command (m for help): d
Partition number (1-5): 2
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
^C
/dev/pts/3
09:56:19
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
...
Last cylinder or +size or +sizeM or +sizeK (1218-9729, default 9729): 3650
Command (m for help): p
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3650    19543072+   5  Extended
Command (m for help): ^C
/dev/pts/8
09:56:19
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
...
Last cylinder or +size or +sizeM or +sizeK (1218-9729, default 9729): 3650
Command (m for help): p
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3650    19543072+   5  Extended
Command (m for help): ^C
/dev/pts/10
09:56:47
#bc
bc 1.06.94
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
2432+1218
3650
/dev/pts/2
09:56:47
#bc
bc 1.06.94
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
2432+1218
3650
/dev/pts/3
09:57:25
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
...
Command (m for help): d
Partition number (1-5): 2
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
e
Partition number (1-4): 2
First cylinder (1218-9729, default 1218): 3649
Last cylinder or +size or +sizeM or +sizeK (3649-9729, default 9729): ^C
/dev/pts/8
09:57:25
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
...
Command (m for help): d
Partition number (1-5): 2
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
e
Partition number (1-4): 2
First cylinder (1218-9729, default 1218): 3649
Last cylinder or +size or +sizeM or +sizeK (3649-9729, default 9729): ^C
/dev/pts/3
09:57:43
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): d
Partition number (1-5): 2
Command (m for help): n
Command action
...
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3649    19535040    5  Extended
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
/dev/pts/8
09:57:43
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): d
Partition number (1-5): 2
Command (m for help): n
Command action
...
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3649    19535040    5  Extended
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
/dev/pts/10
09:58:04
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        1826     4891792+   5  Extended
/dev/pts/2
09:58:04
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        1826     4891792+   5  Extended
/dev/pts/10
09:58:09
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3649    19535040    5  Extended
/dev/pts/2
09:58:09
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3649    19535040    5  Extended
/dev/pts/3
09:58:26
#apt-get install mdadm
Generating array device nodes... done.
Generating mdadm.conf... done.
update-initramfs: deferring update (trigger activated)
Starting MD monitoring service: mdadm --monitor.
Assembling MD arrays...done (no arrays found in config file or automatically).
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.29-2-686
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
/dev/pts/8
09:58:26
#apt-get install mdadm
Generating array device nodes... done.
Generating mdadm.conf... done.
update-initramfs: deferring update (trigger activated)
Starting MD monitoring service: mdadm --monitor.
Assembling MD arrays...done (no arrays found in config file or automatically).
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.29-2-686
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
/dev/pts/10
09:58:33
#cd /etc/

/dev/pts/2
09:58:33
#cd /etc/

/dev/pts/3
10:05:05
#mdadm
Usage: mdadm --help
  for help
/dev/pts/8
10:05:05
#mdadm
Usage: mdadm --help
  for help
/dev/pts/3
10:06:16
#df -h
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 1.5G     0  1.5G   0% /lib/init/rw
udev                   10M  116K  9.9M   2% /dev
tmpfs                 1.5G  4.0K  1.5G   1% /dev/shm
rootfs                 19G  2.4G   16G  14% /
/dev/pts/8
10:06:16
#df -h
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 1.5G     0  1.5G   0% /lib/init/rw
udev                   10M  116K  9.9M   2% /dev
tmpfs                 1.5G  4.0K  1.5G   1% /dev/shm
rootfs                 19G  2.4G   16G  14% /
/dev/pts/3
10:09:22
#dd if=/dev/zero of=/кщroot/1.img count=1 seek=200 bs=1024
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 6.0596e-05 s, 16.9 MB/s
/dev/pts/8
10:09:22
#dd if=/dev/zero of=/кщroot/1.img count=1 seek=200 bs=1024
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 6.0596e-05 s, 16.9 MB/s
/dev/pts/3
10:11:44
#cd /root

/dev/pts/8
10:11:44
#cd /root

/dev/pts/3
10:11:51
#ls
11         harddisk.img  passswd1   screen.dot  usaddscript
disk1.img  lv-table      samba.dot  screen.png  vol1
file       passswd       samba.png  shtdown
/dev/pts/8
10:11:51
#ls
11         harddisk.img  passswd1   screen.dot  usaddscript
disk1.img  lv-table      samba.dot  screen.png  vol1
file       passswd       samba.png  shtdown
/dev/pts/3
10:11:52
#rm disk1.img

/dev/pts/8
10:11:52
#rm disk1.img

/dev/pts/3
10:12:08
#fdisk -lu /dev/sdb
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63    19551104     9775521   83  Linux
/dev/sdb2        19551105    58621184    19535040    5  Extended
/dev/pts/8
10:12:08
#fdisk -lu /dev/sdb
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63    19551104     9775521   83  Linux
/dev/sdb2        19551105    58621184    19535040    5  Extended
/dev/pts/10
10:14:34
#ls
a2ps.cfg                environment      locale.gen      purple
a2ps-site.cfg           exim4            localtime       python
adduser.conf            fonts            logcheck        python2.5
adjtime                 fstab            login.defs      rarfiles.lst
aliases                 gai.conf         logrotate.conf  rc0.d
alternatives            gamin            logrotate.d     rc1.d
anacrontab              gconf            lsb-base        rc2.d
apm                     gdm              lvm             rc3.d
approx                  gre.d            magic           rc4.d
apt                     groff            magic.mime      rc5.d
...
debsums-ignore          kernel           papersize       terminfo
default                 kernel-img.conf  passwd          timezone
defoma                  ldap             passwd-         ts.conf
deluser.conf            ld.so.cache      perl            ucf.conf
dhcp3                   ld.so.conf       pm              udev
dictionaries-common     ld.so.conf.d     PolicyKit       vim
dm                      libaudit.conf    ppp             wgetrc
dpkg                    libpaper.d       printcap        X11
emacs                   lilalo           profile         xdg
email-addresses         locale.alias     protocols       xml
/dev/pts/2
10:14:34
#ls
a2ps.cfg                environment      locale.gen      purple
a2ps-site.cfg           exim4            localtime       python
adduser.conf            fonts            logcheck        python2.5
adjtime                 fstab            login.defs      rarfiles.lst
aliases                 gai.conf         logrotate.conf  rc0.d
alternatives            gamin            logrotate.d     rc1.d
anacrontab              gconf            lsb-base        rc2.d
apm                     gdm              lvm             rc3.d
approx                  gre.d            magic           rc4.d
apt                     groff            magic.mime      rc5.d
...
debsums-ignore          kernel           papersize       terminfo
default                 kernel-img.conf  passwd          timezone
defoma                  ldap             passwd-         ts.conf
deluser.conf            ld.so.cache      perl            ucf.conf
dhcp3                   ld.so.conf       pm              udev
dictionaries-common     ld.so.conf.d     PolicyKit       vim
dm                      libaudit.conf    ppp             wgetrc
dpkg                    libpaper.d       printcap        X11
emacs                   lilalo           profile         xdg
email-addresses         locale.alias     protocols       xml
/dev/pts/10
10:14:35
#cd /etc/|grep *rc

/dev/pts/2
10:14:35
#cd /etc/|grep *rc

/dev/pts/10
10:14:48
#cd /etc/|grep rc

/dev/pts/2
10:14:48
#cd /etc/|grep rc

/dev/pts/10
10:14:50
#ls /etc/|grep rc
aumixrc
aumixrc1
bash.bashrc
inputrc
mail.rc
nanorc
rc0.d
rc1.d
rc2.d
rc3.d
rc4.d
rc5.d
rc6.d
rc.local
rcS.d
screenrc
wgetrc
/dev/pts/2
10:14:50
#ls /etc/|grep rc
aumixrc
aumixrc1
bash.bashrc
inputrc
mail.rc
nanorc
rc0.d
rc1.d
rc2.d
rc3.d
rc4.d
rc5.d
rc6.d
rc.local
rcS.d
screenrc
wgetrc
/dev/pts/10
10:14:57
#less /dev/|grep cd
/dev/ is a directory
/dev/pts/2
10:14:57
#less /dev/|grep cd
/dev/ is a directory
/dev/pts/6
10:17:02
#screen -x
/dev/pts/5
10:17:02
#screen -x
/dev/pts/6
10:17:06
#screen -x
/dev/pts/5
10:17:06
#screen -x
/dev/pts/3
10:19:15
#mdadm
Usage: mdadm --help
  for help
/dev/pts/8
10:19:15
#mdadm
Usage: mdadm --help
  for help
/dev/pts/10
10:21:59
#ls /dev/|grep cd
cdrom
/dev/pts/2
10:21:59
#ls /dev/|grep cd
cdrom
/dev/pts/10
10:22:03
#cd

/dev/pts/2
10:22:03
#cd

/dev/pts/10
10:25:01
#ls
11    harddisk.img  passswd   samba.dot  screen.dot  shtdown      vol1
file  lv-table      passswd1  samba.png  screen.png  usaddscript
/dev/pts/2
10:25:01
#ls
11    harddisk.img  passswd   samba.dot  screen.dot  shtdown      vol1
file  lv-table      passswd1  samba.png  screen.png  usaddscript
/dev/pts/10
10:25:02
#mount -o loop /root/harddisk.img /mnt
ioctl: LOOP_CLR_FD: Device or resource busy
mount: you must specify the filesystem type
/dev/pts/2
10:25:02
#mount -o loop /root/harddisk.img /mnt
ioctl: LOOP_CLR_FD: Device or resource busy
mount: you must specify the filesystem type
/dev/pts/3
10:27:17
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3649    19535040    5  Extended
/dev/pts/8
10:27:17
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3649    19535040    5  Extended
/dev/pts/3
10:28:47
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
l
First cylinder (1218-3649, default 1218):
Using default value 1218
Last cylinder or +size or +sizeM or +sizeK (1218-3649, default 3649): +5G
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
/dev/pts/8
10:28:47
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
l
First cylinder (1218-3649, default 1218):
Using default value 1218
Last cylinder or +size or +sizeM or +sizeK (1218-3649, default 3649): +5G
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
/dev/pts/3
10:29:07
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
/dev/sda5            2433        3041     4891761   83  Linux
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3649    19535040    5  Extended
/dev/sdb5            1218        1826     4891761   83  Linux
/dev/pts/8
10:29:07
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
/dev/sda5            2433        3041     4891761   83  Linux
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3649    19535040    5  Extended
/dev/sdb5            1218        1826     4891761   83  Linux
/dev/pts/3
10:29:11
#mdadm /dev/md0 -C -l 1 -n 2 /dev/sda5 /dev/sdb5
mdadm: Cannot open /dev/sda5: No such file or directory
mdadm: create aborted
/dev/pts/8
10:29:11
#mdadm /dev/md0 -C -l 1 -n 2 /dev/sda5 /dev/sdb5
mdadm: Cannot open /dev/sda5: No such file or directory
mdadm: create aborted
/dev/pts/1
10:31:51
#fdisk
Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda  (for the first IDE disk)
  or: fdisk /dev/sdc  (for the third SCSI disk)
  or: fdisk /dev/eda  (for the first PS/2 ESDI drive)
  or: fdisk /dev/rd/c0d0  or: fdisk /dev/ida/c0d0  (for RAID devices)
  ...
/dev/pts/2
10:31:51
#fdisk
Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda  (for the first IDE disk)
  or: fdisk /dev/sdc  (for the third SCSI disk)
  or: fdisk /dev/eda  (for the first PS/2 ESDI drive)
  or: fdisk /dev/rd/c0d0  or: fdisk /dev/ida/c0d0  (for RAID devices)
  ...
/dev/pts/1
10:31:54
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
/dev/sda5            2433        3041     4891761   83  Linux
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3649    19535040    5  Extended
/dev/sdb5            1218        1826     4891761   83  Linux
/dev/pts/2
10:31:54
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
/dev/sda5            2433        3041     4891761   83  Linux
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3649    19535040    5  Extended
/dev/sdb5            1218        1826     4891761   83  Linux
/dev/pts/1
10:32:01
#ssh 10.0.35.100
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 Jun  1 10:20:03 2009 from linux1.unix.nt
l3-agent is already running: pid=1851; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/2
10:32:01
#ssh 10.0.35.100
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 Jun  1 10:20:03 2009 from linux1.unix.nt
l3-agent is already running: pid=1851; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/8
10:32:37
#watch cat /proc/mdstat

/dev/pts/7
10:32:37
#watch cat /proc/mdstat

/dev/pts/8
10:33:00
#watch cat /proc/mdstat

/dev/pts/7
10:33:00
#watch cat /proc/mdstat

/dev/pts/8
10:34:33
#Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
/dev/md0:
        Version : 0.90
  Creation Time : Mon Jun  1 10:32:01 2009
     Raid Level : raid1
     Array Size : 4891648 (4.67 GiB 5.01 GB)
  Used Dev Size : 4891648 (4.67 GiB 5.01 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent
    Update Time : Mon Jun  1 10:32:01 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
           UUID : 8b5bd517:707482f2:d62d508b:2fbf3d7b (local to host linux13)
         Events : 0.1
    Number   Major   Minor   RaidDevice State
       0       8        5        0      active sync   /dev/sda5
       1       8       21        1      active sync   /dev/sdb5
/dev/pts/7
10:34:33
#Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
/dev/md0:
        Version : 0.90
  Creation Time : Mon Jun  1 10:32:01 2009
     Raid Level : raid1
     Array Size : 4891648 (4.67 GiB 5.01 GB)
  Used Dev Size : 4891648 (4.67 GiB 5.01 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent
    Update Time : Mon Jun  1 10:32:01 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
           UUID : 8b5bd517:707482f2:d62d508b:2fbf3d7b (local to host linux13)
         Events : 0.1
    Number   Major   Minor   RaidDevice State
       0       8        5        0      active sync   /dev/sda5
       1       8       21        1      active sync   /dev/sdb5
/dev/pts/8
10:35:14
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
/dev/sda5            2433        3041     4891761   83  Linux
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3649    19535040    5  Extended
/dev/sdb5            1218        1826     4891761   83  Linux
Disk /dev/md0: 5009 MB, 5009047552 bytes
2 heads, 4 sectors/track, 1222912 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x72616f62
Disk /dev/md0 doesn't contain a valid partition table
/dev/pts/7
10:35:14
#fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x337073c8
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008+  83  Linux
/dev/sda2            2433        3041     4891792+   5  Extended
/dev/sda5            2433        3041     4891761   83  Linux
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4cf22bff
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        3649    19535040    5  Extended
/dev/sdb5            1218        1826     4891761   83  Linux
Disk /dev/md0: 5009 MB, 5009047552 bytes
2 heads, 4 sectors/track, 1222912 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x72616f62
Disk /dev/md0 doesn't contain a valid partition table
/dev/pts/8
10:38:54
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
...
/dev/sdb2            1218        3649    19535040    5  Extended
/dev/sdb3            3650        6081    19535040   83  Linux
/dev/sdb5            1218        1826     4891761   83  Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
/dev/pts/7
10:38:54
#fdisk /dev/sdb
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
...
/dev/sdb2            1218        3649    19535040    5  Extended
/dev/sdb3            3650        6081    19535040   83  Linux
/dev/sdb5            1218        1826     4891761   83  Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
/dev/pts/8
10:40:53
#man pvcreate
/dev/pts/7
10:40:53
#man pvcreate
/dev/pts/8
10:42:52
#vgcreate TURBO /dev/md0
  Volume group "TURBO" successfully created

Статистика

Время первой команды журнала09:47:57 2009- 6- 1
Время последней команды журнала10:42:52 2009- 6- 1
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %19.80
Процент синтаксически неверно набранных команд, % 3.96
Суммарное время работы с терминалом *, час 0.92
Количество командных строк в единицу времени, команда/мин 1.84
Частота использования команд
fdisk38|=================================| 33.04%
cd10|========| 8.70%
grep10|========| 8.70%
ls10|========| 8.70%
mdadm6|=====| 5.22%
screen4|===| 3.48%
watch4|===| 3.48%
Personalities2|=| 1.74%
'2|=| 1.74%
man2|=| 1.74%
dd2|=| 1.74%
mount2|=| 1.74%
fddsk2|=| 1.74%
rm2|=| 1.74%
echo2|=| 1.74%
ыÑssh2|=| 1.74%
bc2|=| 1.74%
fidsk2|=| 1.74%
less2|=| 1.74%
df2|=| 1.74%
sfdisk2|=| 1.74%
apt-get2|=| 1.74%
ssh2|=| 1.74%
vgcreate1|| 0.87%
____
*) Интервалы неактивности длительностью 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$