/l3/users/30-03-2008/fbsd-net/fbsd1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 |
|
#ls -l
total 86 -rw------- 1 root wheel 1512 28 ÍÁÒ 17:23 .bash_history -rw-r--r-- 1 root wheel 19 28 ÍÁÒ 17:23 .bash_profile -rw-r--r-- 1 root wheel 38 28 ÍÁÒ 17:23 .bashrc -rw-r--r-- 2 root wheel 801 16 ÑÎ× 00:33 .cshrc -rw------- 1 root wheel 164 15 ÍÁÒ 15:54 .history -rw-r--r-- 1 root wheel 143 16 ÑÎ× 00:33 .k5login -rw-r--r-- 1 root wheel 51 28 ÍÁÒ 17:22 .l3rc -rw------- 1 root wheel 41 28 ÍÁÒ 00:06 .lesshst drwxr-xr-x 2 root wheel 1024 28 ÍÁÒ 17:24 .lilalo -rw-r--r-- 1 root wheel 293 16 ÑÎ× 00:33 .login -rw-r--r-- 2 root wheel 251 16 ÑÎ× 00:33 .profile drwx------ 2 root wheel 512 15 ÍÁÒ 15:57 .ssh drwxr-xr-x 2 root wheel 512 28 ÍÁÒ 00:00 .vnc -rw-r--r-- 1 root wheel 5160 28 ÍÁÒ 16:49 install -rw------- 1 root wheel 53312 28 ÍÁÒ 16:38 mbox |
#ls -l
total 86 -rw------- 1 root wheel 1524 28 ÍÁÒ 17:24 .bash_history -rw-r--r-- 1 root wheel 19 28 ÍÁÒ 17:23 .bash_profile -rw-r--r-- 1 root wheel 38 28 ÍÁÒ 17:23 .bashrc -rw-r--r-- 2 root wheel 801 16 ÑÎ× 00:33 .cshrc -rw------- 1 root wheel 164 15 ÍÁÒ 15:54 .history -rw-r--r-- 1 root wheel 143 16 ÑÎ× 00:33 .k5login -rw-r--r-- 1 root wheel 51 28 ÍÁÒ 17:22 .l3rc -rw------- 1 root wheel 41 28 ÍÁÒ 00:06 .lesshst drwxr-xr-x 2 root wheel 1024 28 ÍÁÒ 17:24 .lilalo -rw-r--r-- 1 root wheel 293 16 ÑÎ× 00:33 .login -rw-r--r-- 2 root wheel 251 16 ÑÎ× 00:33 .profile drwx------ 2 root wheel 512 15 ÍÁÒ 15:57 .ssh drwxr-xr-x 2 root wheel 512 28 ÍÁÒ 00:00 .vnc -rw-r--r-- 1 root wheel 5160 28 ÍÁÒ 16:49 install -rw------- 1 root wheel 53312 28 ÍÁÒ 16:38 mbox |
#pgrep l3-agent
|
#pidof l3-agent
bash: pidof: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#ls aux | grep l3
ls: aux: No such file or directory |
#ps aux | grep l3
root 1776 0,4 0,7 8328 7104 ?? Ss 17:24 0:00,33 l3-agent (perl5.8 root 1637 0,0 0,7 8316 7064 ?? Ss 17:23 0:00,20 l3-agent (perl5.8 root 1713 0,0 0,7 8308 7084 ?? Ss 17:24 0:00,09 l3-agent (perl5.8 |
#kill -9 1776 1637 1713
|
#l3-agent
Removing stale pidfile |
#su - user
|
$w
5:26PM up 9 mins, 1 user, load averages: 0.01, 0.14, 0.08 USER TTY FROM LOGIN@ IDLE WHAT root v0 - 5:24PM - script -t 0 -q /root/. |
$exit
exit |
#ping ya.ru
PING ya.ru (213.180.204.8): 56 data bytes 64 bytes from 213.180.204.8: icmp_seq=0 ttl=54 time=30.030 ms ^C --- ya.ru ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 30.030/30.030/30.030/0.000 ms |
#w
17:28 up 39 secs, 1 user, load averages: 1,00 0,26 0,10 USER TTY FROM LOGIN@ IDLE WHAT root v0 - 17:27 - script -t 0 -q /root/. |
#id
uid=0(root) gid=0(wheel) groups=0(wheel),5(operator) |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:02:01 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 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#pkg_add -r screen
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/screen.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/screen.tbz' by URL |
#ping mail.ru
PING mail.ru (194.67.57.226): 56 data bytes 64 bytes from 194.67.57.226: icmp_seq=0 ttl=113 time=99.114 ms ^C --- mail.ru ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 99.114/99.114/99.114/0.000 ms |
#cd /usr/ports/
|
#make search name=screen
Port: p5-Term-ANSIScreen-1.42 Path: /usr/ports/devel/p5-Term-ANSIScreen Info: Term::ANSIColor clone with screen mode support Maint: ports@FreeBSD.org B-deps: perl-5.8.8_1 R-deps: perl-5.8.8_1 WWW: Port: p5-Term-Screen-1.03 Path: /usr/ports/devel/p5-Term-Screen Info: Basic screen + input class ... Path: /usr/ports/x11-toolkits/p5-Tk-Splashscreen Info: Tk::Splashscreen, display a Splashscreen during program initialization Maint: tobez@FreeBSD.org B-deps: compositeproto-0.4 damageproto-1.1.0_2 expat-2.0.0_1 fixesproto-4.0 fontcacheproto-0.1.2 fontconfig-2.4.2_2,1 fontsproto-2.0.2 freetype2-2.3.5 inputproto-1.4.2.1 kbproto-1.0.3 libFS-1.0.0 libICE-1.0.4,1 libSM-1.0.3,1 libX11-1.1.3,1 libXScrnSaver-1.1.2 libXTrap-1.0.0 libXau-1.0.3_2 libXaw-1.0.4,1 libXcomposite-0.4.0,1 libXcursor-1.1.9 libXdamage-1.1.1 libXdmcp-1.0.2 libXevie-1.0.2 libXext-1 R-deps: compositeproto-0.4 damageproto-1.1.0_2 expat-2.0.0_1 fixesproto-4.0 fontcacheproto-0.1.2 fontconfig-2.4.2_2,1 fontsproto-2.0.2 freetype2-2.3.5 inputproto-1.4.2.1 kbproto-1.0.3 libFS-1.0.0 libICE-1.0.4,1 libSM-1.0.3,1 libX11-1.1.3,1 libXScrnSaver-1.1.2 libXTrap-1.0.0 libXau-1.0.3_2 libXaw-1.0.4,1 libXcomposite-0.4.0,1 libXcursor-1.1.9 libXdamage-1.1.1 libXdmcp-1.0.2 libXevie-1.0.2 libXext-1 WWW: http://search.cpan.org/dist/Tk-Splashscreen/ Port: misc/screen Moved: sysutils/screen Date: 2005-11-05 Reason: new category |
#cd misc/s
salias/ shared-mime-info/ shuffle-db/ sloccount/ snowflake/ splitvt/ susv2/ seizedesktop/ shc/ since/ sls/ sonytv/ sshbuddy/ susv3/ seq2/ shuffle/ skyutils/ smssend/ spamcalc/ stan/ sword/ |
#cd shells/s
sash/ scponly/ shell-include/ |
#make search name=screen | less
|
#cd sysutils/screen
|
#make install clan
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Options for screen 4.0.3_1 x x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x x x [ ] CJK Treat CJK ambiguous characters as full width x x x x [X] INFO Build and install info documentation x x x x [X] MAN Build and install man pages x x x x [X] NETHACK Enable nethack-style messages x x x x [ ] XTERM_256 Enable support for 256 colour xterm x x x x x x x x x x ... x x x x x x x x tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu x [ OK ] Cancel x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj ===> Options unchanged ===> Vulnerability check disabled, database not found => screen-4.0.3.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from ftp://ftp.uni-erlangen.de/pub/utilities/screen/. ^Cfetch: transfer interrupted |
#make install clen
===> Installing for screen-4.0.3_1 ===> Generating temporary packing list ===> Checking if sysutils/screen already installed ./etc/mkinstalldirs /usr/local/bin `sed < config.h -n -e '/define SCREENENCODINGS/s/^.*"\([^"]*\)"/\1/p'` mkdir /usr/local/share/screen mkdir /usr/local/share/screen/utf8encodings cd doc ; make installdirs install -s -o root -g wheel -m 555 screen /usr/local/bin/screen chown root:wheel /usr/local/bin/screen && chmod 4755 /usr/local/bin/screen cp ./utf8encodings/?? `sed < config.h -n -e '/define SCREENENCODINGS/s/^.*"\([^"]*\)"/\1/p'` ... increased privileges. /usr/local/bin/screen If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.gnu.org/software/screen/ ===> Cleaning for screen-4.0.3_1 |
#screen
|
#wiki/%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0ifconfig
|
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:02:01 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 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#man re
|
#man re
|
#apropos re
BUF_LOCKFREE(9) - destroys a buffer's lock BUF_REFCNT(9) - returns the reference count on a buffer's lock BUS_ADD_CHILD(9) - add a device node to the tree with a given priority BUS_CONFIG_INTR(9) - configure interrupt polarity and trigger mode BUS_READ_IVAR(9), BUS_WRITE_IVAR(9) - manipulate bus-specific device instance variables BUS_SETUP_INTR(9), bus_setup_intr(9), BUS_TEARDOWN_INTR(9), bus_teardown_intr(9) - create, attach and teardown an interrupt handler DECLARE_GEOM_CLASS(9) - GEOM class declaration macro DECLARE_MODULE(9) - kernel module declaration macro DEVICE_IDENTIFY(9) - identify a device, register it GEOM(4) - modular disk I/O request transformation framework ... VOP_READLINK(9) - read the target of a symbolic link VOP_REALLOCBLKS(9) - rearrange blocks in a file to be contiguous VOP_REMOVE(9), VOP_RMDIR(9) - remove a file or directory VOP_RENAME(9) - rename a file VOP_REVOKE(9) - revoke access to a device and its aliases VOP_STRATEGY(9) - read or write a file system buffer _secure_path(3) - determine if a file appears to be secure accf_http(9) - buffer incoming connections until a certain complete HTTP requests arrive acl_create_entry(3) - create a new ACL entry acl_free(3) - free ACL working state |
#apropos re
BUF_LOCKFREE(9) - destroys a buffer's lock BUF_REFCNT(9) - returns the reference count on a buffer's lock BUS_ADD_CHILD(9) - add a device node to the tree with a given priority BUS_CONFIG_INTR(9) - configure interrupt polarity and trigger mode BUS_READ_IVAR(9), BUS_WRITE_IVAR(9) - manipulate bus-specific device instance variables BUS_SETUP_INTR(9), bus_setup_intr(9), BUS_TEARDOWN_INTR(9), bus_teardown_intr(9) - create, attach and teardown an interrupt handler DECLARE_GEOM_CLASS(9) - GEOM class declaration macro DECLARE_MODULE(9) - kernel module declaration macro DEVICE_IDENTIFY(9) - identify a device, register it GEOM(4) - modular disk I/O request transformation framework ... VOP_READLINK(9) - read the target of a symbolic link VOP_REALLOCBLKS(9) - rearrange blocks in a file to be contiguous VOP_REMOVE(9), VOP_RMDIR(9) - remove a file or directory VOP_RENAME(9) - rename a file VOP_REVOKE(9) - revoke access to a device and its aliases VOP_STRATEGY(9) - read or write a file system buffer _secure_path(3) - determine if a file appears to be secure accf_http(9) - buffer incoming connections until a certain complete HTTP requests arrive acl_create_entry(3) - create a new ACL entry acl_free(3) - free ACL working state |
#whatis re
re(4) - RealTek 8139C+/8169/816xS/811xS/8101E PCI/PCIe Ethernet adapter driver vga_unlockvc(3) - re-enables virtual console switching vga_unlockvc(3) - re-enables virtual console switching re(3) - Perl pragma to alter regular expression behaviour |
#whatis re
re(4) - RealTek 8139C+/8169/816xS/811xS/8101E PCI/PCIe Ethernet adapter driver vga_unlockvc(3) - re-enables virtual console switching vga_unlockvc(3) - re-enables virtual console switching re(3) - Perl pragma to alter regular expression behaviour |
#man 4 re
|
#man 4 re
|
#apropos 3Com
bt3cfw(8) - firmware download utility for 3Com Bluetooth PC card driver el(4) - Ethernet driver for 3Com Etherlink 3C501 devices ep(4) - Ethernet driver for 3Com Etherlink III (3c5x9) interfaces ng_bt3c(4) - Netgraph node type that is also a 3Com Bluetooth PC card driver txp(4) - 3Com 3XP Typhoon/Sidewinder (3CR990) Ethernet interface vx(4) - 3Com EtherLink III / Fast EtherLink III (3c59x) Ethernet driver xl(4) - 3Com Etherlink XL and Fast Etherlink XL Ethernet device driver |
#apropos 3Com
bt3cfw(8) - firmware download utility for 3Com Bluetooth PC card driver el(4) - Ethernet driver for 3Com Etherlink 3C501 devices ep(4) - Ethernet driver for 3Com Etherlink III (3c5x9) interfaces ng_bt3c(4) - Netgraph node type that is also a 3Com Bluetooth PC card driver txp(4) - 3Com 3XP Typhoon/Sidewinder (3CR990) Ethernet interface vx(4) - 3Com EtherLink III / Fast EtherLink III (3c59x) Ethernet driver xl(4) - 3Com Etherlink XL and Fast Etherlink XL Ethernet device driver |
#man 4 xl
|
#man 4 xl
|
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:02:01 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 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:02:01 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 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#man plip
|
#man plip
|
#man 4 plip
|
#man 4 plip
|
#man -a plip
|
#man -a plip
|
#man -a plip
|
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:02:01 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 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -a
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:02:01 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 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -u
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -u
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:02:01 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 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:02:01 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 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig re1
re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig re1
re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig re1 192.168.20.1
|
#ifconfig re1 192.168.20.1
|
#ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.20.1 netmask 0xffffff00 broadcast 192.168.20.255 ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.20.1 netmask 0xffffff00 broadcast 192.168.20.255 ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig re1 192.168.20.1 netmask 255.255.255.224
|
#ifconfig re1 192.168.20.1 netmask 255.255.255.224
|
#ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.20.1 netmask 0xffffffe0 broadcast 192.168.20.31 ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.20.1 netmask 0xffffffe0 broadcast 192.168.20.31 ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig re1 192.168.20.1 netmask 255.255.255.
|
#ifconfig re1 192.168.20.1 netmask 255.255.255.
|
#ifconfig re1 192.168.20.1 netmask 255.255.255.224 down
|
#ifconfig re1 192.168.20.1 netmask 255.255.255.224 down
|
#ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.20.1 netmask 0xffffffe0 broadcast 192.168.20.31 ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.20.1 netmask 0xffffffe0 broadcast 192.168.20.31 ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig re0:1 192.168.25.1
ifconfig: interface re0:1 does not exist |
#ifconfig re0:1 192.168.25.1
ifconfig: interface re0:1 does not exist |
#ifconfig re0:1 192.168.25.1
ifconfig: interface re0:1 does not exist |
#ifconfig re0:1 192.168.25.1
ifconfig: interface re0:1 does not exist |
#ifconfig re0 192.168.25.1 -alias
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address |
#ifconfig re0 192.168.25.1 -alias
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address |
#ifconfig re0 192.168.25.1 -alias
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address |
#ifconfig re0 192.168.25.1 -alias
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address |
#ifconfig re0 -alias 192.168.25.1
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address |
#ifconfig re0 -alias 192.168.25.1
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address |
#ifconfig re0 -alias 192.168.25.1
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address |
#ifconfig re0 -alias 192.168.25.1
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address |
#ifconfig re0 alias 192.168.25.1
|
#ifconfig re0 alias 192.168.25.1
|
#ifconfig re0 alias 192.168.25.1
|
#ifconfig re0 alias 192.168.25.1
|
#ifconfig -u
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 inet 192.168.25.1 netmask 0xffffff00 broadcast 192.168.25.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.20.1 netmask 0xffffffe0 broadcast 192.168.20.31 ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -u
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 inet 192.168.25.1 netmask 0xffffff00 broadcast 192.168.25.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.20.1 netmask 0xffffffe0 broadcast 192.168.20.31 ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -u
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 inet 192.168.25.1 netmask 0xffffff00 broadcast 192.168.25.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.20.1 netmask 0xffffffe0 broadcast 192.168.20.31 ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -u
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 inet 192.168.25.1 netmask 0xffffff00 broadcast 192.168.25.255 ether 00:16:3e:00:00:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.20.1 netmask 0xffffffe0 broadcast 192.168.20.31 ether 00:16:3e:00:01:01 media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ping 192.168.25.1
PING 192.168.25.1 (192.168.25.1): 56 data bytes 64 bytes from 192.168.25.1: icmp_seq=0 ttl=64 time=0.054 ms ^C --- 192.168.25.1 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.054/0.054/0.054/0.000 ms |
#ping 192.168.25.1
PING 192.168.25.1 (192.168.25.1): 56 data bytes 64 bytes from 192.168.25.1: icmp_seq=0 ttl=64 time=0.054 ms ^C --- 192.168.25.1 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.054/0.054/0.054/0.000 ms |
#ping 192.168.25.1
PING 192.168.25.1 (192.168.25.1): 56 data bytes 64 bytes from 192.168.25.1: icmp_seq=0 ttl=64 time=0.054 ms ^C --- 192.168.25.1 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.054/0.054/0.054/0.000 ms |
#ping 192.168.25.1
PING 192.168.25.1 (192.168.25.1): 56 data bytes 64 bytes from 192.168.25.1: icmp_seq=0 ttl=64 time=0.054 ms ^C --- 192.168.25.1 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.054/0.054/0.054/0.000 ms |
#ifconfig re0 -alias
|
Время первой команды журнала | 19:23:49 2008- 3-28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:09:57 2008- 3-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.70 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.38 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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