| /l3/users/yuriksat/nt-lnet/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 | 
    
  | 
    
| 
 #ifconfig eth1 -add net 192.168.17.1
 
 
-add: Unknown host ifconfig: `--help' gives usage information.  | 
| 
 #mii-tool 
eth0: negotiated 100baseTx-FD, link ok eth1: negotiated 100baseTx-FD, link ok  | 
| 
 #ifconfig eth1 -add 192.168.17.1
 
 
-add: Unknown host ifconfig: `--help' gives usage information.  | 
| 
 #ifconfig eth1 add 192.168.17.1 
 | 
| 
 #ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:15:F2:6B:55:25
          inet addr:192.168.15.2  Bcast:192.168.15.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:333443 errors:0 dropped:0 overruns:0 frame:0
          TX packets:202537 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:369606279 (352.4 MiB)  TX bytes:38444851 (36.6 MiB)
          Interrupt:19 Base address:0xd000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1365 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1365 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3014631 (2.8 MiB)  TX bytes:3014631 (2.8 MiB)
 | 
| 
 #ifconfig eth1 192.168.17.1 
 | 
| 
 #ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:15:F2:6B:55:25
          inet addr:192.168.15.2  Bcast:192.168.15.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:333453 errors:0 dropped:0 overruns:0 frame:0
          TX packets:202551 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:369607217 (352.4 MiB)  TX bytes:38447710 (36.6 MiB)
          Interrupt:19 Base address:0xd000
eth1      Link encap:Ethernet  HWaddr 00:04:79:67:96:C7
          inet addr:192.168.17.1  Bcast:192.168.17.255  Mask:255.255.255.0
...
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:60 (60.0 b)
          Interrupt:18 Base address:0xb000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1365 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1365 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3014631 (2.8 MiB)  TX bytes:3014631 (2.8 MiB)
 | 
| 
 #ping 192.168.17.2
 
 
PING 192.168.17.2 (192.168.17.2) 56(84) bytes of data. From 192.168.17.1 icmp_seq=1 Destination Host Unreachable From 192.168.17.1 icmp_seq=2 Destination Host Unreachable From 192.168.17.1 icmp_seq=3 Destination Host Unreachable From 192.168.17.1 icmp_seq=4 Destination Host Unreachable From 192.168.17.1 icmp_seq=5 Destination Host Unreachable From 192.168.17.1 icmp_seq=6 Destination Host Unreachable --- 192.168.17.2 ping statistics --- 9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8052ms , pipe 3  | 
| 
 #ping 192.168.17.2 
PING 192.168.17.2 (192.168.17.2) 56(84) bytes of data. 64 bytes from 192.168.17.2: icmp_seq=1 ttl=64 time=0.253 ms 64 bytes from 192.168.17.2: icmp_seq=2 ttl=64 time=0.128 ms 64 bytes from 192.168.17.2: icmp_seq=3 ttl=64 time=0.134 ms 64 bytes from 192.168.17.2: icmp_seq=4 ttl=64 time=0.135 ms --- 192.168.17.2 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3000ms rtt min/avg/max/mdev = 0.128/0.162/0.253/0.053 ms  | 
| 
 #less /etc/ 
 | 
| 
 #echo 1 > /proc/sys/net/ipv4/ip_forward 
 | 
| 
 #cat /proc/sys/net/ipv4/ip_forward 
1  | 
| 
 #iptables -t nat -A POSTROUTING -j MASQUERADE 
       for kernel versions above version 2.5.44.
       ‐‐physdev‐in name
              Name  of  a bridge port via which a packet is received (only for
              packets entering the INPUT, FORWARD and PREROUTING  chains).  If
              the  interface  name  ends  in  a  "+", then any interface which
              begins with this name will match. If the  packet  didn’t  arrive
              through  a  bridge  device, this packet won’t match this option,
              unless ’!’ is used.
       ‐‐physdev‐out name
              Name of a bridge port via which a packet is  going  to  be  sent
IPTABLES(8)                                                        IPTABLES(8)
 | 
| 
 #iptables -D F
 
 
iptables: Bad rule (does a matching rule exist in that chain?)  | 
| 
 #iptables -v
 
 
iptables v1.2.11: no command specified Try `iptables -h' or 'iptables --help' for more information.  | 
| 
 #iptables -D -F
 
 
iptables: Bad rule (does a matching rule exist in that chain?)  | 
| 
 #iptables -D 2
 
 
iptables: Bad rule (does a matching rule exist in that chain?)  | 
| 
 #iptables -lv
 
 
iptables v1.2.11: Unknown arg `iptables' Try `iptables -h' or 'iptables --help' for more information.  | 
| 
 #iptables -l-v
 
 
iptables v1.2.11: Unknown arg `iptables' Try `iptables -h' or 'iptables --help' for more information.  | 
| 
 #iptables-l
 
 
bash: iptables-l-v: command not found  | 
| 
 #watch -D 1
 
 
watch: invalid option -- D Usage: watch [-dhntv] [--differences[=cumulative]] [--help] [--interval=<n>] [--no-title] [--version] <command>  | 
| 
 #[root@linux2:user]# iptable -D 1
 
 
bash: iptable: command not found  | 
| 
 #iptables -D 1
 
 
iptables: Bad rule (does a matching rule exist in that chain?)  | 
| 
 #man iptables 
 | 
| 
 #iptables -L 
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination  | 
| 
 #iptables -t nat -A POSTROUTING -j MASQUERADE 
 | 
| 
 #iptables -L -t nat 
Chain PREROUTING (policy ACCEPT) target prot opt source destination DNAT tcp -- anywhere anywhere tcp dpt:22000 to:192.168.17.3:22 Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- anywhere anywhere MASQUERADE all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination  | 
| 
 #iptables -F 
 | 
| 
 #iptables -L 
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination  | 
| 
 #ifdown eth1 
ifdown: interface eth1 not configured  | 
| 
 #mii -tool
 
 
bash: mii: command not found  | 
| 
 #mii-tool 
eth0: negotiated 100baseTx-FD, link ok eth1: negotiated 100baseTx-FD, link ok  | 
| 
 #ifdown eth1 
ifdown: interface eth1 not configured  | 
| 
 #ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:15:F2:6B:55:25
          inet addr:192.168.15.2  Bcast:192.168.15.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:334658 errors:0 dropped:0 overruns:0 frame:0
          TX packets:203687 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:369741410 (352.6 MiB)  TX bytes:38612858 (36.8 MiB)
          Interrupt:19 Base address:0xd000
eth1      Link encap:Ethernet  HWaddr 00:04:79:67:96:C7
          inet addr:192.168.17.1  Bcast:192.168.17.255  Mask:255.255.255.0
...
          collisions:0 txqueuelen:1000
          RX bytes:34055 (33.2 KiB)  TX bytes:17691 (17.2 KiB)
          Interrupt:18 Base address:0xb000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1388 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1388 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3017599 (2.8 MiB)  TX bytes:3017599 (2.8 MiB)
 | 
| 
 #ifconfig eth0 down 
 | 
| 
 #route add default gw 192.168.17.1 
 | 
| 
 #lynx google.com
 
 
 | 
| 
 #apt-get install lynx
 
 
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово НОВЫЕ пакеты, которые будут установлены: lynx обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 364 пакетов не обновлено. Необходимо скачать 1859kБ архивов. После распаковки объем занятого дискового пространства возрастёт на 4678kB. ВНИМАНИЕ: Следующие пакеты невозможно аутентифицировать! lynx Установить эти пакеты без проверки [y/N]? y Err http://debian.org.ua testing/main lynx 2.8.5-2sarge2.1 Временная ошибка при попытке получить IP адрес 'debian.org.ua' Err http://debian.org.ua unstable/main lynx 2.8.5-2sarge2.1 Не удаётся соединиться с debian.org.ua:80 (213.186.192.209). - connect (113 No route to host) Не удалось загрузить http://debian.org.ua/debian/pool/main/l/lynx/lynx_2.8.5-2sarge2.1_i386.deb Не удаётся соединиться с debian.org.ua:80 (213.186.192.209). - connect (113 No route to host) E: Невозможно загрузить некоторые архивы, вероятно надо запустить apt-get update или попытаться повторить запуск с ключом --fix-missing  | 
| 
 #iptables -F 
 | 
| 
 #mii-tool 
eth0: negotiated 100baseTx-FD, link ok eth1: negotiated 100baseTx-FD, link ok  | 
| 
 #iptables -L 
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination  | 
| 
 #route add default gw 192.168.15.254 
 | 
| 
 #apt-get install lynx 
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово НОВЫЕ пакеты, которые будут установлены: lynx обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 364 пакетов не обновлено. Необходимо скачать 1859kБ архивов. После распаковки объем занятого дискового пространства возрастёт на 4678kB. ВНИМАНИЕ: Следующие пакеты невозможно аутентифицировать! lynx Установить эти пакеты без проверки [y/N]? y Получено:1 http://debian.org.ua testing/main lynx 2.8.5-2sarge2.1 [1859kB] Получено 1859kB за 14s (128kB/c) Выбор ранее не выбранного пакета lynx. (Чтение базы данных... на данный момент установлено 86661 файлов и каталогов.) Распаковывается пакет lynx (из файла .../lynx_2.8.5-2sarge2.1_i386.deb)... Настраивается пакет lynx (2.8.5-2sarge2.1) ...  | 
| 
 #lynx ya.ru 
 | 
| 
 #lynx fishki.net 
 | 
| 
 #man lynx 
 | 
| 
 #lynx -use_mouse fishki.net 
 | 
| 
 #[root@linux2:user]# ping 192.168.15.3 
PING 192.168.15.3 (192.168.15.3) 56(84) bytes of data. 64 bytes from 192.168.15.3: icmp_seq=1 ttl=64 time=0.364 ms 64 bytes from 192.168.15.3: icmp_seq=2 ttl=64 time=0.201 ms --- 192.168.15.3 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1017ms rtt min/avg/max/mdev = 0.201/0.282/0.364/0.083 ms  | 
| 
 #ssh user@192.168.15.254 
Password: Linux herz.linux.nt 2.6.17-prexen #3 PREEMPT Thu Aug 10 00:28:25 EEST 2006 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. No mail. Last login: Tue Sep 19 17:20:12 2006 from fbsd1.linux.nt Agent pid 5444 ... devi pts/1 :0.0 Sun15 25:37m 1.91s 0.38s ssh m02 devi pts/2 :0.0 Mon11 26:24 0.52s 0.52s bash devi pts/3 :0.0 Mon12 1:17 2.24s 1.65s ssh m02 devi pts/4 :0.0 Mon15 26:17 0.52s 0.52s bash devi pts/5 :0.0 14:30 42.00s 1.15s 0.76s bash devi pts/6 :0.0 11:38 5:34 0.55s 0.55s bash user pts/7 linux2.linux.nt 17:22 0.00s 0.02s 0.00s w user@herz:~$ exit logout Connection to 192.168.15.254 closed.  | 
| 
 #route add default gw 192.168.17.2 
 | 
| 
 #ssh user@192.168.15.254 
Password: Linux herz.linux.nt 2.6.17-prexen #3 PREEMPT Thu Aug 10 00:28:25 EEST 2006 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. No mail. Last login: Tue Sep 19 17:22:13 2006 from linux2.linux.nt Agent pid 5444 ... devi pts/1 :0.0 Sun15 26:57m 1.91s 0.38s ssh m02 devi pts/2 :0.0 Mon11 26:26 0.52s 0.52s bash devi pts/3 :0.0 Mon12 1:18 2.24s 1.65s ssh m02 devi pts/4 :0.0 Mon15 26:19 0.52s 0.52s bash devi pts/5 :0.0 14:30 2:02m 1.15s 0.76s bash devi pts/6 :0.0 11:38 5:35 0.55s 0.55s bash user pts/7 linux2.linux.nt 17:23 0.00s 0.02s 0.00s w user@herz:~$ exit logout Connection to 192.168.15.254 closed.  | 
| 
 #ifconfig eth0 down 
 | 
| 
 #ssh user@192.168.15.254 
exit ^A [1]+ Stopped ssh user@192.168.15.254  | 
| 
 #kill %1 
[1]+ Terminated ssh user@192.168.15.254  | 
| 
 #ssh user@192.168.15.254 
Password: Linux herz.linux.nt 2.6.17-prexen #3 PREEMPT Thu Aug 10 00:28:25 EEST 2006 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. No mail. Last login: Tue Sep 19 17:26:21 2006 from 192.168.15.4 Agent pid 5444 ... devi pts/2 :0.0 Mon11 26:29 0.52s 0.52s bash devi pts/3 :0.0 Mon12 1:21 2.24s 1.65s ssh m02 devi pts/4 :0.0 Mon15 26:22 0.52s 0.52s bash devi pts/5 :0.0 14:30 5:16m 1.15s 0.76s bash devi pts/6 :0.0 11:38 5:38 0.55s 0.55s bash user pts/7 192.168.15.4 17:26 4.00s 0.06s 0.05s ssh root@192.16 user pts/8 192.168.15.3 17:26 0.00s 0.03s 0.01s w user@herz:~$ exit logout Connection to 192.168.15.254 closed.  | 
| 
 #iptables -L -t nat 
Chain PREROUTING (policy ACCEPT) target prot opt source destination DNAT tcp -- anywhere anywhere tcp dpt:22000 to:192.168.17.3:22 Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- anywhere anywhere MASQUERADE all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination  | 
| 
 #iptables -F 
 | 
| 
 #ifconfig eth0 up 
 | 
| 
 #route add default gw 192.168.15.254 
 | 
| 
 #ssh user@fbsd1.unix.nt
 
 
The authenticity of host 'fbsd1.unix.nt (192.168.15.21)' can't be established. DSA key fingerprint is 93:b0:4b:c7:17:ef:94:32:32:00:84:56:96:77:0c:65. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'fbsd1.unix.nt,192.168.15.21' (DSA) to the list of known hosts. Connection closed by 192.168.15.21  | 
| 
 #less ~/.ssh/known_hosts 
 | 
| 
 #ssh user@fbsd1.unix.nt 
Password:
Last login: Wed Sep 20 09:49:03 2006
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.0-RELEASE (MYKERN) #0: Tue Sep 19 10:31:16 EEST 2006
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.
...
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
l3-agent is already running: pid=5512; pidfile=/home/user/.lilalo/l3-agent.pid
 | 
| 
 #ssh user@fbsd1.unix.nt hostname 
Password: fbsd1.unix.nt  | 
| 
 $hostname 
fbsd1.unix.nt  | 
| 
 $exit 
exit Connection to fbsd1.unix.nt closed.  | 
| 
 #ssh user@fbsd1.unix.nt date 
Password: ÓÒÅÄÁ, 20 ÓÅÎÔÑÂÒÑ 2006 Ç. 10:18:01 (EEST)  | 
| 
 #ssh user@fbsd1.unix.nt LANG=C date 
Password: Password: Wed Sep 20 10:18:45 EEST 2006  | 
| 
 #echo $LANG 
ru_UA.UTF-8  | 
| 
 #echo privet | ssh user@fbsd1.unix.nt 'cat > /tmp/file' 
Password:  | 
| 
 #ssh user@fbsd1.unix.nt cat /tmp/file 
Password: Password: privet  | 
| 
 #tar c /etc | ssh user@fbsd1.unix.nt tar xC /tmp
 
 
tar: Removing leading `/' from member names Password: tar: Error opening archive: Failed to open '/dev/sa0': No such file or directory  | 
| 
 #tar c /etc | ssh user@fbsd1.unix.nt tar xfC - /tmp 
tar: Removing leading `/' from member names Password:  | 
| 
 #dd if=/dev/hda bs=512 count=1 | ssh root@fbsd1.unix.nt dd o
 
 
 | 
| 
 #ssh root@nikolaev 'dd if=/dev/hda | ssh root@kherson dd of= 
 | 
| 
 #ssh-keygen -t dsa 
Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: 8f:f4:8b:9b:f1:99:6e:2a:e1:d8:a3:c6:e9:8a:19:a5 root@linux2.linux.nt  | 
| 
 #ssh user@fbsd1.unix.nt 
Last login: Wed Sep 20 10:16:32 2006 from linux2.linux.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.0-RELEASE (MYKERN) #0: Tue Sep 19 10:31:16 EEST 2006
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.
o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
l3-agent is already running: pid=5512; pidfile=/home/user/.lilalo/l3-agent.pid
 | 
| 
 #ssh user@fbsd1.unix.nt hostname 
fbsd1.unix.nt  | 
| 
 #ssh user@fbsd1.unix.nt LANG=C date 
Wed Sep 20 10:40:15 EEST 2006  | 
| 
 #ssh user@fbsd1.unix.nt 'echo Privet | wall~'~
 
 
bash: wall~~: command not found  | 
| 
 #ssh user@fbsd1.unix.nt 'echo Privet | wall' 
 | 
| 
 $exit 
exit Connection to fbsd1.unix.nt closed.  | 
| 
 #ssh-keygen t dsa
 
 
Too many arguments. Usage: ssh-keygen [options] Options: -a trials Number of trials for screening DH-GEX moduli. -B Show bubblebabble digest of key file. -b bits Number of bits in the key to create. -C comment Provide new comment. -c Change comment in private and public key files. -e Convert OpenSSH to IETF SECSH key file. -F hostname Find hostname in known hosts file. ... -p Change passphrase of private key file. -q Quiet. -R hostname Remove host from known_hosts file. -r hostname Print DNS resource record. -S start Start point (hex) for generating DH-GEX moduli. -T file Screen candidates for DH-GEX moduli. -t type Specify type of key to create. -v Verbose. -W gen Generator to use for generating DH-GEX moduli. -y Read private key file and print public key.  | 
| 
 #ssh-keygen -t dsa 
Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): /root/.ssh/id_dsa already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: e1:fb:22:bf:da:b8:e2:dd:27:ea:10:66:61:46:34:9e root@linux2.linux.nt  | 
| 
 #screen -x 
 | 
| 
 #ssh-keygen -t dsa
 
 
 | 
| 
 #ssh user@192.168.15.3 
Password: Linux linux3.linux.nt 2.4.27-speakup #1 Thu Aug 19 21:46:14 CEST 2004 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. You have mail. Last login: Wed Sep 20 09:48:15 2006  | 
| 
 $exit 
exit Connection to 192.168.15.3 closed.  | 
| 
 #ssh user@192.168.15.3 
Password: Linux linux3.linux.nt 2.4.27-speakup #1 Thu Aug 19 21:46:14 CEST 2004 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. You have mail. Last login: Wed Sep 20 10:45:50 2006 from linux2.linux.nt l3-agent is already running: pid=2905; pidfile=/home/user/.lilalo/l3-agent.pid  | 
| 
 $less ~/.ssh/athorized_keys 
 | 
| 
 $exit 
exit Connection to 192.168.15.3 closed.  | 
1
| Время первой команды журнала | 16:36:16 2006- 9-19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Время последней команды журнала | 10:50:21 2006- 9-20 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Процент команд с ненулевым кодом завершения, % | 16.83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Процент синтаксически неверно набранных команд, % | 4.95 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Суммарное время работы с терминалом *, час | 1.91 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Количество командных строк в единицу времени, команда/мин | 0.88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Частота использования команд | 
  | 
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found  | 
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4  | 
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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  | 
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root)  | 
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc 
  | 
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc  | 
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
|  Интересно, кто я? | 
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user 
  | 
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1
    2
3   
    4
    Группы команд, выполненных на разных терминалах, разделяются специальной линией.
    Под этой линией в правом углу показано имя терминала, на котором выполнялись команды.
    Для того чтобы посмотреть команды только одного сенса, 
    нужно щёкнуть по этому названию.
    
    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008