/l3/users/03-04-2012/NT-BSDnet/freebsd1.local/root :1 :2 :3 :4 :5 :6 |
|
#cd ..
|
#cd ..
|
#ls
![]() README build-req openvpn build-ca build-req-pass pkitool build-dh clean-all revoke-full build-inter inherit-inter sign-req build-key keys vars build-key-pass list-crl whichopensslcnf build-key-pkcs12 openssl-0.9.6.cnf build-key-server openssl.cnf |
#ls
README build-req openvpn build-ca build-req-pass pkitool build-dh clean-all revoke-full build-inter inherit-inter sign-req build-key keys vars build-key-pass list-crl whichopensslcnf build-key-pkcs12 openssl-0.9.6.cnf build-key-server openssl.cnf |
#. ./build-key-pkcs12 artem_net_net
![]() pkitool: Need a readable ca.crt and ca.key in /usr/local/share/doc/openvpn/easy-rsa/2.0/keys/core Try pkitool --initca to build a root certificate/key. |
#. ./build-key-pkcs12 artem_net_net
![]() pkitool: Need a readable ca.crt and ca.key in /usr/local/share/doc/openvpn/easy-rsa/2.0/keys/core Try pkitool --initca to build a root certificate/key. |
#. build-ca
![]() Generating a 2048 bit RSA private key ......+++ ..........+++ writing new private key to 'ca.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [UA]: State or Province Name (full name) [UA]: Locality Name (eg, city) [Kiev]: Organization Name (eg, company) [CREOLAB]: Organizational Unit Name (eg, section) []:creolab Common Name (eg, your name or your server's hostname) [CREOLAB CA]:creolab Email Address [v.yaroshenko@creolab.edu]: |
#. build-ca
Generating a 2048 bit RSA private key ......+++ ..........+++ writing new private key to 'ca.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [UA]: State or Province Name (full name) [UA]: Locality Name (eg, city) [Kiev]: Organization Name (eg, company) [CREOLAB]: Organizational Unit Name (eg, section) []:creolab Common Name (eg, your name or your server's hostname) [CREOLAB CA]:creolab Email Address [v.yaroshenko@creolab.edu]: |
#. ./build-key-pkcs12 artem_net_net
![]() Generating a 2048 bit RSA private key ....+++ ........+++ writing new private key to 'artem_net_net.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, ... organizationalUnitName:PRINTABLE:'creolab' commonName :T61STRING:'artem_net_net' emailAddress :IA5STRING:'v.yaroshenko@creolab.edu' Certificate is to be certified until Apr 2 12:41:48 2022 GMT (3650 days) Sign the certificate? [y/n]:y 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated Enter Export Password: Verifying - Enter Export Password: |
#. ./build-key-pkcs12 artem_net_net
Generating a 2048 bit RSA private key ....+++ ........+++ writing new private key to 'artem_net_net.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, ... organizationalUnitName:PRINTABLE:'creolab' commonName :T61STRING:'artem_net_net' emailAddress :IA5STRING:'v.yaroshenko@creolab.edu' Certificate is to be certified until Apr 2 12:41:48 2022 GMT (3650 days) Sign the certificate? [y/n]:y 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated Enter Export Password: Verifying - Enter Export Password: |
#. ./build-key-pkcs12 gav_ne_nt
![]() Generating a 2048 bit RSA private key ..................+++ ...................................+++ writing new private key to 'gav_ne_nt.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, ... organizationalUnitName:PRINTABLE:'creolab' commonName :T61STRING:'gav_ne_nt' emailAddress :IA5STRING:'v.yaroshenko@creolab.edu' Certificate is to be certified until Apr 2 12:43:14 2022 GMT (3650 days) Sign the certificate? [y/n]:y 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated Enter Export Password: Verifying - Enter Export Password: |
#. ./build-key-pkcs12 gav_ne_nt
Generating a 2048 bit RSA private key ..................+++ ...................................+++ writing new private key to 'gav_ne_nt.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, ... organizationalUnitName:PRINTABLE:'creolab' commonName :T61STRING:'gav_ne_nt' emailAddress :IA5STRING:'v.yaroshenko@creolab.edu' Certificate is to be certified until Apr 2 12:43:14 2022 GMT (3650 days) Sign the certificate? [y/n]:y 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated Enter Export Password: Verifying - Enter Export Password: |
#ee gav.net.nt
![]() --- /dev/null 2012-04-04 15:45:57.000000000 +0300 +++ gav.net.nt 2012-04-04 15:46:01.000000000 +0300 @@ -0,0 +1,2 @@ +ifconfig-push 10.10.100.2 10.10.100.1 +iroute 192.168.1.0 255.255.255.0 |
#ee artem.net.net
![]() --- /dev/null 2012-04-04 15:46:29.000000000 +0300 +++ artem.net.net 2012-04-04 15:46:31.000000000 +0300 @@ -0,0 +1,2 @@ +ifconfig-push 10.10.100.6 10.10.100.5 +iroute 192.168.2.0 255.255.255.0 |
#ifconfig tun0
![]() tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500 options=80000<LINKSTATE> inet 10.10.100.1 --> 10.10.100.2 netmask 0xffffffff Opened by PID 59874 |
#ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500 options=80000<LINKSTATE> inet 10.10.100.1 --> 10.10.100.2 netmask 0xffffffff Opened by PID 59874 |
#cd ccd/
|
#cd ccd/
|
#ifconfig
![]() em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC> ether 00:0f:fe:7e:b9:39 inet 192.168.13.62 netmask 0xffffff00 broadcast 192.168.13.255 media: Ethernet autoselect (1000baseT <full-duplex>) status: active plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500 ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=3<RXCSUM,TXCSUM> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 nd6 options=3<PERFORMNUD,ACCEPT_RTADV> pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33200 tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500 options=80000<LINKSTATE> inet 10.10.100.1 --> 10.10.100.2 netmask 0xffffffff Opened by PID 59874 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC> ether 00:0f:fe:7e:b9:39 inet 192.168.13.62 netmask 0xffffff00 broadcast 192.168.13.255 media: Ethernet autoselect (1000baseT <full-duplex>) status: active plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500 ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=3<RXCSUM,TXCSUM> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 nd6 options=3<PERFORMNUD,ACCEPT_RTADV> pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33200 tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500 options=80000<LINKSTATE> inet 10.10.100.1 --> 10.10.100.2 netmask 0xffffffff Opened by PID 59874 |
#cd /usr/local/share/d
![]() dasher/ devhelp/ docky/ dbus-1/ dict/ doom/ deskbar-applet/ doc/ desktop-directories/ dockmanager/ |
#cd /usr/local/share/d
![]() dasher/ devhelp/ docky/ dbus-1/ dict/ doom/ deskbar-applet/ doc/ desktop-directories/ dockmanager/ |
#cd /usr/local/share/doc/openvpn/easy-rsa/
![]() |
#cd /usr/local/share/d
![]() dasher/ devhelp/ docky/ dbus-1/ dict/ doom/ deskbar-applet/ doc/ desktop-directories/ dockmanager/ |
#cd /usr/local/share/d
![]() dasher/ devhelp/ docky/ dbus-1/ dict/ doom/ deskbar-applet/ doc/ desktop-directories/ dockmanager/ |
#cd /usr/local/share/doc/openvpn/easy-rsa/
|
#ls
![]() README build-req openvpn build-ca build-req-pass pkitool build-dh clean-all revoke-full build-inter inherit-inter sign-req build-key keys vars build-key-pass list-crl whichopensslcnf build-key-pkcs12 openssl-0.9.6.cnf build-key-server openssl.cnf |
#ls
README build-req openvpn build-ca build-req-pass pkitool build-dh clean-all revoke-full build-inter inherit-inter sign-req build-key keys vars build-key-pass list-crl whichopensslcnf build-key-pkcs12 openssl-0.9.6.cnf build-key-server openssl.cnf |
#. ./vars
![]() NOTE: If you run ./clean-all, I will be doing a rm -rf on /usr/local/share/doc/openvpn/easy-rsa/2.0/keys/core |
#. ./vars
NOTE: If you run ./clean-all, I will be doing a rm -rf on /usr/local/share/doc/openvpn/easy-rsa/2.0/keys/core |
#./build-key-pkcs12 vilen
![]() bash: ./build-key-pkcs12: /bin/bash: bad interpreter: No such file or directory |
#./build-key-pkcs12 vilen
![]() bash: ./build-key-pkcs12: /bin/bash: bad interpreter: No such file or directory |
#. build-key-pkcs12 vilen
![]() Generating a 2048 bit RSA private key .........+++ ......+++ writing new private key to 'vilen.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, ... organizationalUnitName:PRINTABLE:'vilen' commonName :PRINTABLE:'vilen' emailAddress :IA5STRING:'v.yaroshenko@creolab.edu' Certificate is to be certified until Apr 2 13:22:07 2022 GMT (3650 days) Sign the certificate? [y/n]:y 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated Enter Export Password: Verifying - Enter Export Password: |
#. build-key-pkcs12 vilen
Generating a 2048 bit RSA private key .........+++ ......+++ writing new private key to 'vilen.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, ... organizationalUnitName:PRINTABLE:'vilen' commonName :PRINTABLE:'vilen' emailAddress :IA5STRING:'v.yaroshenko@creolab.edu' Certificate is to be certified until Apr 2 13:22:07 2022 GMT (3650 days) Sign the certificate? [y/n]:y 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated Enter Export Password: Verifying - Enter Export Password: |
#ee /usr/local/etc/openvpn/ccd/vilen
![]() --- /dev/null 2012-04-04 16:26:33.000000000 +0300 +++ /usr/local/etc/openvpn/ccd/vilen 2012-04-04 16:26:34.000000000 +0300 @@ -0,0 +1,2 @@ +ifconfig-push 10.10.100.10 10.10.100.9 +iroute 192.168.3.0 255.255.255.0 |
#ps axw | grep openvpn
![]() 59881 ?? Ss 0:00.01 /usr/local/sbin/openvpn --cd /usr/local/etc/openvpn --daemon openvpn --config /usr/local/etc/openvpn/serv 60227 1 S+ 0:00.00 grep openvpn |
#ps axw | grep openvpn
59881 ?? Ss 0:00.01 /usr/local/sbin/openvpn --cd /usr/local/etc/openvpn --daemon openvpn --config /usr/local/etc/openvpn/serv 60227 1 S+ 0:00.00 grep openvpn |
#gajim
![]() You must not launch gajim as root, it is INSECURE |
#ps
PID TT STAT TIME COMMAND 1101 v0- I 0:00.02 /usr/local/sbin/gdm-binary 1246 v0 Is+ 0:00.02 login [pam] (login) 1405 v0 I+ 0:00.01 script -t 0 -q /root/.lilalo//8201149931291026077-133 1247 v1 Is+ 0:00.00 /usr/libexec/getty Pc ttyv1 1248 v2 Is+ 0:00.00 /usr/libexec/getty Pc ttyv2 1249 v3 Is+ 0:00.00 /usr/libexec/getty Pc ttyv3 1250 v4 Is+ 0:00.00 /usr/libexec/getty Pc ttyv4 1251 v5 Is+ 0:00.00 /usr/libexec/getty Pc ttyv5 1252 v6 Is+ 0:00.00 /usr/libexec/getty Pc ttyv6 1253 v7 Is+ 0:00.00 /usr/libexec/getty Pc ttyv7 1443 0 Is+ 0:00.01 bash 57535 1 Is+ 0:00.21 bash 27025 3 Is+ 0:00.28 script -t 0 -q /root/.lilalo//30531249283150117439-13 27061 4 Is 0:00.12 bash 57497 4 I 0:00.00 sh 57499 4 I+ 0:00.13 script -t 0 -q /root/.lilalo//67657403182988528-13335 60241 2 Ss+ 0:00.01 script -t 0 -q /root/.lilalo//175929876276756804-1333 60277 5 Ss 0:00.01 bash 60310 5 R+ 0:00.00 ps |
#ps -aux | grep gajim
root 60319 0.0 0.0 3500 1040 5 S+ 4:40PM 0:00.00 grep gajim |
#cat /var/log/openvpn/openvpn.log
Wed Apr 4 15:47:07 2012 OpenVPN 2.0.9 i386-portbld-freebsd8.2 [SSL] [LZO] built on Apr 4 2012 Wed Apr 4 15:47:07 2012 MANAGEMENT: TCP Socket listening on 127.0.0.1:8329 Wed Apr 4 15:47:07 2012 Diffie-Hellman initialized with 2048 bit key Wed Apr 4 15:47:07 2012 Control Channel Authentication: using 'keys/ta.key' as a OpenVPN static key file Wed Apr 4 15:47:07 2012 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication Wed Apr 4 15:47:07 2012 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication Wed Apr 4 15:47:07 2012 TLS-Auth MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ] Wed Apr 4 15:47:07 2012 gw 192.168.13.253 Wed Apr 4 15:47:07 2012 TUN/TAP device /dev/tun0 opened Wed Apr 4 15:47:07 2012 /sbin/ifconfig tun0 10.10.100.1 10.10.100.2 mtu 1500 netmask 255.255.255.255 up ... Wed Apr 4 15:47:07 2012 /sbin/route add -net 10.10.100.0 10.10.100.2 255.255.255.0 add net 10.10.100.0: gateway 10.10.100.2 Wed Apr 4 15:47:07 2012 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ] Wed Apr 4 15:47:07 2012 GID set to nobody Wed Apr 4 15:47:07 2012 UID set to nobody Wed Apr 4 15:47:07 2012 UDPv4 link local (bound): [undef]:1194 Wed Apr 4 15:47:07 2012 UDPv4 link remote: [undef] Wed Apr 4 15:47:07 2012 MULTI: multi_init called, r=256 v=256 Wed Apr 4 15:47:07 2012 IFCONFIG POOL: base=10.10.100.4 size=62 Wed Apr 4 15:47:07 2012 Initialization Sequence Completed |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC> ether 00:0f:fe:7e:b9:39 inet 192.168.13.62 netmask 0xffffff00 broadcast 192.168.13.255 media: Ethernet autoselect (1000baseT <full-duplex>) status: active plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500 ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=3<RXCSUM,TXCSUM> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 nd6 options=3<PERFORMNUD,ACCEPT_RTADV> pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33200 tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500 options=80000<LINKSTATE> inet 10.10.100.1 --> 10.10.100.2 netmask 0xffffffff Opened by PID 59874 |
Wed Apr 4 15:47:07 2012 OpenVPN 2.0.9 i386-portbld-freebsd8.2 [SSL] [LZO] built on Apr 4 2012 Wed Apr 4 15:47:07 2012 MANAGEMENT: TCP Socket listening on 127.0.0.1:8329 Wed Apr 4 15:47:07 2012 Diffie-Hellman initialized with 2048 bit key Wed Apr 4 15:47:07 2012 Control Channel Authentication: using 'keys/ta.key' as a OpenVPN static key file Wed Apr 4 15:47:07 2012 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication Wed Apr 4 15:47:07 2012 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication Wed Apr 4 15:47:07 2012 TLS-Auth MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ] Wed Apr 4 15:47:07 2012 gw 192.168.13.253 Wed Apr 4 15:47:07 2012 TUN/TAP device /dev/tun0 opened Wed Apr 4 15:47:07 2012 /sbin/ifconfig tun0 10.10.100.1 10.10.100.2 mtu 1500 netmask 255.255.255.255 up Wed Apr 4 15:47:07 2012 /sbin/route add -net 10.10.100.0 10.10.100.2 255.255.255.252 add net 10.10.100.0: gateway 10.10.100.2 Wed Apr 4 15:47:07 2012 /sbin/route add -net 192.168.1.0 10.10.100.2 255.255.255.0 add net 192.168.1.0: gateway 10.10.100.2 Wed Apr 4 15:47:07 2012 /sbin/route add -net 192.168.2.0 10.10.100.2 255.255.255.0 add net 192.168.2.0: gateway 10.10.100.2 Wed Apr 4 15:47:07 2012 /sbin/route add -net 192.168.3.0 10.10.100.2 255.255.255.0 add net 192.168.3.0: gateway 10.10.100.2 Wed Apr 4 15:47:07 2012 /sbin/route add -net 10.10.100.0 10.10.100.2 255.255.255.0 add net 10.10.100.0: gateway 10.10.100.2 Wed Apr 4 15:47:07 2012 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ] Wed Apr 4 15:47:07 2012 GID set to nobody Wed Apr 4 15:47:07 2012 UID set to nobody Wed Apr 4 15:47:07 2012 UDPv4 link local (bound): [undef]:1194 Wed Apr 4 15:47:07 2012 UDPv4 link remote: [undef] Wed Apr 4 15:47:07 2012 MULTI: multi_init called, r=256 v=256 Wed Apr 4 15:47:07 2012 IFCONFIG POOL: base=10.10.100.4 size=62 Wed Apr 4 15:47:07 2012 Initialization Sequence Completed
Время первой команды журнала | 14:34:09 2012- 4- 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:41:01 2012- 4- 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.87 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.11 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.51 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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