/l3/trainings/nt-bsdnet/2005-11-21/fbsd2.linux.nt/root :1 :2 :3 :4 :5 :6 |
|
#ls
.report.dat report.xml 325T1_11:04:52__etc_ssh_sshd__config.diff ttyp0-980.info l3-agent.pid ttyp0-980.script lab |
#perl -p -i -e 's@<hostname></hostname>@<hostname>fbsd1.linux.nt</hostname
> >@' *.info |
#xorgcfg
compiled for 6.8.2, module version = 1.0.0 Unloading /usr/X11R6/lib/modules/drivers/apm_drv.o Loading /usr/X11R6/lib/modules/drivers/ark_drv.o Module ark: vendor="X.Org Foundation" compiled for 6.8.2, module version = 0.5.0 Unloading /usr/X11R6/lib/modules/drivers/ark_drv.o Loading /usr/X11R6/lib/modules/drivers/ati_drv.o Module ati: vendor="X.Org Foundation" compiled for 6.8.2, module version = 6.5.6 ERROR SIGBUS caught! ... Module via: vendor="X.Org Foundation" compiled for 4.3.99.902, module version = 4.1.30 Unloading /usr/X11R6/lib/modules/drivers/via_drv.o Loading /usr/X11R6/lib/modules/drivers/vmware_drv.o Module vmware: vendor="X.Org Foundation" compiled for 6.8.2, module version = 10.10.2 Module vmware already in list! Unloading /usr/X11R6/lib/modules/drivers/vmware_drv.o X connection to :8.0 broken (explicit kill or server shutdown). FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing. |
#ls
.bash_history .gconf .gstreamer-0.8 .login .bash_profile .gconfd .history .profile .bashrc .gnome2 .k5login .ssh .cshrc .gnome2_private .lilalo xorg.conf.new |
#mv xorg.conf.new /etc/X11/xorg.conf
|
#vi /etc/X11/xorg.conf
|
#xinit
X Window System Version 6.8.2 Release Date: 9 February 2005 X Protocol Version 11, Revision 0, Release 6.8.2 Build Operating System: FreeBSD 6.0 i386 [ELF] Current Operating System: FreeBSD fbsd2.linux.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 Build Date: 12 October 2005 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov 21 12:10:40 2005 (==) Using config file: "/etc/X11/xorg.conf" (EE) R128(0): No DFP detected xterm: fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0" xinit: connection to X server lost. waiting for X server to shut down FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing. |
#vi /etc/X11/xorg.conf
80c80 < Driver "ati" --- > Driver "vesa" |
#xinit
X Window System Version 6.8.2 Release Date: 9 February 2005 X Protocol Version 11, Revision 0, Release 6.8.2 Build Operating System: FreeBSD 6.0 i386 [ELF] Current Operating System: FreeBSD fbsd2.linux.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 Build Date: 12 October 2005 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov 21 12:13:17 2005 (==) Using config file: "/etc/X11/xorg.conf" waiting for X server to shut down FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing. |
#ping linux.nt
PING linux.nt (10.0.0.188): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ^C --- linux.nt ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#ping linux.nt
PING linux.nt (10.0.0.188): 56 data bytes 64 bytes from 10.0.0.188: icmp_seq=0 ttl=64 time=0.320 ms 64 bytes from 10.0.0.188: icmp_seq=1 ttl=64 time=0.290 ms ^C --- linux.nt ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.290/0.305/0.320/0.015 ms |
#xrand
bash: xrand: command not found |
#xrandr
SZ: Pixels Physical Refresh *0 1024 x 768 ( 321mm x 241mm ) *85 1 800 x 600 ( 321mm x 241mm ) 86 2 640 x 480 ( 321mm x 241mm ) 86 3 640 x 400 ( 321mm x 241mm ) 86 4 640 x 350 ( 321mm x 241mm ) 86 Current rotation - normal Current reflection - none Rotations possible - normal Reflections possible - none |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 37 xl0 127.0.0.1 127.0.0.1 UH 0 252 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.22 00:04:75:c0:a0:a2 UHLW 1 10 lo0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 1007 xl0 1189 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%xl0/64 link#1 UC xl0 fe80::204:75ff:fec0:a0a2%xl0 00:04:75:c0:a0:a2 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01::/32 ::1 U lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%lo0/32 ::1 UC lo0 |
#netstat -rn4
netstat: illegal option -- 4 usage: netstat [-AaLnSW] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhnt] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -r [-AenW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -rnf inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 37 xl0 127.0.0.1 127.0.0.1 UH 0 252 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.22 00:04:75:c0:a0:a2 UHLW 1 10 lo0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 1022 xl0 1138 |
#netstat -rn6
netstat: illegal option -- 6 usage: netstat [-AaLnSW] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhnt] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -r [-AenW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -rnf inet6
Routing tables Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%xl0/64 link#1 UC xl0 fe80::204:75ff:fec0:a0a2%xl0 00:04:75:c0:a0:a2 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01::/32 ::1 U lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%lo0/32 ::1 UC lo0 |
#netstat -rnf inet4
netstat: inet4: unknown address family |
#netstat -rnf inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 37 xl0 127.0.0.1 127.0.0.1 UH 0 252 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.22 00:04:75:c0:a0:a2 UHLW 1 10 lo0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 1067 xl0 1081 |
#netstat -rnf inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 37 xl0 127.0.0.1 127.0.0.1 UH 0 252 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.22 00:04:75:c0:a0:a2 UHLW 1 10 lo0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 1072 xl0 886 |
#route add 192.168.16.0/24
route: writing to routing socket: Invalid argument add net 192.168.16.0: Invalid argument |
#route add 192.168.16.0/24
route: writing to routing socket: Invalid argument add net 192.168.16.0: Invalid argument |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fec0:a0a2%xl0 prefixlen 64 scopeid 0x1 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:04:75:c0:a0:a2 media: Ethernet 100baseTX status: active xl1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:75:82:53:43 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig xl1 192.168.17.122
|
#route add 192.168.16.0
route: writing to routing socket: Invalid argument add net 192.168.16.0: Invalid argument |
#route add 192.168.16.0/24 192.168.15.21
add net 192.168.16.0: gateway 192.168.15.21 |
#netstat -rnf inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 37 xl0 127.0.0.1 127.0.0.1 UH 0 252 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.21 00:0a:01:d4:d1:e3 UHLW 2 1 xl0 1199 192.168.15.22 00:04:75:c0:a0:a2 UHLW 1 10 lo0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 1239 xl0 1199 192.168.16 192.168.15.21 UGS 0 0 xl0 192.168.17 link#2 UC 0 0 xl1 |
#ping 192.168.16.0
PING 192.168.16.0 (192.168.16.0): 56 data bytes ^C --- 192.168.16.0 ping statistics --- 7 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.21
PING 192.168.15.21 (192.168.15.21): 56 data bytes 64 bytes from 192.168.15.21: icmp_seq=0 ttl=64 time=0.272 ms 64 bytes from 192.168.15.21: icmp_seq=1 ttl=64 time=0.258 ms 64 bytes from 192.168.15.21: icmp_seq=2 ttl=64 time=0.254 ms 64 bytes from 192.168.15.21: icmp_seq=3 ttl=64 time=0.245 ms 64 bytes from 192.168.15.21: icmp_seq=4 ttl=64 time=0.267 ms ^C --- 192.168.15.21 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.245/0.259/0.272/0.010 ms |
#ping 192.168.16.21
PING 192.168.16.21 (192.168.16.21): 56 data bytes 64 bytes from 192.168.16.21: icmp_seq=0 ttl=64 time=0.257 ms 64 bytes from 192.168.16.21: icmp_seq=1 ttl=64 time=0.248 ms 64 bytes from 192.168.16.21: icmp_seq=2 ttl=64 time=0.273 ms 64 bytes from 192.168.16.21: icmp_seq=3 ttl=64 time=0.259 ms 64 bytes from 192.168.16.21: icmp_seq=4 ttl=64 time=0.240 ms 64 bytes from 192.168.16.21: icmp_seq=5 ttl=64 time=0.262 ms 64 bytes from 192.168.16.21: icmp_seq=6 ttl=64 time=0.258 ms 64 bytes from 192.168.16.21: icmp_seq=7 ttl=64 time=0.246 ms 64 bytes from 192.168.16.21: icmp_seq=8 ttl=64 time=0.239 ms 64 bytes from 192.168.16.21: icmp_seq=9 ttl=64 time=0.228 ms 64 bytes from 192.168.16.21: icmp_seq=10 ttl=64 time=0.244 ms 64 bytes from 192.168.16.21: icmp_seq=11 ttl=64 time=0.232 ms ^C --- 192.168.16.21 ping statistics --- 12 packets transmitted, 12 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.228/0.249/0.273/0.013 ms |
#ping 192.168.1521
PING 192.168.15.21 (192.168.15.21): 56 data bytes 64 bytes from 192.168.15.21: icmp_seq=0 ttl=64 time=0.255 ms 64 bytes from 192.168.15.21: icmp_seq=1 ttl=64 time=0.240 ms 64 bytes from 192.168.15.21: icmp_seq=2 ttl=64 time=0.266 ms 64 bytes from 192.168.15.21: icmp_seq=3 ttl=64 time=0.259 ms 64 bytes from 192.168.15.21: icmp_seq=4 ttl=64 time=0.246 ms 64 bytes from 192.168.15.21: icmp_seq=5 ttl=64 time=0.240 ms 64 bytes from 192.168.15.21: icmp_seq=6 ttl=64 time=0.243 ms 64 bytes from 192.168.15.21: icmp_seq=7 ttl=64 time=0.255 ms 64 bytes from 192.168.15.21: icmp_seq=8 ttl=64 time=0.251 ms ^C --- 192.168.15.21 ping statistics --- 9 packets transmitted, 9 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.240/0.251/0.266/0.008 ms |
#ping 192.168.16
PING 192.168.16.21 (192.168.16.21): 56 data bytes 64 bytes from 192.168.16.21: icmp_seq=0 ttl=64 time=0.254 ms 64 bytes from 192.168.16.21: icmp_seq=1 ttl=64 time=0.250 ms 64 bytes from 192.168.16.21: icmp_seq=2 ttl=64 time=0.237 ms 64 bytes from 192.168.16.21: icmp_seq=3 ttl=64 time=0.247 ms 64 bytes from 192.168.16.21: icmp_seq=4 ttl=64 time=0.231 ms 64 bytes from 192.168.16.21: icmp_seq=5 ttl=64 time=0.256 ms 64 bytes from 192.168.16.21: icmp_seq=6 ttl=64 time=0.248 ms 64 bytes from 192.168.16.21: icmp_seq=7 ttl=64 time=0.234 ms 64 bytes from 192.168.16.21: icmp_seq=8 ttl=64 time=0.253 ms 64 bytes from 192.168.16.21: icmp_seq=9 ttl=64 time=0.262 ms ^C --- 192.168.16.21 ping statistics --- 10 packets transmitted, 10 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.231/0.247/0.262/0.010 ms |
#ping 192.168.1521
PING 192.168.15.21 (192.168.15.21): 56 data bytes 64 bytes from 192.168.15.21: icmp_seq=0 ttl=64 time=0.251 ms 64 bytes from 192.168.15.21: icmp_seq=1 ttl=64 time=0.265 ms 64 bytes from 192.168.15.21: icmp_seq=2 ttl=64 time=0.244 ms ^C --- 192.168.15.21 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.244/0.253/0.265/0.009 ms |
#netstat -rnf inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 37 xl0 127.0.0.1 127.0.0.1 UH 0 252 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.21 00:0a:01:d4:d1:e3 UHLW 2 26 xl0 1075 192.168.15.22 00:04:75:c0:a0:a2 UHLW 1 10 lo0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 1356 xl0 1186 192.168.16 192.168.15.21 UGS 0 29 xl0 192.168.17 link#2 UC 0 0 xl1 |
#route add 192.168.17.0/24 192.168.15.22
route: writing to routing socket: File exists add net 192.168.17.0: gateway 192.168.15.22: route already in table |
#netstat -rnf inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 37 xl0 127.0.0.1 127.0.0.1 UH 0 252 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.21 00:0a:01:d4:d1:e3 UHLW 2 26 xl0 1026 192.168.15.22 00:04:75:c0:a0:a2 UHLW 1 10 lo0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 1391 xl0 1157 192.168.16 192.168.15.21 UGS 0 29 xl0 192.168.17 link#2 UC 0 0 xl1 |
#route add 192.168.18.0/24 192.168.15.23
add net 192.168.18.0: gateway 192.168.15.23 |
#netstat -rnf inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 37 xl0 127.0.0.1 127.0.0.1 UH 0 252 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.21 00:0a:01:d4:d1:e3 UHLW 2 26 xl0 987 192.168.15.22 00:04:75:c0:a0:a2 UHLW 1 10 lo0 192.168.15.23 link#1 UHLW 2 0 xl0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 1416 xl0 1118 192.168.16 192.168.15.21 UGS 0 29 xl0 192.168.17 link#2 UC 0 0 xl1 192.168.18 192.168.15.23 UGS 0 0 xl0 |
#sysctl -a |grop forward
bash: grop: command not found |
#sysctl -a |gre forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl net.inet.ipforwarding=1
sysctl: unknown oid 'net.inet.ipforwarding' |
#sysctl net.inet.ip orwarding=1
net.inet.ip.portrange.lowfirst: 1023 net.inet.ip.portrange.lowlast: 600 net.inet.ip.portrange.first: 49152 net.inet.ip.portrange.last: 65535 net.inet.ip.portrange.hifirst: 49152 net.inet.ip.portrange.hilast: 65535 net.inet.ip.portrange.reservedhigh: 1023 net.inet.ip.portrange.reservedlow: 0 net.inet.ip.portrange.randomized: 1 net.inet.ip.portrange.randomcps: 10 ... net.inet.ip.subnets_are_local: 0 net.inet.ip.same_prefix_carp_only: 0 net.inet.ip.fastforwarding: 0 net.inet.ip.process_options: 1 net.inet.ip.maxfragpackets: 800 net.inet.ip.maxfragsperpacket: 16 net.inet.ip.sendsourcequench: 0 net.inet.ip.random_id: 0 net.inet.ip.check_interface: 0 sysctl: unknown oid 'forwarding' |
#sysctl -a |grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a |grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl net.inet.ip forwarding=1
net.inet.ip.portrange.lowfirst: 1023 net.inet.ip.portrange.lowlast: 600 net.inet.ip.portrange.first: 49152 net.inet.ip.portrange.last: 65535 net.inet.ip.portrange.hifirst: 49152 net.inet.ip.portrange.hilast: 65535 net.inet.ip.portrange.reservedhigh: 1023 net.inet.ip.portrange.reservedlow: 0 net.inet.ip.portrange.randomized: 1 net.inet.ip.portrange.randomcps: 10 ... net.inet.ip.subnets_are_local: 0 net.inet.ip.same_prefix_carp_only: 0 net.inet.ip.fastforwarding: 0 net.inet.ip.process_options: 1 net.inet.ip.maxfragpackets: 800 net.inet.ip.maxfragsperpacket: 16 net.inet.ip.sendsourcequench: 0 net.inet.ip.random_id: 0 net.inet.ip.check_interface: 0 sysctl: unknown oid 'forwarding' |
#sysctl -a |grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl net.inet.ip forwarding=1
net.inet.ip.portrange.lowfirst: 1023 net.inet.ip.portrange.lowlast: 600 net.inet.ip.portrange.first: 49152 net.inet.ip.portrange.last: 65535 net.inet.ip.portrange.hifirst: 49152 net.inet.ip.portrange.hilast: 65535 net.inet.ip.portrange.reservedhigh: 1023 net.inet.ip.portrange.reservedlow: 0 net.inet.ip.portrange.randomized: 1 net.inet.ip.portrange.randomcps: 10 ... net.inet.ip.subnets_are_local: 0 net.inet.ip.same_prefix_carp_only: 0 net.inet.ip.fastforwarding: 0 net.inet.ip.process_options: 1 net.inet.ip.maxfragpackets: 800 net.inet.ip.maxfragsperpacket: 16 net.inet.ip.sendsourcequench: 0 net.inet.ip.random_id: 0 net.inet.ip.check_interface: 0 sysctl: unknown oid 'forwarding' |
#sysctl net.inet.ip forwarding=1
net.inet.ip.portrange.lowfirst: 1023 net.inet.ip.portrange.lowlast: 600 net.inet.ip.portrange.first: 49152 net.inet.ip.portrange.last: 65535 net.inet.ip.portrange.hifirst: 49152 net.inet.ip.portrange.hilast: 65535 net.inet.ip.portrange.reservedhigh: 1023 net.inet.ip.portrange.reservedlow: 0 net.inet.ip.portrange.randomized: 1 net.inet.ip.portrange.randomcps: 10 ... net.inet.ip.subnets_are_local: 0 net.inet.ip.same_prefix_carp_only: 0 net.inet.ip.fastforwarding: 0 net.inet.ip.process_options: 1 net.inet.ip.maxfragpackets: 800 net.inet.ip.maxfragsperpacket: 16 net.inet.ip.sendsourcequench: 0 net.inet.ip.random_id: 0 net.inet.ip.check_interface: 0 sysctl: unknown oid 'forwarding' |
#sysctl -a |grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a |grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a |grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a |grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a |grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl net.inet.ip forwarding=1
net.inet.ip.portrange.lowfirst: 1023 net.inet.ip.portrange.lowlast: 600 net.inet.ip.portrange.first: 49152 net.inet.ip.portrange.last: 65535 net.inet.ip.portrange.hifirst: 49152 net.inet.ip.portrange.hilast: 65535 net.inet.ip.portrange.reservedhigh: 1023 net.inet.ip.portrange.reservedlow: 0 net.inet.ip.portrange.randomized: 1 net.inet.ip.portrange.randomcps: 10 ... net.inet.ip.subnets_are_local: 0 net.inet.ip.same_prefix_carp_only: 0 net.inet.ip.fastforwarding: 0 net.inet.ip.process_options: 1 net.inet.ip.maxfragpackets: 800 net.inet.ip.maxfragsperpacket: 16 net.inet.ip.sendsourcequench: 0 net.inet.ip.random_id: 0 net.inet.ip.check_interface: 0 sysctl: unknown oid 'forwarding' |
#sysctl net.inet.ip forwarding
net.inet.ip.portrange.lowfirst: 1023 net.inet.ip.portrange.lowlast: 600 net.inet.ip.portrange.first: 49152 net.inet.ip.portrange.last: 65535 net.inet.ip.portrange.hifirst: 49152 net.inet.ip.portrange.hilast: 65535 net.inet.ip.portrange.reservedhigh: 1023 net.inet.ip.portrange.reservedlow: 0 net.inet.ip.portrange.randomized: 1 net.inet.ip.portrange.randomcps: 10 ... net.inet.ip.subnets_are_local: 0 net.inet.ip.same_prefix_carp_only: 0 net.inet.ip.fastforwarding: 0 net.inet.ip.process_options: 1 net.inet.ip.maxfragpackets: 800 net.inet.ip.maxfragsperpacket: 16 net.inet.ip.sendsourcequench: 0 net.inet.ip.random_id: 0 net.inet.ip.check_interface: 0 sysctl: unknown oid 'forwarding' |
#sysctl -a |grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fec0:a0a2%xl0 prefixlen 64 scopeid 0x1 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:04:75:c0:a0:a2 media: Ethernet 100baseTX status: no carrier xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.17.122 netmask 0xffffff00 broadcast 192.168.17.255 inet6 fe80::204:75ff:fe82:5343%xl1 prefixlen 64 scopeid 0x2 ether 00:04:75:82:53:43 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig xl1 192.168.16.22/24
ifconfig: ioctl (SIOCAIFADDR): File exists |
#ifconfig xl1 192.168.17.122/24 192.168.16.22
|
#ifconfig xl1
xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fe82:5343%xl1 prefixlen 64 scopeid 0x2 inet 192.168.17.122 netmask 0xffffff00 broadcast 192.168.16.22 ether 00:04:75:82:53:43 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig xl1 192.168.17.122/24 192.168.16.22/24
^C |
#ifconfig xl1
xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fe82:5343%xl1 prefixlen 64 scopeid 0x2 inet 192.168.17.122 netmask 0xffffff00 broadcast 192.168.16.22 ether 00:04:75:82:53:43 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig xl1 192.168.16.22
ifconfig: ioctl (SIOCAIFADDR): File exists |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fec0:a0a2%xl0 prefixlen 64 scopeid 0x1 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:04:75:c0:a0:a2 media: Ethernet 100baseTX status: no carrier xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fe82:5343%xl1 prefixlen 64 scopeid 0x2 ether 00:04:75:82:53:43 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig xl1 192.168.16.22
ifconfig: ioctl (SIOCAIFADDR): File exists |
#ifconfig xl1 192.168.16.22 mask 255.255.255.0
ifconfig: mask: bad value |
#ifconfig xl1 192.168.16.22/24sk 255.255.255.0
^C |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fec0:a0a2%xl0 prefixlen 64 scopeid 0x1 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:04:75:c0:a0:a2 media: Ethernet 100baseTX status: no carrier xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fe82:5343%xl1 prefixlen 64 scopeid 0x2 ether 00:04:75:82:53:43 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig xl1 192.168.16.22/24
ifconfig: ioctl (SIOCAIFADDR): File exists |
#ifconfig xl1 inet168.16.22/24
ifconfig: ioctl (SIOCAIFADDR): File exists |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fec0:a0a2%xl0 prefixlen 64 scopeid 0x1 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:04:75:c0:a0:a2 media: Ethernet 100baseTX status: no carrier xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fe82:5343%xl1 prefixlen 64 scopeid 0x2 ether 00:04:75:82:53:43 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig xl1 inet 192.168.16.22/26
|
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fec0:a0a2%xl0 prefixlen 64 scopeid 0x1 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:04:75:c0:a0:a2 media: Ethernet 100baseTX status: no carrier xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fe82:5343%xl1 prefixlen 64 scopeid 0x2 inet 192.168.16.22 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:75:82:53:43 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fec0:a0a2%xl0 prefixlen 64 scopeid 0x1 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:04:75:c0:a0:a2 media: Ethernet 100baseTX status: no carrier xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:75ff:fe82:5343%xl1 prefixlen 64 scopeid 0x2 inet 192.168.16.22 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:75:82:53:43 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 |
#route add 192.168.15.0
route: writing to routing socket: Invalid argument add net 192.168.15.0: Invalid argument |
#route add 192.168.15.0/24
route: writing to routing socket: Invalid argument add net 192.168.15.0: Invalid argument |
#route add 192.168.15.0/24 192.168.15.21
route: writing to routing socket: File exists add net 192.168.15.0: gateway 192.168.15.21: route already in table |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.15.254 ping statistics --- 8 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C ^C --- 192.168.15.254 ping statistics --- 14 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^Cping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.15.254 ping statistics --- 13 packets transmitted, 0 packets received, 100% packet loss |
#netstat
c2c5a9d8 stream 0 0 0 c2c5a94c 0 0 /tmp/.ICE-unix/1479 c2c5a94c stream 0 0 0 c2c5a9d8 0 0 c2c5a8c0 stream 0 0 0 c2c5a834 0 0 /var/tmp/orbit-root/linc-600-0-31385207715f8 c2c5a834 stream 0 0 0 c2c5a8c0 0 0 c2c5a7a8 stream 0 0 0 c2c5a578 0 0 /var/tmp/orbit-root/linc-60e-0-313a8a4f7c1cc c2c5a578 stream 0 0 0 c2c5a7a8 0 0 c2c5aa64 stream 0 0 0 c2c5aaf0 0 0 /var/tmp/orbit-root/linc-60c-0-313ac827107b9 c2c5aaf0 stream 0 0 0 c2c5aa64 0 0 c2c5ab7c stream 0 0 0 c2c5ac08 0 0 /var/tmp/orbit-root/linc-5ce-0-7357e079a437 c2c5ac08 stream 0 0 0 c2c5ab7c 0 0 ... c268f1a4 stream 32 0 0 c268fd20 0 0 c268f834 stream 0 0 c29db000 0 0 0 /tmp/.X11-unix/X0 c2690000 stream 0 0 c2685110 0 0 0 /var/run/devd.pipe c268f604 dgram 0 0 0 c268fe38 0 c268fdac c268fdac dgram 0 0 0 c268fe38 0 c268f348 c268f348 dgram 0 0 0 c268fe38 0 c268fc08 c268fb7c dgram 0 0 0 c268fec4 0 0 c268fc08 dgram 0 0 0 c268fe38 0 0 c268fe38 dgram 0 0 c2685660 0 c268f604 0 /var/run/logpriv c268fec4 dgram 0 0 c2685770 0 c268fb7c 0 /var/run/log |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 37 xl0 127.0.0.1 127.0.0.1 UH 0 466 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.21 link#1 UHLW 2 26 xl0 192.168.15.22 00:04:75:c0:a0:a2 UHLW 1 10 lo0 192.168.15.23 link#1 UHLW 2 0 xl0 192.168.15.254 00:0a:01:d4:d1:39 UHRLW 2 2085 xl0 ... fe80::%xl0/64 link#1 UC xl0 fe80::204:75ff:fec0:a0a2%xl0 00:04:75:c0:a0:a2 UHL lo0 fe80::%xl1/64 link#2 UC xl1 fe80::204:75ff:fe82:5343%xl1 00:04:75:82:53:43 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01::/32 ::1 U lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%xl1/32 link#2 UC xl1 ff02::%lo0/32 ::1 UC lo0 |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.15.254 ping statistics --- 13 packets transmitted, 0 packets received, 100% packet loss |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 37 xl0 127.0.0.1 127.0.0.1 UH 0 466 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.21 link#1 UHLW 2 26 xl0 192.168.15.22 00:04:75:c0:a0:a2 UHLW 1 10 lo0 192.168.15.23 link#1 UHLW 2 0 xl0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 2178 xl0 ... fe80::%xl0/64 link#1 UC xl0 fe80::204:75ff:fec0:a0a2%xl0 00:04:75:c0:a0:a2 UHL lo0 fe80::%xl1/64 link#2 UC xl1 fe80::204:75ff:fe82:5343%xl1 00:04:75:82:53:43 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01::/32 ::1 U lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%xl1/32 link#2 UC xl1 ff02::%lo0/32 ::1 UC lo0 |
#route delete defaulte
^C |
#route delete default
delete net default |
#route add default 192.168.16.21
add net default: gateway 192.168.16.21 |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ping: sendto: Host is down ^C --- 192.168.15.254 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.21
PING 192.168.15.21 (192.168.15.21): 56 data bytes ping: sendto: Host is down ^C --- 192.168.15.21 ping statistics --- 7 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.1621
PING 192.168.16.21 (192.168.16.21): 56 data bytes 64 bytes from 192.168.16.21: icmp_seq=0 ttl=64 time=0.245 ms 64 bytes from 192.168.16.21: icmp_seq=1 ttl=64 time=0.233 ms 64 bytes from 192.168.16.21: icmp_seq=2 ttl=64 time=0.239 ms 64 bytes from 192.168.16.21: icmp_seq=3 ttl=64 time=0.235 ms 64 bytes from 192.168.16.21: icmp_seq=4 ttl=64 time=0.248 ms 64 bytes from 192.168.16.21: icmp_seq=5 ttl=64 time=0.221 ms 64 bytes from 192.168.16.21: icmp_seq=6 ttl=64 time=0.253 ms 64 bytes from 192.168.16.21: icmp_seq=7 ttl=64 time=0.227 ms ^C --- 192.168.16.21 ping statistics --- 8 packets transmitted, 8 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.221/0.238/0.253/0.010 ms |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.15.254 ping statistics --- 8 packets transmitted, 0 packets received, 100% packet loss |
#netstat
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) ^[[B^C |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.15.254 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.21
PING 192.168.16.21 (192.168.16.21): 56 data bytes 64 bytes from 192.168.16.21: icmp_seq=0 ttl=64 time=0.397 ms 64 bytes from 192.168.16.21: icmp_seq=1 ttl=64 time=0.228 ms 64 bytes from 192.168.16.21: icmp_seq=2 ttl=64 time=0.214 ms 64 bytes from 192.168.16.21: icmp_seq=3 ttl=64 time=0.223 ms 64 bytes from 192.168.16.21: icmp_seq=4 ttl=64 time=0.219 ms ^C --- 192.168.16.21 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.214/0.256/0.397/0.071 ms |
#ping 192.168.1521
PING 192.168.15.21 (192.168.15.21): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.15.21 ping statistics --- 9 packets transmitted, 0 packets received, 100% packet loss |
#netstat
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) ^C |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.21 UGS 0 0 xl1 127.0.0.1 127.0.0.1 UH 0 466 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.21 link#1 UHRLW 2 42 xl0 192.168.15.22 00:04:75:c0:a0:a2 UHLW 1 10 lo0 192.168.15.23 link#1 UHLW 2 0 xl0 192.168.15.254 link#1 UHLW 1 46 xl0 ... fe80::%xl0/64 link#1 UC xl0 fe80::204:75ff:fec0:a0a2%xl0 00:04:75:c0:a0:a2 UHL lo0 fe80::%xl1/64 link#2 UC xl1 fe80::204:75ff:fe82:5343%xl1 00:04:75:82:53:43 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01::/32 ::1 U lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%xl1/32 link#2 UC xl1 ff02::%lo0/32 ::1 UC lo0 |
Время первой команды журнала | 11:40:12 2006-11-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:29:31 2006-11-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 35.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.73 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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