/l3/users/12-03-2007/nt-lnet/linux1.net.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#ip addr help
Usage: ip addr {add|del} IFADDR dev STRING ip addr {show|flush} [ dev STRING ] [ scope SCOPE-ID ] [ to PREFIX ] [ FLAG-LIST ] [ label PATTERN ] IFADDR := PREFIX | ADDR peer PREFIX [ broadcast ADDR ] [ anycast ADDR ] [ label STRING ] [ scope SCOPE-ID ] SCOPE-ID := [ host | link | global | NUMBER ] FLAG-LIST := [ FLAG-LIST ] FLAG FLAG := [ permanent | dynamic | secondary | primary | tentative | deprecated ] |
#ip addr
1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:01:02:b4:61:14 brd ff:ff:ff:ff:ff:ff inet 192.168.16.1/24 brd 192.168.16.255 scope global eth0 inet6 fe80::201:2ff:feb4:6114/64 scope link valid_lft forever preferred_lft forever 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:01:02:b4:61:09 brd ff:ff:ff:ff:ff:ff 4: sit0: <NOARP> mtu 1480 qdisc noop link/sit 0.0.0.0 brd 0.0.0.0 7: usb0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether a6:af:27:00:a2:0f brd ff:ff:ff:ff:ff:ff |
#mc
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:02:B4:61:14 inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::201:2ff:feb4:6114/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:205794 errors:1 dropped:0 overruns:0 frame:2 TX packets:223731 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:53464298 (50.9 MiB) TX bytes:37428005 (35.6 MiB) Interrupt:169 eth1 Link encap:Ethernet HWaddr 00:01:02:B4:61:09 ... RX packets:5518 errors:0 dropped:0 overruns:0 frame:0 TX packets:5518 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:318487 (311.0 KiB) TX bytes:318487 (311.0 KiB) usb0 Link encap:Ethernet HWaddr A6:AF:27:00:A2:0F UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:9 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:1300 (1.2 KiB) |
#ifconfig usb0 10.1.0.1 netmask 255.255.255.0
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:02:B4:61:14 inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::201:2ff:feb4:6114/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:205801 errors:1 dropped:0 overruns:0 frame:2 TX packets:223738 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:53465350 (50.9 MiB) TX bytes:37430683 (35.6 MiB) Interrupt:169 eth1 Link encap:Ethernet HWaddr 00:01:02:B4:61:09 ... RX packets:5532 errors:0 dropped:0 overruns:0 frame:0 TX packets:5532 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:319637 (312.1 KiB) TX bytes:319637 (312.1 KiB) usb0 Link encap:Ethernet HWaddr A6:AF:27:00:A2:0F UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:11 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:1408 (1.3 KiB) |
#tail /var/log/messages
Mar 12 18:37:02 linux1 kernel: usb0: unregister 'plusb' usb-0000:00:1d.0-2, Prolific PL-2301/PL-2302 Mar 12 18:37:37 linux1 kernel: usb 1-1: new full speed USB device using uhci_hcd and address 3 Mar 12 18:37:38 linux1 kernel: usb 1-1: configuration #1 chosen from 1 choice Mar 12 18:37:38 linux1 kernel: usb0: register 'plusb' at usb-0000:00:1d.0-1, Prolific PL-2301/PL-2302, a6:af:27:00:a2:0f Mar 12 18:45:39 linux1 kernel: usb 1-1: USB disconnect, address 3 Mar 12 18:45:39 linux1 kernel: usb0: unregister 'plusb' usb-0000:00:1d.0-1, Prolific PL-2301/PL-2302 Mar 12 18:45:45 linux1 kernel: eth0: setting full-duplex. Mar 12 18:46:38 linux1 kernel: usb 1-2: new full speed USB device using uhci_hcd and address 4 Mar 12 18:46:39 linux1 kernel: usb 1-2: configuration #1 chosen from 1 choice Mar 12 18:46:39 linux1 kernel: usb0: register 'plusb' at usb-0000:00:1d.0-2, Prolific PL-2301/PL-2302, a6:af:27:00:a2:0f |
#tailf
bash: tailf: command not found |
#tail -f /var/log/messages
Mar 12 18:37:02 linux1 kernel: usb0: unregister 'plusb' usb-0000:00:1d.0-2, Prolific PL-2301/PL-2302 Mar 12 18:37:37 linux1 kernel: usb 1-1: new full speed USB device using uhci_hcd and address 3 Mar 12 18:37:38 linux1 kernel: usb 1-1: configuration #1 chosen from 1 choice Mar 12 18:37:38 linux1 kernel: usb0: register 'plusb' at usb-0000:00:1d.0-1, Prolific PL-2301/PL-2302, a6:af:27:00:a2:0f Mar 12 18:45:39 linux1 kernel: usb 1-1: USB disconnect, address 3 Mar 12 18:45:39 linux1 kernel: usb0: unregister 'plusb' usb-0000:00:1d.0-1, Prolific PL-2301/PL-2302 Mar 12 18:45:45 linux1 kernel: eth0: setting full-duplex. Mar 12 18:46:38 linux1 kernel: usb 1-2: new full speed USB device using uhci_hcd and address 4 Mar 12 18:46:39 linux1 kernel: usb 1-2: configuration #1 chosen from 1 choice Mar 12 18:46:39 linux1 kernel: usb0: register 'plusb' at usb-0000:00:1d.0-2, Prolific PL-2301/PL-2302, a6:af:27:00:a2:0f |
#cat /etc/init.d/d
Linux version 2.6.18-4-686 (Debian 2.6.18.dfsg.1-11) (waldi@debian.org) (gcc version 4.1.2 20061115 (pre Normal zone: 225280 pages, LIFO batch:31 release) (Debian 4.1.1-21)) #1 SMP Wed Feb 21 16:06:54 UTC 2007 HighMem zone: 30704 pages, LIFO batch:7 BIOS-provided physical RAM map: DMI 2.3 present. BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) ACPI: RSDP (v000 IntelR ) @ 0x000f6440 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) ACPI: RSDT (v001 IntelR MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f3000 ... BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved) Processor #0 15:1 APIC version 20 119MB HIGHMEM available. ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) 896MB LOWMEM available. IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23 found SMP MP-table at 000f4ae0 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) dbus dictd discover ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) |
#cat /etc/
Linux version 2.6.18-4-686 (Debian 2.6.18.dfsg.1-11) (waldi@debian.org) (gcc version 4.1.2 20061115 (pre Normal zone: 225280 pages, LIFO batch:31 release) (Debian 4.1.1-21)) #1 SMP Wed Feb 21 16:06:54 UTC 2007 HighMem zone: 30704 pages, LIFO batch:7 BIOS-provided physical RAM map: DMI 2.3 present. BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) ACPI: RSDP (v000 IntelR ) @ 0x000f6440 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) ACPI: RSDT (v001 IntelR MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f3000 ... BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved) Processor #0 15:1 APIC version 20 119MB HIGHMEM available. ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) 896MB LOWMEM available. IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23 found SMP MP-table at 000f4ae0 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) Display all 203 possibilities? (y or n) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) |
#cat /etc/x
xdg/ xml/ |
#cat /etc/in
Linux version 2.6.18-4-686 (Debian 2.6.18.dfsg.1-11) (waldi@debian.org) (gcc version 4.1.2 20061115 (pre Normal zone: 225280 pages, LIFO batch:31 release) (Debian 4.1.1-21)) #1 SMP Wed Feb 21 16:06:54 UTC 2007 HighMem zone: 30704 pages, LIFO batch:7 BIOS-provided physical RAM map: DMI 2.3 present. BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) ACPI: RSDP (v000 IntelR ) @ 0x000f6440 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) ACPI: RSDT (v001 IntelR MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f3000 ... BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved) Processor #0 15:1 APIC version 20 119MB HIGHMEM available. ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) 896MB LOWMEM available. IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23 found SMP MP-table at 000f4ae0 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) inetd.conf init.d/ initramfs-tools/ inittab inputrc ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) |
#vim /etc/inetd.conf
|
#ip route
Normal zone: 225280 pages, LIFO batch:31 release) (Debian 4.1.1-21)) #1 SMP Wed Feb 21 16:06:54 UTC 2007 HighMem zone: 30704 pages, LIFO batch:7 BIOS-provided physical RAM map: DMI 2.3 present. BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) ACPI: RSDP (v000 IntelR ) @ 0x000f6440 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) ACPI: RSDT (v001 IntelR MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f3000 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) ... Processor #0 15:1 APIC version 20 119MB HIGHMEM available. ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) 896MB LOWMEM available. IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23 found SMP MP-table at 000f4ae0 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) 192.168.16.0/24 dev eth0 proto kernel scope link src 192.168.16.1 ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) default via 192.168.16.15 dev eth0 |
#ping 194.44.1.78
ACPI: RSDP (v000 IntelR ) @ 0x000f6440 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) ACPI: RSDT (v001 IntelR MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f3000 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) ACPI: FADT (v001 IntelR MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f3040 BIOS-e820: 0000000000100000 - 000000003f7f0000 (usable) ACPI: BOOT (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f6f40 BIOS-e820: 000000003f7f0000 - 000000003f7f3000 (ACPI NVS) ACPI: MADT (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f6f80 BIOS-e820: 000000003f7f3000 - 000000003f800000 (ACPI data) ... 119MB HIGHMEM available. ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) 896MB LOWMEM available. IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23 found SMP MP-table at 000f4ae0 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) PING 194.44.1.78 (194.44.1.78) 56(84) bytes of data. ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) --- 194.44.1.78 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1001ms |
#ping 194.44.11
PING 194.44.11.78 (194.44.11.78) 56(84) bytes of data. 64 bytes from 194.44.11.78: icmp_seq=1 ttl=54 time=43.5 ms 64 bytes from 194.44.11.78: icmp_seq=2 ttl=54 time=29.5 ms --- 194.44.11.78 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1005ms rtt min/avg/max/mdev = 29.586/36.583/43.580/6.997 ms |
#ifconfig eth1
ACPI: BOOT (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f6f40 BIOS-e820: 000000003f7f0000 - 000000003f7f3000 (ACPI NVS) ACPI: MADT (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f6f80 BIOS-e820: 000000003f7f3000 - 000000003f800000 (ACPI data) ACPI: DSDT (v001 INTELR AWRDACPI 0x00001000 MSFT 0x0100000c) @ 0x00000000 BIOS-e820: 000000003f800000 - 0000000040000000 (reserved) ACPI: PM-Timer IO Port: 0x4008 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved) ACPI: Local APIC address 0xfee00000 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved) ... found SMP MP-table at 000f4ae0 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) eth1 Link encap:Ethernet HWaddr 00:01:02:B4:61:09 ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:1675 errors:0 dropped:0 overruns:0 frame:0 TX packets:1340 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:566491 (553.2 KiB) TX bytes:726379 (709.3 KiB) Interrupt:201 Base address:0x2000 |
#poweroff
Linux version 2.6.18-4-686 (Debian 2.6.18.dfsg.1-11) (waldi@debian.org) (gcc version 4.1.2 20061115 (pre Normal zone: 225280 pages, LIFO batch:31 release) (Debian 4.1.1-21)) #1 SMP Wed Feb 21 16:06:54 UTC 2007 HighMem zone: 30704 pages, LIFO batch:7 BIOS-provided physical RAM map: DMI 2.3 present. BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) ACPI: RSDP (v000 IntelR ) @ 0x000f6440 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) ACPI: RSDT (v001 IntelR MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f3000 ... ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved) Processor #0 15:1 APIC version 20 119MB HIGHMEM available. ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) 896MB LOWMEM available. IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23 found SMP MP-table at 000f4ae0 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) |
#ping nnm.ru
PING nnm.ru (89.111.180.41) 56(84) bytes of data. 64 bytes from d244.colo.hc.ru (89.111.180.41): icmp_seq=1 ttl=50 time=127 ms 64 bytes from d244.colo.hc.ru (89.111.180.41): icmp_seq=2 ttl=50 time=131 ms --- nnm.ru ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1003ms rtt min/avg/max/mdev = 127.274/129.227/131.180/1.953 ms |
$ssh romzes@izv.kharkov.ua
(expanded from: <root@izv.kharkov.ua>) ----- Transcript of session follows ----- ... while talking to ns.factor.ua.: >>> MAIL From:<> <<< 554 5.7.1 Rejected 82.207.118.247 found in dnsbl.sorbs.net 554 5.0.0 Service unavailable --l2970K8P028141.1173423620/izv.kharkov.ua Content-Type: message/delivery-status Reporting-MTA: dns; izv.kharkov.ua Received-From-MTA: DNS; localhost ... Content-Type: message/delivery-status Reporting-MTA: dns; izv.kharkov.ua Received-From-MTA: DNS; localhost Arrival-Date: Fri, 9 Mar 2007 09:00:01 +0200 Final-Recipient: RFC822; root@izv.kharkov.ua X-Actual-Recipient: RFC822; romzes@factor.ua Action: failed Status: 5.7.1 Diagnostic-Code: SMTP; 554 5.7.1 Rejected 82.207.118.247 found in dnsbl.sorbs.net Last-Attempt-Date: Fri, 9 Mar 2007 09:00:20 +0200 |
$ps aux | grep x
root 2391 0.0 0.0 1576 384 ? Ss 09:25 0:00 /sbin/klogd -x avahi 2595 0.0 0.1 2556 1364 ? Ss 09:26 0:00 avahi-daemon: running [linux1.local] 101 2653 0.0 0.0 5356 1016 ? Ss 09:26 0:00 /usr/sbin/exim4 -bd -q30m user 3071 0.0 1.1 22612 11628 ? Ss 10:06 0:00 x-session-manager user 3114 0.0 0.0 4132 740 ? Ss 10:06 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager user 3117 0.0 0.0 2568 624 ? S 10:06 0:00 /usr/bin/dbus-launch --exit-with-session x-session-manager user 3189 0.0 1.2 23892 12728 ? S 10:06 0:00 /usr/lib/gnome-applets/mixer_applet2 --oaf-activate-iid=OAFIID:GNOME_MixerApplet_Factory --oaf-ior-fd=41 user 3205 0.1 0.4 11156 4420 ? S 10:06 0:10 xterm -class UXTerm -title uxterm -u8 root 3704 0.0 0.1 4688 1036 pts/8 S+ 10:08 0:00 screen -x root 3709 0.0 0.1 4684 1032 pts/6 S+ 10:09 0:00 screen -x root 3771 0.0 0.1 4688 1036 pts/10 S+ 10:09 0:00 screen -x user 3827 0.0 0.4 11152 4380 ? S 10:09 0:02 xterm -class UXTerm -title uxterm -u8 user 3973 0.0 0.4 11464 4684 ? S 10:11 0:00 xterm -class UXTerm -title uxterm -u8 user 11502 0.0 0.4 11120 4296 ? S 11:36 0:00 xterm -class UXTerm -title uxterm -u8 root 11635 0.0 0.1 3196 1152 ? Ss 11:36 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive user 12904 0.0 0.0 4292 1000 pts/14 R+ 12:12 0:00 ps aux user 12905 0.0 0.0 3740 764 pts/14 R+ 12:12 0:00 grep x |
$rdesktop 194.44.10.145
Autoselected keyboard map ru WARNING: Remote desktop does not support colour depth 24; falling back to 16 |
$scr
screen screendump script scriptreplay scrollkeeper-config scrollkeeper-extract scrollkeeper-gen-seriesid scrollkeeper-get-cl scrollkeeper-get-content-list scrollkeeper-get-extended-content-list scrollkeeper-get-index-from-docpath scrollkeeper-get-toc-from-docpath scrollkeeper-get-toc-from-id scrollkeeper-install scrollkeeper-preinstall scrollkeeper-rebuilddb scrollkeeper-uninstall scrollkeeper-update |
$screen
|
$su -
Password: |
$sudo ntpdate clepsydra.dec.com
hardware ethernet 00:30:84:88:55:29; # <-- Fix this MAC addr fixed-address 10.2.6.10; # <-- Fix this IP addr option host-name "buh003"; } host buh005 { # <----- Пиунова Елена hardware ethernet 00:00:21:02:1E:16; # <-- Fix this MAC addr fixed-address 10.2.6.8; # <-- Fix this IP addr option host-name "buh005"; } Password: 13 Mar 11:33:55 ntpdate[11295]: adjust time server 204.123.2.5 offset 0.164317 sec |
$dig MX izv.kharkov.ua
; <<>> DiG 9.3.4 <<>> MX izv.kharkov.ua ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51925 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 10, ADDITIONAL: 1 ;; QUESTION SECTION: ;izv.kharkov.ua. IN MX ;; ANSWER SECTION: izv.kharkov.ua. 3600 IN MX 10 izv.kharkov.ua. ;; AUTHORITY SECTION: ... ua. 104059 IN NS ns.lucky.net. ua. 104059 IN NS he1.ns.net.ua. ua. 104059 IN NS ho1.ns.net.ua. ua. 104059 IN NS ns2.nic.fr. ;; ADDITIONAL SECTION: izv.kharkov.ua. 3600 IN A 82.207.118.247 ;; Query time: 198 msec ;; SERVER: 192.168.16.15#53(192.168.16.15) ;; WHEN: Tue Mar 13 12:24:54 2007 ;; MSG SIZE rcvd: 292 |
$Xnest
WARNING: Remote desktop does not support colour depth 24; falling back to 16 exit Fatal server error: Server is already active for display 0 If this server is no longer running, remove /tmp/.X0-lock and start again. |
$gdmflexiserver -n
|
$su -
Password: l3-agent is already running: pid=3415; pidfile=/root/.lilalo/l3-agent.pid |
#screen
|
$dig MX izv.kharkov.ua
; <<>> DiG 9.3.4 <<>> MX izv.kharkov.ua ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49687 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 10, ADDITIONAL: 1 ;; QUESTION SECTION: ;izv.kharkov.ua. IN MX ;; ANSWER SECTION: izv.kharkov.ua. 2252 IN MX 10 izv.kharkov.ua. ;; AUTHORITY SECTION: ... ua. 102711 IN NS ns.lucky.net. ua. 102711 IN NS he1.ns.net.ua. ua. 102711 IN NS ho1.ns.net.ua. ua. 102711 IN NS ns2.nic.fr. ;; ADDITIONAL SECTION: izv.kharkov.ua. 2252 IN A 82.207.118.247 ;; Query time: 9 msec ;; SERVER: 192.168.16.15#53(192.168.16.15) ;; WHEN: Tue Mar 13 12:47:22 2007 ;; MSG SIZE rcvd: 292 |
$Xvnc -h | grep once
Unrecognized option: -h use: X [:<display>] [option] -a # mouse acceleration (pixels) -ac disable access control restrictions -audit int set audit trail level -auth file select authorization file bc enable bug compatibility -bs disable any backing store support -c turns off key-click c # key-click volume (0-100) ... -alwaysshared always treat new clients as shared -nevershared never treat new clients as shared -dontdisconnect don't disconnect existing clients when a new non-shared connection comes in (refuse new connection instead) -viewonly let clients only to view the desktop -localhost only allow connections from localhost -interface ipaddr only bind to specified interface address -inetd Xvnc is launched by inetd -compatiblekbd set META key = ALT key as in the original VNC -version report Xvnc version on stderr |
$Xvnc :3 -once -inetd -query localhost -depth 16 -geometry 800x600
|
$ps aux | grep vnc
nobody 16136 2.2 0.6 8520 6356 ? Ss 12:53 0:02 Xvnc :2 -once -inetd -query localhost -depth 16 -geometry 800x600 user 16308 0.0 0.0 3744 764 pts/14 R+ 12:55 0:00 grep vnc |
$Xvnc :3 -once -query localhost -depth 16 -geometry 800x600
Fatal server error: Server is already active for display 3 If this server is no longer running, remove /tmp/.X3-lock and start again. |
$Xvnc :4 -once -query localhost -depth 16 -geometry 800x600
13/03/07 12:55:50 Xvnc version 3.3.tight1.2.9 13/03/07 12:55:50 Copyright (C) 1999 AT&T Laboratories Cambridge. 13/03/07 12:55:50 Copyright (C) 2000-2002 Constantin Kaplinsky. 13/03/07 12:55:50 All Rights Reserved. 13/03/07 12:55:50 See http://www.uk.research.att.com/vnc for information on VNC 13/03/07 12:55:50 See http://www.tightvnc.com for TightVNC-specific information 13/03/07 12:55:50 Desktop name 'x11' (linux1:4) 13/03/07 12:55:50 Protocol version supported 3.3 13/03/07 12:55:50 Listening for VNC connections on TCP port 5904 Font directory '/usr/share/fonts/X11/Speedo/' not found - ignoring ... 13/03/07 12:56:32 Protocol version 3.3 13/03/07 12:56:32 Pixel format for client 192.168.16.2: 13/03/07 12:56:32 32 bpp, depth 24, little endian 13/03/07 12:56:32 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0 13/03/07 12:56:32 Using tight encoding for client 192.168.16.2 13/03/07 12:56:32 Using compression level 1 for client 192.168.16.2 13/03/07 12:56:32 Using image quality level 6 for client 192.168.16.2 13/03/07 12:56:32 Enabling X-style cursor updates for client 192.168.16.2 13/03/07 12:56:32 Enabling cursor position updates for client 192.168.16.2 13/03/07 12:56:32 Enabling LastRect protocol extension for client 192.168.16.2 |
$ssh romzes@izv.kharov.ua
ceweasel/2.0.0.1 (Debian-2.0.0.1+dfsg-2) Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai n;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive ssh: izv.kharov.ua: Name or service not known to the host, and anything that comes back across the connection is sent capabilities. Netcat, or "nc" as the actual program is named, should Manual page nc(1) line 1 have been supplied long ago as another one of those cryptic but stan‐ -------------------------------------------------------------------------------- dard Unix tools. |
$ssh romzes@izv.kharkov.ua
Mar 13 04:53:11 ns dhcpd: DHCPREQUEST for 10.2.3.7 from 00:10:dc:7b:59:15 via eth1 Mar 13 04:53:11 ns dhcpd: DHCPACK on 10.2.3.7 to 00:10:dc:7b:59:15 via eth1 Mar 13 04:53:17 ns dhcpd: DHCPREQUEST for 10.2.32.17 from 00:12:3f:6e:7b:20 (HW00753) via eth1 Mar 13 04:53:17 ns dhcpd: DHCPACK on 10.2.32.17 to 00:12:3f:6e:7b:20 (HW00753) via eth1 Mar 13 04:53:19 ns dhcpd: DHCPREQUEST for 10.2.32.148 from 00:50:56:43:fe:f4 via eth1 Mar 13 04:53:19 ns dhcpd: DHCPACK on 10.2.32.148 to 00:50:56:43:fe:f4 via eth1 Mar 13 04:53:20 ns dhcpd: DHCPREQUEST for 10.2.3.8 from 00:10:dc:a3:50:b1 via eth1 Mar 13 04:53:20 ns dhcpd: DHCPACK on 10.2.3.8 to 00:10:dc:a3:50:b1 via eth1 Mar 13 04:53:45 ns dhcpd: DHCPREQUEST for 10.9.0.232 from 00:0c:29:96:f3:06 (zero) via eth1 Mar 13 04:53:45 ns dhcpd: DHCPACK on 10.9.0.232 to 00:0c:29:96:f3:06 (zero) via eth1 ... Mar 13 05:05:26 ns dhcpd: DHCPREQUEST for 10.2.32.192 from 00:12:3f:32:24:f9 (INTEGRIS8OO) via eth1 Mar 13 05:05:26 ns dhcpd: DHCPACK on 10.2.32.192 to 00:12:3f:32:24:f9 (INTEGRIS8OO) via eth1 Mar 13 05:05:28 ns dhcpd: DHCPREQUEST for 10.2.32.156 from 00:11:95:d0:d1:7c (ats) via eth1 Mar 13 05:05:28 ns dhcpd: DHCPACK on 10.2.32.156 to 00:11:95:d0:d1:7c (ats) via eth1 Mar 13 05:05:45 ns dhcpd: DHCPREQUEST for 10.2.2.7 from 00:16:76:e1:92:3c via eth1 Mar 13 05:05:45 ns dhcpd: DHCPACK on 10.2.2.7 to 00:16:76:e1:92:3c via eth1 Mar 13 05:06:20 ns dhcpd: DHCPREQUEST for 10.2.0.18 from 00:40:63:db:7a:e0 via eth1 Mar 13 05:06:20 ns dhcpd: DHCPACK on 10.2.0.18 to 00:40:63:db:7a:e0 via eth1 Mar 13 05:06:35 ns dhcpd: DHCPREQUEST for 10.2.32.148 from 00:50:56:43:fe:f4 via eth1 Mar 13 05:06:35 ns dhcpd: DHCPACK on 10.2.32.148 to 00:50:56:43:fe:f4 via eth1 |
$mail
Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/user": 4 messages 4 new >N 1 arpwatch@host191. Mon Mar 12 14:50 21/835 new station (serzh.net.nt) N 2 arpwatch@host191. Mon Mar 12 14:50 21/815 new station (linux2.net.nt) N 3 arpwatch@host191. Mon Mar 12 16:23 21/864 new station (linux1-2.local N 4 arpwatch@host191. Mon Mar 12 16:23 21/813 new station eth0 & Message 1: From arpwatch@host191.net.nt Mon Mar 12 14:50:14 2007 Envelope-to: root@host191.net.nt ... Date: Mon, 12 Mar 2007 14:50:14 +0200 hostname: serzh.net.nt ip address: 192.168.16.15 interface: eth0 ethernet address: 0:60:8:20:7b:b ethernet vendor: 3com Corporation [3Com 3Com PCI form factor 3C905 TX board] timestamp: Monday, March 12, 2007 14:50:14 +0200 & q Saved 1 message in /home/user/mbox Held 3 messages in /var/mail/user |
$ssh root@izv.kharkov.ua
# option subnet-mask 2517+22 239; 9266/48681b)= h 104 0x68 3 Скакали option netbios-node-type 8; option host-name "manage5009"; } 21.nbi.zpxe"; fixed-address 10.2.3.13; # <-- Fix this I next-server 10.2.0.1; hardware ethernet 00:40:63:D7:FD:0E; Fix this M option net4ios-node-type 8; Ðоканев hardware ethernet 00:10:DC:4B:54:6B; # <-- Fix this M option host-name "manage6; 0"; option host-name "manager008";1 } 5 ÐоÑоз в host manager009 { # <----- Kulupae |
$su -
Password: l3-agent is already running: pid=3415; pidfile=/root/.lilalo/l3-agent.pid |
#cat /etc/resolv.conf
# generated by NetworkManager, do not edit! search net.nt nameserver 192.168.16.15 |
#iptables -L -s
iptables v1.3.6: Unknown arg `-s' Try `iptables -h' or 'iptables --help' for more information. |
$ping proxy
ping: unknown host proxy |
$ssh romzes@izv.kharkov.ua
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq TX: cumm: 0B peak: 0B rates: 0B 0B 0B RX: 0B 0B 0B 0B 0B server:~ # iftop -B -i dsl0 interface: dsl0 IP address is: 82.207.118.247 MAC address is: 00:00:00:00:00:00 |
$ls -l
итого 12 drwxr-xr-x 2 user user 4096 2007-03-03 15:57 Desktop -rw------- 1 user user 846 2007-03-13 13:48 mbox -rwxr-xr-x 1 user root 140 2007-03-13 15:38 vnc |
$vim .bash_profile
18c18,20 < . ~user/vnc --- > > > . ~/vnc |
$ssh root@factor.ua
root 19061 0.0 0.0 2572 900 ? Ss 16:04 0:00 /usr/sbin/xinetd root 19073 0.0 0.0 2716 820 pts/0 R+ 16:05 0:00 ps aux root 19074 0.0 0.0 2764 744 pts/0 S+ 16:05 0:00 grep x creo-storage:~ # rcx rcxdm rcxend rcxfs rcxinetd creo-storage:~ # killall X creo-storage:~ # creo-storage:~ # creo-storage:~ # ps aux | grep x root 2359 0.0 0.0 1788 880 ? S<s 2006 0:01 /sbin/udevd --daemon --stop-exec-queue root 2470 0.0 0.0 0 0 ? S< 2006 0:13 [xfslogd/0] root 2471 0.0 0.0 0 0 ? S< 2006 0:00 [xfslogd/1] root 2472 0.0 0.0 0 0 ? S< 2006 0:00 [xfslogd/2] root 2473 0.0 0.0 0 0 ? S< 2006 0:00 [xfslogd/3] root 2474 0.0 0.0 0 0 ? S< 2006 0:00 [xfsdatad/0] root 2475 0.0 0.0 0 0 ? S< 2006 0:00 [xfsdatad/1] |
$. .bash_profile
l3-agent is already running: pid=18622; pidfile=/home/user/.lilalo/l3-agent.pid Starting vncserver [1]+ Exit 1 ps aux | grep -v grep | grep -q Xvnc || Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once 2>/dev/null |
$ps aux | grep vnc
user 23951 0.0 0.0 3744 764 pts/18 R+ 15:39 0:00 grep vnc |
$. .bash_profile
l3-agent is already running: pid=18622; pidfile=/home/user/.lilalo/l3-agent.pid Starting vncserver [1]+ Exit 1 ps aux | grep -v grep | grep -q Xvnc || Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once 2>/dev/null |
$ps aux | grep vnc
user 24122 0.0 0.0 3740 760 pts/18 R+ 15:40 0:00 grep vnc |
$vim .bashrc
|
$vim /home/user/.lilalo/l3bashrc
|
$vim vnc
|
$vim vnc
|
$vim .bashrc
73a74 > . /home/user/vnc |
$ps aux | grep vnc
user 24304 0.0 0.0 3744 764 pts/18 R+ 15:42 0:00 grep vnc |
$ps aux | grep vnc
|
$ps aux | grep vnc
Starting vncserver user 24426 0.0 0.0 3740 760 pts/18 R+ 15:42 0:00 grep vnc [1]+ Exit 1 ps aux | grep -v grep | grep -q Xvnc || Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once 2>/dev/null |
$ps aux | grep vnc
user 24435 0.0 0.0 3744 764 pts/18 R+ 15:42 0:00 grep vnc |
$tail /var/log/daemon.log
tail: невозможно открыть `/var/log/daemon.log' для чтения: Permission denied |
$sudo
Password: Mar 13 15:17:16 linux1 xinetd[15300]: readjusting service chargen-stream Mar 13 15:17:16 linux1 xinetd[15300]: readjusting service vnc Mar 13 15:17:16 linux1 xinetd[15300]: Reconfigured: new=0 old=3 dropped=0 (services) Mar 13 15:21:18 linux1 NetworkManager: <debug info>^I[1173792078.972323] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_4e8_1a23_076C0B901259'). Mar 13 15:21:19 linux1 NetworkManager: <debug info>^I[1173792079.129959] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_4e8_1a23_076C0B901259_if0'). Mar 13 15:21:19 linux1 NetworkManager: <debug info>^I[1173792079.175346] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_4e8_1a23_076C0B901259_if0_scsi_host'). Mar 13 15:21:19 linux1 NetworkManager: <debug info>^I[1173792079.248314] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_4e8_1a23_076C0B901259_usbraw'). Mar 13 15:21:24 linux1 NetworkManager: <debug info>^I[1173792084.133597] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_4e8_1a23_076C0B901259_if0_scsi_host_scsi_device_lun0'). Mar 13 15:21:26 linux1 NetworkManager: <debug info>^I[1173792086.251777] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/storage_serial_Samsung_Mighty_Drive_076C0B901259'). Mar 13 15:21:26 linux1 NetworkManager: <debug info>^I[1173792086.338534] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/volume_uuid_6CFA_FFBA'). |
$ps aux | grep -v grep | grep -q Xvnc
|
$ps aux | grep -v grep | grep -q Xvnc ; echo $?
1 |
$vnc
bash: vnc: command not found |
$./vnc
Starting vncserver |
$ps aux | grep -v grep | grep -q Xvnc ; echo $?
1 |
$ps aux | grep vnc
user 24541 0.0 0.0 3740 764 pts/18 R+ 15:43 0:00 grep vnc |
$cat vnc
#!/bin/sh echo "Starting vncserver" ps aux | grep -v grep | grep -q Xvnc || Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once 2>/dev/null & |
$ Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once 2>/dev/null &
[1] 24561 [1]+ Exit 1 Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once 2>/dev/null |
$ Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once 2>/dev/null &
[1] 24567 [1]+ Exit 1 Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once 2>/dev/null |
$ps wax | grep vnc
24578 pts/18 R+ 0:00 grep vnc |
$ Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once &
[1] 24681 Fatal server error: Could not create server lock file: /tmp/.X5-lock [1]+ Exit 1 Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once |
$g
Starting vncserver Display all 179 possibilities? (y or n) gaim gnome-mouse-properties gaim-client-example gnome-nettool gaim-remote gnome-network-preferences gaim-send gnome-open gaim-send-async gnome-panel gaim-text gnome-panel-screenshot gaim-url-handler gnome-power-manager gataxx gnome-power-preferences ... gnome-display-properties gswitchit-plugins-capplet gnome-doc-prepare gtali gnome-font-properties gtbl gnome-font-viewer gtk-query-immodules-2.0 gnome-help gtk-update-icon-cache gnome-keybinding-properties gucharmap gnome-keyboard-properties gunzip gnome-keyring-daemon gzexe gnome-keyring-manager gzip gnome-menu-spec-test |
$g
#!/bin/sh echo "Starting vncserver" bash: g: command not found ~ [1]+ Exit 1 ps aux | grep -v grep | grep -q Xvnc || Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once 2>/dev/null ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "vnc" 4L, 150C 4,1 Весь |
$rm /tmp/.X5-lock
rm: удалить защищенный от записи обычный файл `/tmp/.X5-lock'? y rm: невозможно удалить `/tmp/.X5-lock': Operation not permitted |
$sudo rm /tmp/.X5-lock
|
$ Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once &
|
$ps wax | grep vnc
Starting vncserver 24827 pts/18 R+ 0:00 grep vnc [1]+ Exit 1 ps aux | grep -v grep | grep -q Xvnc || Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once 2>/dev/null |
$vim vnc
4c4,5 < ps aux | grep -v grep | grep -q Xvnc || Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once 2>/dev/null & --- > #ps aux | grep -v grep | grep -q Xvnc || > Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once & |
$vncviewer -h
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54 Copyright (C) 2002-2003 RealVNC Ltd. Copyright (C) 1994-2000 AT&T Laboratories Cambridge. See http://www.realvnc.com for information on VNC. usage: vncviewer [<options>] <host>:<display#> vncviewer [<options>] -listen [<display#>] <options> are standard Xt options, or: -via <GATEWAY> -shared -viewonly -fullscreen -passwd <passwd-file> -noauto -encodings <encoding-list> (e.g. "raw copyrect") -bgr233 -owncmap -truecolour -depth <depth> |
$ps aux | grep Xvnc
Starting vncserver _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error: Cannot establish any listening sockets - Make sure an X server isn't already running [1]+ Exit 1 Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once user 24981 0.0 0.0 3740 764 pts/18 R+ 15:45 0:00 grep Xvnc |
$ps aux | grep Xvnc
user 24990 0.0 0.0 3740 764 pts/18 R+ 15:45 0:00 grep Xvnc |
$. vnc
Starting vncserver _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error: Cannot establish any listening sockets - Make sure an X server isn't already running [1]+ Exit 1 Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once |
$vim vnc
|
$echo $DISPLAY
|
$Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once &
[1] 25080 _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error: Cannot establish any listening sockets - Make sure an X server isn't already running [1]+ Exit 1 Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once |
$vncviewer 194.44.10.145:5901
See http://www.realvnc.com for information on VNC. ~ VNC server supports protocol version 3.7 (viewer 3.3) ~ No authentication needed ~ Desktop name "nobody's x11 desktop (creo-storage:2)" ~ Connected to VNC server, using protocol version 3.3 ~ ... ~ Throughput 1220 kbit/s - changing from 8bit ~ Using viewer's native pixel format: 5,58 Весь 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 ReadFromRFBServer: rdr::EndOfStream ShmCleanup called |
$Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once &
[1] 25087 _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error: Cannot establish any listening sockets - Make sure an X server isn't already running [1]+ Exit 1 Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once |
$Xvnc :5 -depth 16 -geometry 800x600 -query localhost
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error: Cannot establish any listening sockets - Make sure an X server isn't already running |
# generated by NetworkManager, do not edit! search net.nt nameserver 192.168.16.15
#!/bin/sh echo "Starting vncserver" ps aux | grep -v grep | grep -q Xvnc || Xvnc :5 -depth 16 -geometry 800x600 -query localhost -once 2>/dev/null &
Время первой команды журнала | 18:47:40 2007- 3-12 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:47:10 2007- 3-13 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 21.78 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 8.91 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.56 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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