/l3/users/27-07-2009/nt-lnet/debian7.net.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 |
|
#export EDITOR
|
#vim ~/.basrc
![]() |
#vim sendmail.mc
|
#dpkg -L sendmail
/. /usr /usr/share /usr/share/doc /usr/share/doc/sendmail /usr/share/doc/sendmail/buildinfo.gz /usr/share/doc/sendmail/copyright /usr/share/doc/sendmail/NEWS.Debian.gz /usr/share/doc/sendmail/changelog.gz /usr/share/doc/sendmail/changelog.Debian.gz /usr/share/bug /usr/share/lintian /usr/share/lintian/overrides /usr/share/doc/sendmail/RELEASE_NOTES.gz |
#dpkg -L sendmail-bin
/. /etc /etc/cron.daily /etc/cron.daily/sendmail /etc/init.d /etc/init.d/sendmail /etc/mail /etc/mail/helpfile /usr /usr/bin ... /usr/sbin/praliases /usr/lib/sm.bin/hoststat /usr/lib/sm.bin/mailq /usr/lib/sm.bin/newaliases /usr/lib/sm.bin/purgestat /usr/lib/sm.bin/smtpd /usr/share/doc/sendmail-bin/RELEASE_NOTES.gz /usr/share/man/man8/hoststat.8.gz /usr/share/man/man8/purgestat.8.gz /usr/share/bug/sendmail-bin |
#find /usr -name \*debian\*
/usr/lib/dpkg/parsechangelog/debian /usr/lib/mime/packages/debianutils /usr/lib/mime/debian-view /usr/lib/mutt/debian-ldap-query /usr/lib/iceweasel/components/about_debian.js /usr/sbin/ntpdate-debian /usr/share/apt/debian-archive.gpg /usr/share/doc/debian-archive-keyring /usr/share/doc/debianutils /usr/share/gdm/themes/debian-moreblue ... /usr/share/sendmail/cf/debian /usr/share/sendmail/cf/domain/debian-mta.m4 /usr/share/sendmail/cf/domain/debian-msp.m4 /usr/share/sendmail/cf/ostype/debian.m4 /usr/share/debianutils /usr/share/pixmaps/gksuexec-debian.xpm /usr/share/pixmaps/gksu-debian.xpm /usr/share/pixmaps/debian-logo.png /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-keyring.gpg |
#vim
|
#vim /usr/share/sendmail/cf/domain/debian-mc
![]() |
#vim /usr/share/sendmail/cf/domain/debian-m
![]() |
#vim /usr/share/sendmail/cf/domain/debian-mta.m4
|
#vim sendmail.mc
|
#make
Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Updating tls ... OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#mail -s test user
![]() [root@host1:mail]# /etc/init.d/sendmail reload Reloading Mail Transport Agent configuration: sendmail. |
#telnet 127.0.0.1 25
![]() Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 host1.serg.net.nt ESMTP Sendmail 8.13.8/8.13.8/Debian-3; Mon, 10 Aug 2009 21:03:14 +0300; (No UCE/UBE) logging access from: localhost.localdomain(OK)-localhost.localdomain [127.0.0.1] HELO zlo 250 host1.serg.net.nt Hello localhost.localdomain [127.0.0.1], pleased to meet you MAIL FROM: billgates@microsoft.com 250 2.1.0 billgates@microsoft.com... Sender ok RCPT TO: root@serg.net.nt 250 2.1.5 root@serg.net.nt... Recipient ok DATA 354 Enter mail, end with "." on a line by itself Hello boys, let`s study Windows!! . 250 2.0.0 n7AI3EAO008386 Message accepted for delivery QUIT 221 2.0.0 host1.serg.net.nt closing connection Connection closed by foreign host. You have new mail in /var/mail/root |
#mutt
<<< 550 Service unavailable; Client host [193.200.68.190] blocked using +88.blacklist.zap; Mail From IP Banned To request removal from this list please - 3/3: Mail Delivery Subsys Postmaster notify: see transcript fo -- (38%) Оставлено: 3, удалено: 0. |
#vim access
|
#make
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... The following file(s) have changed: ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#grep serg sendmail.cf
![]() |
#grep \*serg\*
![]() |
#vim sendmail.cf
|
$ls
adduser.conf group- mail rc2.d adjtime gshadow mailcap rc3.d aliases gshadow- mailcap.order rc4.d alternatives gssapi_mech.conf mail.rc rc5.d apt gtk-2.0 manpath.config rc6.d bash.bashrc host.conf menu rc.local bash_completion hostname menu-methods rcS.d bash_completion.d hosts mime.types resolvconf bind hosts.allow mke2fs.conf resolv.conf calendar hosts.deny modprobe.d rmt ... dhcpd.conf lilalo passwd timezone dm locale.gen passwd- ucf.conf dpkg localtime perl udev exports logcheck ppp updatedb.conf fonts login.defs profile vim fstab logrotate.conf protocols vnc.conf gconf logrotate.d python wgetrc gdm lsb-base python2.4 X11 groff lynx.cfg rc0.d xinetd.conf group magic rc1.d xinetd.d |
$ls | grep send
![]() |
$ls | grep send
![]() |
$pwd
/etc |
$cd /usr/local/etc
|
#grep -r local-host-names
/usr/share/sendmail/cf/m4/cfhead.m4:define(`confCW_FILE', `MAIL_SETTINGS_DIR`'local-host-names') /usr/share/sendmail/cf/feature/use_cw_file.m4:# if defined, the sendmail.cf will read the /etc/mail/local-host-names file /usr/share/sendmail/cf/ostype/debian.m4:define(`confCW_FILE', `MAIL_SETTINGS_DIR`'local-host-names %[^\#]')dnl |
#make
Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Updating tls ... OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#grep \*serg\* sendmail.cf
![]() |
#vim sendmail.mc
|
#make
Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Updating tls ... OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#grep \*serg\* sendmail.cf
![]() |
#grep -r local-host-names /usr/share/sendmail/cf/
/usr/share/sendmail/cf/m4/cfhead.m4:define(`confCW_FILE', `MAIL_SETTINGS_DIR`'local-host-names') /usr/share/sendmail/cf/feature/use_cw_file.m4:# if defined, the sendmail.cf will read the /etc/mail/local-host-names file /usr/share/sendmail/cf/ostype/debian.m4:define(`confCW_FILE', `MAIL_SETTINGS_DIR`'local-host-names %[^\#]')dnl |
#vim /usr/share/sendmail/cf/ostype/debian.m4
|
#grep \*serg\* sendmail.cf
![]() [root@host1:mail]# make Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Updating tls ... OpenSSL is not installed, will not configure sendmail support for it. ... # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... m4:/etc/mail/sendmail.mc:83: cannot open `/usr/share/sendmail/cf/feature/USE_CW_FILE.m4': No such file or directory The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#vim sendmail.cf
|
#make
Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... m4:/etc/mail/sendmail.mc:83: cannot open `/usr/share/sendmail/cf/feature/USE_CW_FILE.m4': No such file or directory The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#grep \*serg\* sendmail.cf
![]() [root@host1:mail]# make | less Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/up date_auth" Updating tls ... OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/upda te_tls" Creating /etc/mail/relay-domains # Optional file... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#vim sendmail.mc
|
#grep -r local-host-names /usr/share/sendmail/cf/
/usr/share/sendmail/cf/m4/cfhead.m4:define(`confCW_FILE', `MAIL_SETTINGS_DIR`'local-host-names') /usr/share/sendmail/cf/feature/use_cw_file.m4:# if defined, the sendmail.cf will read the /etc/mail/local-host-names file /usr/share/sendmail/cf/ostype/debian.m4:define(`confCW_FILE', `MAIL_SETTINGS_DIR`'local-host-names %[^\#]')dnl |
#vim sendmail.mc
|
#grep \*serg\* sendmail.cf
![]() [root@host1:mail]# make | less ** ** You should issue `/etc/init.d/sendmail reload` ** ** Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/up date_auth" Updating tls ... OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/upda te_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. |
#vim sendmail.mc
|
#make | less
|
#grep \*serg\* sendmail.cf
![]() |
#make | less
|
#/etc/init.d/sendmail restart
Restarting Transport Agent: sendmail. |
#nc
![]() Cmd line: |
#mutt
N - 4/4: billgates@microsoft. Оставлено: 4, удалено: 0. |
#vim sendmail.mc
|
#make
[root@host1:mail]# Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Updating tls ... OpenSSL is not installed, will not configure sendmail support for it. ... Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#nc 127.0.0.1 25
220 host1.serg.net.nt ESMTP Sendmail 8.13.8/8.13.8/Debian-3; Mon, 10 Aug 2009 21:23:49 +0300; (No UCE/UBE) logging access from: localhost.localdomain(OK)-localhost.localdomain [127.0.0.1] HELO zlo 250 host1.serg.net.nt Hello localhost.localdomain [127.0.0.1], pleased to meet you MAIL FROM: test@ya.ru 250 2.1.0 test@ya.ru... Sender ok RCPT TO: root@serg.net.nt 250 2.1.5 root@serg.net.nt... Recipient ok DATA 354 Enter mail, end with "." on a line by itself test . 250 2.0.0 n7AINnUv009907 Message accepted for delivery QUIT 221 2.0.0 host1.serg.net.nt closing connection You have new mail in /var/mail/root |
#apt-get popa3d
![]() E: Неверная операция popa3d |
#apt-get install
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово НОВЫЕ пакеты, которые будут установлены: popa3d обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 63 пакетов не обновлено. Необходимо скачать 32,4kБ архивов. После распаковки объем занятого дискового пространства возрастёт на 94,2kB. Получено:1 http://10.0.35.1 etch/main popa3d 1.0.2-3 [32,4kB] Получено 32,4kB за 0s (958kB/c) Предварительная настройка пакетов ... ... Распаковывается пакет popa3d (из файла .../popa3d_1.0.2-3_i386.deb)... Настраивается пакет popa3d (1.0.2-3) ... Добавляется группа `popa3d' (GID 107) ... Готово. Предупреждение: указанный домашний каталог уже существует. Добавляется системный пользователь `popa3d' (UID 106) ... Добавляется новый пользователь `popa3d' (UID 106) в группу `popa3d' ... Домашний каталог `/var/lib/popa3d' уже существует. Не копируется из `/etc/skel'. adduser: Предупреждение: данный домашний каталог не принадлежит пользователю, который сейчас создаётся. Starting pop daemon: popa3d. |
#netstat -lnp | grep :110
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 10056/popa3d |
#apt-get install evolution
Выбор ранее не выбранного пакета libgnomeprintui2.2-common. Распаковывается пакет libgnomeprintui2.2-common (из файла .../libgnomeprintui2.2-common_2.12.1-4_all.deb)... Выбор ранее не выбранного пакета libgnomeprintui2.2-0. Распаковывается пакет libgnomeprintui2.2-0 (из файла .../libgnomeprintui2.2-0_2.12.1-4_i386.deb)... Выбор ранее не выбранного пакета libgnomeui-common. Распаковывается пакет libgnomeui-common (из файла .../libgnomeui-common_2.14.1-2_all.deb)... Выбор ранее не выбранного пакета libgnomeui-0. Распаковывается пакет libgnomeui-0 (из файла .../libgnomeui-0_2.14.1-2_i386.deb)... Выбор ранее не выбранного пакета libgail17. Распаковывается пакет libgail17 (из файла .../libgail17_1.8.11-4_i386.deb)... ... Настраивается пакет libedataserverui1.2-6 (1.6.3-5etch1) ... Настраивается пакет libegroupwise1.2-10 (1.6.3-5etch1) ... Настраивается пакет libexchange-storage1.2-1 (1.6.3-5etch1) ... Настраивается пакет libgnomeui-0 (2.14.1-2) ... Настраивается пакет libgtkhtml3.8-15 (3.12.1-2) ... Настраивается пакет libedata-book1.2-2 (1.6.3-5etch1) ... Настраивается пакет libedata-cal1.2-5 (1.6.3-5etch1) ... Настраивается пакет evolution-data-server (1.6.3-5etch1) ... Настраивается пакет gtkhtml3.8 (3.12.1-2) ... Настраивается пакет evolution (2.6.3-6etch2) ... |
#mutt
4 Aug 10 billgates@micro ( 1) 5 Aug 10 test@ya.ru ( 1) 5 Aug 10 test@ya.ru ( 1) 6 Aug 10 User ( 4) Re: test evolution 6 Aug 10 User ( 4) Re: test evolution Оставлено: 6, удалено: 0. You have mail in /var/mail/root |
#cd
|
#vim /etc/bind/db.sergey.net.nt
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#ping ftp
PING host1.serg.net.nt (192.168.16.7) 56(84) bytes of data. 64 bytes from host1.serg.net.nt (192.168.16.7): icmp_seq=1 ttl=64 time=0.017 ms 64 bytes from host1.serg.net.nt (192.168.16.7): icmp_seq=2 ttl=64 time=0.015 ms --- host1.serg.net.nt ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.015/0.016/0.017/0.001 ms |
#ping ww
![]() ping: unknown host ww |
#ping www
PING host1.serg.net.nt (192.168.16.7) 56(84) bytes of data. 64 bytes from host1.serg.net.nt (192.168.16.7): icmp_seq=1 ttl=64 time=0.013 ms 64 bytes from host1.serg.net.nt (192.168.16.7): icmp_seq=2 ttl=64 time=0.016 ms 64 bytes from host1.serg.net.nt (192.168.16.7): icmp_seq=3 ttl=64 time=0.019 ms --- host1.serg.net.nt ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.013/0.016/0.019/0.002 ms |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. ^[[AStarting domain name service...: bind. |
#ssh clint@nt.ua
Connection to nt.ua closed. |
#ping 92.249.122.111
![]() PING 92.249.122.111 (92.249.122.111) 56(84) bytes of data. --- 92.249.122.111 ping statistics --- 8 packets transmitted, 0 received, 100% packet loss, time 7027ms |
#exit
[root@host1:~]# ping 94 PING 94.249.122.111 (94.249.122.111) 56(84) bytes of data. --- 94.249.122.111 ping statistics --- 19 packets transmitted, 0 received, 100% packet loss, time 18028ms exit |
$ssh 192.168.16.1
user@192.168.16.1's password: Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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: Tue Aug 11 10:01:15 2009 from 192.168.16.8 l3-agent is already running: pid=1404; pidfile=/home/user/.lilalo/l3-agent.pid |
$screen -x
|
$nc 192.168.16.1 4444 | tar xvC /tmp
![]() etc/cron.weekly/.placeholder etc/hosts.allow etc/screenrc etc/libpaper.d/ etc/defoma/ etc/defoma/fontconfig.subst-rule etc/defoma/csetenc-xenc.data2 etc/defoma/ps-cset-enc.data etc/defoma/hints/ etc/defoma/hints/gsfonts.hints ... etc/host.conf etc/login.defs etc/protocols etc/console-cyrillic etc/rc.local etc/resolv.conf etc/manpath.config etc/profile etc/mime.types etc/bash_completion |
$du -sh /etc
2,9M /etc |
$df -h
Файловая система Разм Исп Дост Исп% смонтирована на /dev/hda1 4,0G 2,7G 1,4G 66% / tmpfs 291M 0 291M 0% /lib/init/rw udev 10M 20K 10M 1% /dev |
$ls -l /tmp/
итого 7 drwxr-xr-x 59 user user 3320 2009-08-11 10:06 etc -rw------- 1 root root 0 2009-08-10 21:26 fileojlPXO drwx------ 3 user user 72 2009-08-10 21:17 gconfd-user -rw-r--r-- 1 user user 300 2009-08-10 19:25 l3-saved-5609.25231.28922 drwx------ 2 user user 384 2009-08-11 09:57 orbit-user drwx------ 2 user user 80 2009-08-10 18:09 ssh-sAblaz1378 |
$ls -l /tmp/etc/
итого 699 -rw-r--r-- 1 user user 2803 2007-12-23 16:31 adduser.conf -rw-r--r-- 1 user user 44 2007-12-23 16:30 adjtime drwxr-xr-x 2 user user 3112 2008-03-12 11:46 alternatives drwxr-xr-x 4 user user 144 2008-03-11 11:48 apt -rw-r--r-- 1 user user 1071 2006-12-11 23:20 bash.bashrc -rw-r--r-- 1 user user 215907 2006-12-11 23:20 bash_completion drwxr-xr-x 2 user user 72 2008-03-12 10:51 bash_completion.d drwxr-xr-x 2 user user 72 2007-12-23 16:31 calendar drwxr-xr-x 2 user user 48 2007-12-23 17:00 console ... drwxr-xr-x 2 user user 72 2007-12-23 16:31 terminfo -rw-r--r-- 1 user user 12 2008-03-11 12:46 timezone -rw-r--r-- 1 user user 1260 2007-02-25 21:30 ucf.conf drwxr-xr-x 3 user user 120 2007-12-23 16:42 udev -rw-r--r-- 1 user user 805 2006-08-06 11:12 updatedb.conf drwxr-xr-x 2 user user 104 2008-03-11 17:53 vim -rw-r--r-- 1 user user 4622 2006-12-30 13:50 vnc.conf -rw-r--r-- 1 user user 4221 2006-06-28 19:41 wgetrc drwxr-xr-x 9 user user 416 2007-12-23 16:44 X11 drwxr-xr-x 2 user user 320 2009-08-10 12:31 xpdf |
$ssh 192.168.16.7
user@192.168.16.7's password: Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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: Tue Aug 11 15:59:53 2009 from host1.serg.net.nt l3-agent is already running: pid=1793; pidfile=/home/user/.lilalo/l3-agent.pid |
$sudo vim /etc/hosts.deny
|
$sudo vim /etc/hosts.allow
|
$screen -x
|
$ping 192.168.16.1
64 bytes from 192.168.16.1: icmp_seq=606 ttl=64 time=0.068 ms 64 bytes from 192.168.16.1: icmp_seq=607 ttl=64 time=0.106 ms 64 bytes from 192.168.16.1: icmp_seq=608 ttl=64 time=0.100 ms 64 bytes from 192.168.16.1: icmp_seq=609 ttl=64 time=0.063 ms 64 bytes from 192.168.16.1: icmp_seq=610 ttl=64 time=0.074 ms 64 bytes from 192.168.16.1: icmp_seq=611 ttl=64 time=0.107 ms 64 bytes from 192.168.16.1: icmp_seq=612 ttl=64 time=0.116 ms 64 bytes from 192.168.16.1: icmp_seq=613 ttl=64 time=0.105 ms 64 bytes from 192.168.16.1: icmp_seq=614 ttl=64 time=0.096 ms 64 bytes from 192.168.16.1: icmp_seq=615 ttl=64 time=0.117 ms ... 64 bytes from 192.168.16.1: icmp_seq=744 ttl=64 time=0.108 ms 64 bytes from 192.168.16.1: icmp_seq=745 ttl=64 time=0.093 ms 64 bytes from 192.168.16.1: icmp_seq=746 ttl=64 time=0.102 ms 64 bytes from 192.168.16.1: icmp_seq=747 ttl=64 time=0.076 ms 64 bytes from 192.168.16.1: icmp_seq=748 ttl=64 time=0.092 ms 64 bytes from 192.168.16.1: icmp_seq=749 ttl=64 time=0.090 ms 64 bytes from 192.168.16.1: icmp_seq=750 ttl=64 time=0.081 ms --- 192.168.16.1 ping statistics --- 750 packets transmitted, 716 received, +34 errors, 4% packet loss, time 749375ms rtt min/avg/max/mdev = 0.050/0.104/0.182/0.022 ms |
$ssh 192.168.16.2 -p 5555
![]() [user@host1:~]$ ssh 192.168.16.2 -p 5555 |
$ssh 192.168.16.2 -p 5555
![]() [user@host1:~]$ ssh 192.168.16.2 -p 5555 ^F |
$sudo iptables -t nat -L
Password: Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
$sudo iptables
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 |
$sudo route -n
[user@host1:~]$ ssh 192.168.16.2 -p 5555 Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.16.254 0.0.0.0 UG 0 0 0 eth0 |
$ssh 192.168.16.2 -p 5555
![]() |
$sudo route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.16.254 0.0.0.0 UG 0 0 0 eth0 |
$sudo route add -host 192.168.16.7 gw 192.168.16.2
|
$sudo rout
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.7 192.168.16.2 255.255.255.255 UGH 0 0 0 eth0 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.16.254 0.0.0.0 UG 0 0 0 eth0 |
$sudo route -f
![]() route: invalid option -- f Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables route [-v] [-FC] {add|del|flush} ... Modify routing table for AF. route {-h|--help} [<AF>] Detailed usage syntax for specified AF. route {-V|--version} Display version/author and exit. -v, --verbose be verbose -n, --numeric don't resolve names -e, --extend display other/more information -F, --fib display Forwarding Information Base (default) -C, --cache display routing cache instead of FIB <AF>=Use '-A <af>' or '--<af>'; default: inet List of possible address families (which support routing): inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25) netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP) x25 (CCITT X.25) |
$sudo route flush
![]() Flushing `inet' routing table not supported Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M] [netmask N] [mss Mss] [window W] [irtt I] [mod] [dyn] [reinstate] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject inet_route [-FC] flush NOT supported |
$sudo route del
|
$nc
![]() ^C |
Время первой команды журнала | 19:55:19 2009- 8-10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:53:29 2009- 8-11 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 27.72 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.80 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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