/l3/users/ikravchuk/xg-ids/linux2.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#aide --check -c /etc/aide/aide.conf
![]() Database does not have attr field. Comparation may be incorrect Generating attr-field from dbspec It might be a good Idea to regenerate databases. Sorry. AIDE found differences between database and filesystem!! Start timestamp: 2007-06-20 12:25:01 Summary: Total number of files: 18 Added files: 17 Removed files: 0 ... added: /tmp/ssh-TWpwED2840 added: /tmp/ssh-TWpwED2840/agent.2840 added: /tmp/0c8pfamp-1.phtml added: /tmp/l3-saved-3144.19989.12708 added: /tmp/1kbub5m3-1.phtml added: /tmp/.X0-lock added: /tmp/phpsyslogng-2.6.tar.gz added: /tmp/lost+found added: /tmp/index-1.php added: /tmp/index.php |
#aide --check -c /etc/aide/aide.conf
![]() Database does not have attr field. Comparation may be incorrect Generating attr-field from dbspec It might be a good Idea to regenerate databases. Sorry. AIDE found differences between database and filesystem!! Start timestamp: 2007-06-20 12:25:19 Summary: Total number of files: 18 Added files: 17 Removed files: 0 ... added: /tmp/ssh-TWpwED2840 added: /tmp/ssh-TWpwED2840/agent.2840 added: /tmp/0c8pfamp-1.phtml added: /tmp/l3-saved-3144.19989.12708 added: /tmp/1kbub5m3-1.phtml added: /tmp/.X0-lock added: /tmp/phpsyslogng-2.6.tar.gz added: /tmp/lost+found added: /tmp/index-1.php added: /tmp/index.php |
#cp /var/lib/aide/aide.db.new /var/lib/aide/aide.db
|
#aide --check -c /etc/aide/aide.conf
![]() AIDE found differences between database and filesystem!! Start timestamp: 2007-06-20 12:25:35 Summary: Total number of files: 18 Added files: 1 Removed files: 0 Changed files: 1 --------------------------------------------------- Added files: --------------------------------------------------- added: /tmp/test.fil.txt --------------------------------------------------- Changed files: --------------------------------------------------- changed: /tmp -------------------------------------------------- Detailed information about changes: --------------------------------------------------- Directory: /tmp Mtime : 2007-06-20 12:23:11 , 2007-06-20 12:24:12 Ctime : 2007-06-20 12:23:11 , 2007-06-20 12:24:12 |
#vi aide.conf
![]() |
#vi /etc/aide/aide.conf
20a21 > /bin R |
#aide --update -c /etc/aide/aide.conf
![]() AIDE found differences between database and filesystem!! Start timestamp: 2007-06-20 12:27:47 Summary: Total number of files: 102 Added files: 85 Removed files: 0 Changed files: 1 --------------------------------------------------- Added files: --------------------------------------------------- ... --------------------------------------------------- Changed files: --------------------------------------------------- changed: /tmp -------------------------------------------------- Detailed information about changes: --------------------------------------------------- Directory: /tmp Mtime : 2007-06-20 12:23:11 , 2007-06-20 12:27:40 Ctime : 2007-06-20 12:23:11 , 2007-06-20 12:27:40 |
#cp /var/lib/aide/aide.db.new /var/lib/aide/aide.db
|
#aide --check -c /etc/aide/aide.conf
AIDE, version 0.13.1 ### All files match AIDE database. Looks okay! |
#cat >> test.fil.txt2
![]() klkjkljlkjkljl jlkjkljklj |
#cat test.fil.txt
dkjjdjd; : q |
#cat test.fil.txt2
klkjkljlkjkljl jlkjkljklj |
#cd /bin
|
#cat >> test.bin
![]() test |
#aide --check -c /etc/aide/aide.conf
![]() AIDE found differences between database and filesystem!! Start timestamp: 2007-06-20 12:29:49 Summary: Total number of files: 104 Added files: 2 Removed files: 0 Changed files: 2 --------------------------------------------------- Added files: --------------------------------------------------- ... changed: /tmp -------------------------------------------------- Detailed information about changes: --------------------------------------------------- Directory: /bin Mtime : 2007-06-19 07:20:27 , 2007-06-20 12:29:37 Ctime : 2007-06-19 07:20:27 , 2007-06-20 12:29:37 Directory: /tmp Mtime : 2007-06-20 12:27:40 , 2007-06-20 12:29:02 Ctime : 2007-06-20 12:27:40 , 2007-06-20 12:29:02 |
#ssh linux1
![]() @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The RSA host key for linux1 has changed, and the key for the according IP address 192.168.15.202 is unknown. This could either mean that DNS SPOOFING is happening or the IP address for the host and its host key have changed at the same time. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is db:61:f2:d7:7b:fa:43:70:5f:13:29:7a:87:61:2a:08. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending key in /root/.ssh/known_hosts:5 RSA host key for linux1 has changed and you have requested strict checking. Host key verification failed. |
#ssh linux1 -l user
![]() @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The RSA host key for linux1 has changed, and the key for the according IP address 192.168.15.202 is unknown. This could either mean that DNS SPOOFING is happening or the IP address for the host and its host key have changed at the same time. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is db:61:f2:d7:7b:fa:43:70:5f:13:29:7a:87:61:2a:08. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending key in /root/.ssh/known_hosts:5 RSA host key for linux1 has changed and you have requested strict checking. Host key verification failed. |
#man ssh
|
#telnet linux1
![]() bash: telnet: command not found |
#linux1
![]() bash: linux1: command not found |
#connect linux1
![]() bash: connect: command not found |
#ssh linux1
![]() @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The RSA host key for linux1 has changed, and the key for the according IP address 192.168.15.202 is unknown. This could either mean that DNS SPOOFING is happening or the IP address for the host and its host key have changed at the same time. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is db:61:f2:d7:7b:fa:43:70:5f:13:29:7a:87:61:2a:08. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending key in /root/.ssh/known_hosts:5 RSA host key for linux1 has changed and you have requested strict checking. Host key verification failed. |
#ls
0_hfile_469_1.doc phpsyslogng-2.6(2).tar.gz prilozenie_1_4.doc Tablitsa_1_1.xls phpsyslogng-2.6.tar.gz |
#cd ..
|
#ls
bin dev initrd lost+found nohup.out root sys var boot etc initrd.img media opt sbin tmp vmlinuz cdrom home lib mnt proc srv usr |
#cd /etc/
|
#ls
Net fonts lvm protocols X11 fstab lvmtab rc.local acpi groff magic rc0.d adduser.conf group mail.rc rc1.d adjtime group- mailcap rc2.d aide gshadow mailcap.order rc3.d aliases gshadow- mailname rc4.d alternatives gtk-2.0 manpath.config rc5.d apache host.conf mc rc6.d apt hostname menu rcS.d ... defoma ld.so.conf.d opt syslog.conf deluser.conf ld.so.hwcappkgs pam.conf terminfo devfs ldap pam.d timezone dhcp3 locale.gen pango ucf.conf dictionaries-common localtime passwd udev dpkg logcheck passwd- updatedb.conf emacs login.defs perl vim email-addresses logrotate.conf php4 wgetrc environment logrotate.d ppp exim4 lsb-base profile |
#vi r
![]() 14c14 < nohup /usr/local/sbin/syslog_mysql.sh --- > nohup /usr/local/sbin/syslog_mysql.sh & |
#vi r
![]() |
#vi rc.local
|
#haltsys
![]() bash: haltsys: command not found |
#startx
xauth: creating new authority file /root/.serverauth.2430 X: warning; process set to priority -1 instead of requested priority 0 X Window System Version 7.1.1 Release Date: 12 May 2006 X Protocol Version 11, Revision 0, Release 7.1.1 Build Operating System: UNKNOWN Current Operating System: Linux linux2 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 Build Date: 04 April 2007 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. ... (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jun 21 06:03:23 2007 (==) Using config file: "/etc/X11/xorg.conf" (EE) AIGLX: Screen 0 is not DRI capable xkb_keycodes { include "xfree86+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compatibility { include "complete" }; xkb_symbols { include "pc(pc105)+us" }; xkb_geometry { include "pc(pc104)" }; waiting for X server to shut down FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing. |
#if
![]() if ifconfig ifdown ifup |
#if
![]() if ifconfig ifdown ifup |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:181 (181.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:300 (300.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:481 (481.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:481 (481.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
![]() eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:481 (481.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:481 (481.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:481 (481.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:662 (662.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
![]() eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:662 (662.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:662 (662.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:662 (662.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:662 (662.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:781 (781.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:781 (781.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:781 (781.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:781 (781.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:781 (781.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:781 (781.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:781 (781.0 b) TX bytes:4572 (4.4 KiB) Interrupt:169 Base address:0x2c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41856 (40.8 KiB) TX bytes:41856 (40.8 KiB) |
#ifdown
![]() ifdown: Use --help for help |
#ifdown eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 2609 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:04:75:75:46:b1 Sending on LPF/eth0/00:04:75:75:46:b1 Sending on Socket/fallback DHCPRELEASE on eth0 to 192.168.15.254 port 67 send_packet: Network is unreachable send_packet: please consult README file regarding broadcast address. |
#ifup eth0
Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:04:75:75:46:b1 Sending on LPF/eth0/00:04:75:75:46:b1 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6 DHCPOFFER from 192.168.15.254 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPACK from 192.168.15.254 bound to 192.168.15.201 -- renewal in 236 seconds. |
#ssh linux3 - l user
![]() root@linux3's password: Permission denied, please try again. root@linux3's password: Permission denied, please try again. root@linux3's password: bash: - : invalid option Usage: bash [GNU long option] [option] ... bash [GNU long option] [option] script-file ... GNU long options: --debug ... --posix --protected --rcfile --restricted --verbose --version --wordexp Shell options: -irsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCHP or -o option |
#ssh linux3
![]() root@linux3's password: Permission denied, please try again. root@linux3's password: Permission denied, please try again. root@linux3's password: |
#ssh linux3 - l user
![]() root@linux3's password: bash: - : invalid option Usage: bash [GNU long option] [option] ... bash [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help ... --posix --protected --rcfile --restricted --verbose --version --wordexp Shell options: -irsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCHP or -o option |
#ssh linux3 - l user
![]() root@linux3's password: bash: - : invalid option Usage: bash [GNU long option] [option] ... bash [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help ... --posix --protected --rcfile --restricted --verbose --version --wordexp Shell options: -irsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCHP or -o option |
#ssh linux3 - l user
![]() root@linux3's password: Permission denied, please try again. root@linux3's password: bash: - : invalid option Usage: bash [GNU long option] [option] ... bash [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings ... --posix --protected --rcfile --restricted --verbose --version --wordexp Shell options: -irsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCHP or -o option |
#ssh linux3 - l user
![]() root@linux3's password: bash: - : invalid option Usage: bash [GNU long option] [option] ... bash [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help ... --posix --protected --rcfile --restricted --verbose --version --wordexp Shell options: -irsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCHP or -o option |
#ssh linux3 - l user -p 123
![]() root@linux3's password: bash: - : invalid option Usage: bash [GNU long option] [option] ... bash [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help ... --posix --protected --rcfile --restricted --verbose --version --wordexp Shell options: -irsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCHP or -o option |
#ssh linux3 - l root
![]() root@linux3's password: Permission denied, please try again. root@linux3's password: Permission denied, please try again. root@linux3's password: |
#which aide
![]() |
#ldd 'which tcpdump'
![]() ldd: ./which tcpdump: No such file or directory |
#which
![]() |
#which apache
/usr/sbin/apache |
#apt-get install tcpdump
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: libpcap0.8 The following NEW packages will be installed: libpcap0.8 tcpdump 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 392kB of archives. After unpacking 831kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://debian.ZLO.ZLO.ZLO etch/main libpcap0.8 0.9.5-1 [89.5kB] Get:2 http://debian.ZLO.ZLO.ZLO etch/main tcpdump 3.9.5-2 [303kB] Fetched 392kB in 0s (791kB/s) Selecting previously deselected package libpcap0.8. (Reading database ... 22385 files and directories currently installed.) Unpacking libpcap0.8 (from .../libpcap0.8_0.9.5-1_i386.deb) ... Selecting previously deselected package tcpdump. Unpacking tcpdump (from .../tcpdump_3.9.5-2_i386.deb) ... Setting up libpcap0.8 (0.9.5-1) ... Setting up tcpdump (3.9.5-2) ... |
#which tcpdump
/usr/sbin/tcpdump |
# ldd 'which tcpdump'
![]() ldd: ./which tcpdump: No such file or directory |
# ldd "which tcpdump"
![]() ldd: ./which tcpdump: No such file or directory |
# ldd "which tcpdump"
![]() ldd: ./which tcpdump: No such file or directory |
# ldd which tcpdump
![]() which: ldd: ./which: No such file or directory tcpdump: ldd: ./tcpdump: No such file or directory |
# ldd 'which tcpdump'
![]() ldd: ./which tcpdump: No such file or directory |
# ldd 'which tcpdump'
![]() ldd: ./which tcpdump: No such file or directory |
#netstat
Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 192.168.15.201:54181 korrespondent.net:www ESTABLISHED tcp 0 0 192.168.15.201:54194 korrespondent.net:www ESTABLISHED tcp 0 0 192.168.15.201:56654 212.26.141.119:www ESTABLISHED tcp 0 0 192.168.15.201:39392 192.168.15.200:ssh ESTABLISHED tcp 0 0 192.168.15.201:42007 212.26.141.116:www ESTABLISHED tcp 0 0 192.168.15.201:60147 192.168.15.200:ssh ESTABLISHED tcp 0 0 192.168.15.201:33797 193.178.144.133:www ESTABLISHED tcp 0 0 192.168.15.201:41935 i.bigmir.net:www ESTABLISHED ... unix 2 [ ] STREAM CONNECTED 6847 /var/run/acpid.socket unix 3 [ ] STREAM CONNECTED 6520 /dev/log unix 3 [ ] STREAM CONNECTED 6519 unix 2 [ ] STREAM CONNECTED 6458 /var/run/acpid.socket unix 3 [ ] STREAM CONNECTED 6258 /dev/log unix 3 [ ] STREAM CONNECTED 6257 unix 3 [ ] STREAM CONNECTED 6178 /var/run/mysqld/mysqld.sock unix 3 [ ] STREAM CONNECTED 6177 unix 3 [ ] STREAM CONNECTED 5592 /dev/log unix 3 [ ] STREAM CONNECTED 5591 |
#su -user
![]() su: invalid option -- u Usage: su [options] [LOGIN] Options: -c, --command COMMAND pass COMMAND to the invoked shell -h, --help display this help message and exit -, -l, --login make the shell a login shell -m, -p, --preserve-environment do not reset environment variables, and keep the same shell -s, --shell SHELL use SHELL instead of the default in passwd |
#su -l user
l3-agent is already running: pid=2483; pidfile=/home/user/.lilalo/l3-agent.pid |
$ssh linux3
user@linux3's password: Linux linux3 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 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 indZLO.ZLO.ZLOl files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have new mail. Last login: Thu Jun 21 10:52:54 2007 from linux1.local l3-agent is already running: pid=4712; pidfile=/home/user/.lilalo/l3-agent.pid |
#arp -an
Unpacking ettercap-common (from .../ettercap-common_1%3a0.7.3-1.2_i386.deb) ... Selecting previously deselected package ettercap. Unpacking ettercap (from .../ettercap_1%3a0.7.3-1.2_i386.deb) ... Setting up libnet1 (1.1.2.1-2) ... Setting up ettercap-common (0.7.3-1.2) ... Setting up ettercap (0.7.3-1.2) ... [root@linux3:~]# [root@linux3:~]# ? (192.168.15.254) at 00:0A:01:D4:D1:39 [ether] on eth0 ? (192.168.15.200) at 00:0A:01:D4:D1:E3 [ether] on eth0 |
#netstat -l
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:shell *:* LISTEN tcp 0 0 localhost:mysql *:* LISTEN tcp 0 0 *:www *:* LISTEN tcp 0 0 localhost:smtp *:* LISTEN tcp6 0 0 *:ssh *:* LISTEN udp 0 0 *:bootpc *:* Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 7601 /tmp/ssh-VkZNxF2855/agent.2855 unix 2 [ ACC ] STREAM LISTENING 7562 /tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 5485 /dev/log unix 2 [ ACC ] STREAM LISTENING 5595 /var/run/mysqld/mysqld.sock unix 2 [ ACC ] STREAM LISTENING 5825 /var/run/acpid.socket |
#ping 141.1.1.1
![]() PING 141.1.1.1 (141.1.1.1) 56(84) bytes of data. --- 141.1.1.1 ping statistics --- 8 packets transmitted, 0 received, 100% packet loss, time 7042ms |
#arp -an
? (192.168.15.202) at 00:04:76:A1:EF:BB [ether] on eth0 ? (192.168.15.254) at 00:04:76:A1:EF:BB [ether] on eth0 ? (192.168.15.200) at 00:0A:01:D4:D1:E3 [ether] on eth0 |
#telnet 192.168.15.254 110
![]() Selecting previously deselected package ettercap-common. Unpacking ettercap-common (from .../ettercap-common_1%3a0.7.3-1.2_i386.deb) ... Selecting previously deselected package ettercap. Unpacking ettercap (from .../ettercap_1%3a0.7.3-1.2_i386.deb) ... Setting up libnet1 (1.1.2.1-2) ... Setting up ettercap-common (0.7.3-1.2) ... Setting up ettercap (0.7.3-1.2) ... [root@linux3:~]# [root@linux3:~]# bash: telnet: command not found |
#nc 192.168.15.254 110
![]() [root@linux3:~]# [root@linux3:~]# +OK USER user +OK PASS password +OK LIST +OK . |
#arp -an
Selecting previously deselected package ettercap. Unpacking ettercap (from .../ettercap_1%3a0.7.3-1.2_i386.deb) ... Setting up libnet1 (1.1.2.1-2) ... Setting up ettercap-common (0.7.3-1.2) ... Setting up ettercap (0.7.3-1.2) ... [root@linux3:~]# [root@linux3:~]# ? (192.168.15.202) at 00:04:76:A1:EF:BB [ether] on eth0 ? (192.168.15.254) at 00:04:76:A1:EF:BB [ether] on eth0 ? (192.168.15.200) at 00:0A:01:D4:D1:E3 [ether] on eth0 |
#arp -an
Selecting previously deselected package ettercap. Unpacking ettercap (from .../ettercap_1%3a0.7.3-1.2_i386.deb) ... Setting up libnet1 (1.1.2.1-2) ... Setting up ettercap-common (0.7.3-1.2) ... Setting up ettercap (0.7.3-1.2) ... [root@linux3:~]# [root@linux3:~]# ? (192.168.15.202) at 00:04:76:A1:EF:BB [ether] on eth0 ? (192.168.15.254) at 00:04:76:A1:EF:BB [ether] on eth0 ? (192.168.15.200) at 00:0A:01:D4:D1:E3 [ether] on eth0 |
#arp -an
Selecting previously deselected package ettercap. Unpacking ettercap (from .../ettercap_1%3a0.7.3-1.2_i386.deb) ... Setting up libnet1 (1.1.2.1-2) ... Setting up ettercap-common (0.7.3-1.2) ... Setting up ettercap (0.7.3-1.2) ... [root@linux3:~]# [root@linux3:~]# ? (192.168.15.202) at 00:04:76:A1:EF:BB [ether] on eth0 ? (192.168.15.254) at 00:04:76:A1:EF:BB [ether] on eth0 ? (192.168.15.200) at 00:0A:01:D4:D1:E3 [ether] on eth0 |
#arp -an
Unpacking ettercap-common (from .../ettercap-common_1%3a0.7.3-1.2_i386.deb) ... Selecting previously deselected package ettercap. Unpacking ettercap (from .../ettercap_1%3a0.7.3-1.2_i386.deb) ... Setting up libnet1 (1.1.2.1-2) ... Setting up ettercap-common (0.7.3-1.2) ... Setting up ettercap (0.7.3-1.2) ... [root@linux3:~]# [root@linux3:~]# ? (192.168.15.254) at 00:0A:01:D4:D1:39 [ether] on eth0 ? (192.168.15.200) at 00:0A:01:D4:D1:E3 [ether] on eth0 |
#clear
Unpacking libnet1 (from .../libnet1_1.1.2.1-2_i386.deb) ... Selecting previously deselected package ettercap-common. Unpacking ettercap-common (from .../ettercap-common_1%3a0.7.3-1.2_i386.deb) ... Selecting previously deselected package ettercap. Unpacking ettercap (from .../ettercap_1%3a0.7.3-1.2_i386.deb) ... Setting up libnet1 (1.1.2.1-2) ... Setting up ettercap-common (0.7.3-1.2) ... Setting up ettercap (0.7.3-1.2) ... [root@linux3:~]# [root@linux3:~]# |
#arp -an
? (192.168.15.254) at 00:0A:01:D4:D1:39 [ether] on eth0 ? (192.168.15.200) at 00:0A:01:D4:D1:E3 [ether] on eth0 |
#ssh user@linux3
user@linux3's password: Linux linux3 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 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 indZLO.ZLO.ZLOl files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have new mail. Last login: Thu Jun 21 11:07:27 2007 from 192.168.15.201 l3-agent is already running: pid=4712; pidfile=/home/user/.lilalo/l3-agent.pid |
#arp -an
[user@linux3:~]$ [user@linux3:~]$ [user@linux3:~]$ [user@linux3:~]$ [user@linux3:~]$ [user@linux3:~]$ [user@linux3:~]$ su Password: ? (192.168.15.254) at 00:0A:01:D4:D1:39 [ether] on eth0 ? (192.168.15.200) at 00:0A:01:D4:D1:E3 [ether] on eth0 |
dkjjdjd; : q
klkjkljlkjkljl jlkjkljklj
Время первой команды журнала | 19:24:38 2007- 6-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:22:58 2007- 6-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 29.70 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 7.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.07 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.58 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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