/l3/users/14-06-2010/nt-lnet/debian4.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 |
|
#mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported SIOCGMIIPHY on 'eth1' failed: Operation not supported SIOCGMIIPHY on 'eth2' failed: Operation not supported no MII interfaces found |
#ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:16:3f:00:01:04 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#nameif ^C
![]() |
#nameif inet 00:16:3f:00:01:04
|
#nameif inet 00:16:3f:00:01:04^C
![]() |
#vim /etc/ethers
![]() |
#vim /etc/nameif
![]() |
#vim /etc/mactab
![]() --- /dev/null 2010-06-13 23:12:55.120700305 +0300 +++ /etc/mactab 2010-06-14 11:59:35.000000000 +0300 @@ -0,0 +1 @@ +inet 00:16:3f:00:01:04 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:04 inet addr:192.168.16.4 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:366250 errors:0 dropped:0 overruns:0 frame:0 TX packets:393224 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:61642654 (58.7 MiB) TX bytes:1325359017 (1.2 GiB) eth0:1 Link encap:Ethernet HWaddr 00:16:3e:00:00:04 inet addr:192.168.16.5 Bcast:192.168.16.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:436 (436.0 B) TX bytes:436 (436.0 B) |
#vim /etc/network/interfaces
--- /tmp/l3-saved-2879.27953.13611 2010-06-14 11:59:58.000000000 +0300 +++ /etc/network/interfaces 2010-06-14 12:00:09.000000000 +0300 @@ -7,7 +7,7 @@ netmask 255.255.255.0 gateway 192.168.16.254 -iface eth1 inet static +iface inet inet static address 10.0.0.1 netmask 255.255.255.0 pre-up ifconfig hw ether 00:16:3f:00:01:04 |
#vim /etc/udev/rules.d/
|
#ssh 192.168.16.254
(3c59x) th1"I device 0x10b7:0x9200 (3c59x) 12 SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:04:76:a1:ef:bb", NAME="ee ( ) AME="eth2" device 0011d80001919497 (o{ci1394)} NN 15 SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:11:d8:00:01:91:94:97", NN (3c59x) th3"I device 0x10b7:0x9200 (3c59x) 18 SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:04:75:75:46:b1", NAME="ee "/etc/udev/rules.d/70-persisten(e1000e)les" 20L, 935C b9:7f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"7e:: !debian:~# debian:~# debian:~# debian:~# exit logout Connection to 192.168.16.254 closed. |
#reboot
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:04 inet addr:192.168.16.4 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1717 errors:0 dropped:0 overruns:0 frame:0 TX packets:1285 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:156652 (152.9 KiB) TX bytes:2452495 (2.3 MiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:04 inet addr:192.168.16.4 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1769 errors:0 dropped:0 overruns:0 frame:0 TX packets:1356 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:160404 (156.6 KiB) TX bytes:2531455 (2.4 MiB) eth1 Link encap:Ethernet HWaddr 00:16:3e:00:01:04 BROADCAST MULTICAST MTU:1500 Metric:1 ... collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#vim /etc/network/interfaces
|
#~
|
#ifconfig -a | less
|
#/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning). Reconfiguring network interfaces...ether: Unknown host ifconfig: `--help' gives usage information. Failed to bring up eth1. done. |
#ifconfig -a | less
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:04 inet addr:192.168.16.4 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:279 errors:0 dropped:0 overruns:0 frame:0 TX packets:381 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:19678 (19.2 KiB) TX bytes:654609 (639.2 KiB) eth1 Link encap:Ethernet HWaddr 00:16:3f:00:01:04 inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0 ... collisions:0 txqueuelen:1000 RX bytes:300 (300.0 B) TX bytes:510 (510.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#nameif
|
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:04 inet addr:192.168.16.4 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:577 errors:0 dropped:0 overruns:0 frame:0 TX packets:837 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:41654 (40.6 KiB) TX bytes:889287 (868.4 KiB) eth2 Link encap:Ethernet HWaddr 00:16:3e:00:02:04 BROADCAST MULTICAST MTU:1500 Metric:1 ... collisions:0 txqueuelen:1000 RX bytes:300 (300.0 B) TX bytes:510 (510.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#ip link set inet up
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:04 inet addr:192.168.16.4 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:823 errors:0 dropped:0 overruns:0 frame:0 TX packets:1225 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:59876 (58.4 KiB) TX bytes:1095858 (1.0 MiB) inet Link encap:Ethernet HWaddr 00:16:3f:00:01:04 inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0 ... collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:238 (238.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#reboot
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:04 inet addr:192.168.16.4 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3443 errors:0 dropped:0 overruns:0 frame:0 TX packets:3039 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:284699 (278.0 KiB) TX bytes:4214456 (4.0 MiB) eth1 Link encap:Ethernet HWaddr 00:16:3f:00:01:04 inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0 ... collisions:0 txqueuelen:1000 RX bytes:300 (300.0 B) TX bytes:510 (510.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#reboot
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:04 inet addr:192.168.16.4 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2755 errors:0 dropped:0 overruns:0 frame:0 TX packets:2451 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:240617 (234.9 KiB) TX bytes:2869679 (2.7 MiB) inet Link encap:Ethernet HWaddr 00:16:3f:00:01:04 inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0 ... collisions:0 txqueuelen:1000 RX bytes:160 (160.0 B) TX bytes:468 (468.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) vlc ./1\ *.avi --sout '#duplicate{dst=display,dst=standard{access=udp,mux=ts,dst=[fe80::222:69ff:fe17:1245%wlan0]}' --xvideo-display :0 |
#ssh 192.168.16.254
293 vlc ./3\ <D1>%81е<D1>%80и<D1>%8F\ -\ Те<D1>%85нологии\ богов.avi 294 vlc ./4\ <D1>%81е<D1>%80и<D1>%8F\ -\ <D0>%9Fои<D1>%81к\ знаний\ богов.avi 329 vlc ./5\ <D1>%81е<D1>%80и<D1>%8F\ -\ <D0>%9Bогика\ наобо<D1>%80о<D1>%82.avi 333 vlc ./6\ <D1>%81е<D1>%80и<D1>%8F\ -\ <D0>%92еликий\ <D1>%82<D1>%80ан<D1>%81<D1>%84о<D1>%80ма<D1>%82о<D1>%80.avi 359 vlc ./House.M.D.s06e20.WEB-DL.720.rus.LostFilm.TV.mkv 360 vlc ./MyDoc/Lost.s06e16.rus.LostFilm.TV.avi 365 vlc ./_Lost.s06e17e18_.avi 499 history | grep vlc 501 history | grep vlc 502 history | grep vlc | less 0 bash 12:26 [detached from 6303.pts-0.debian] debian:~# exit logout Connection to 192.168.16.254 closed. |
#ssh 192.168.16.24
The authenticity of host '192.168.16.24 (192.168.16.24)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.24' (DSA) to the list of known hosts. Password: Last login: Sun Jun 13 23:09:48 2010 from debian.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:04 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:4e:00:01:04 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:4e:00:02:04 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 10.0.0.2
|
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:04 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 10.0.0.2 netmask 0xff000000 broadcast 10.255.255.255 ether 00:16:4e:00:01:04 ... re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:02:04 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 |
#ip link set re1 down
![]() bash: ip: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#LANG=C
|
#ip link set re1 down
![]() bash: ip: command not found |
#dc /usr/ports/
dc: 0 unimplemented dc: 0204 unimplemented dc: 02 unimplemented dc: 0 unimplemented dc: 014 unimplemented dc: 0 unimplemented dc: 04 unimplemented dc: 01 unimplemented dc: 0 unimplemented dc: 0 unimplemented ... dc: 0 unimplemented dc: 0 unimplemented dc: 0 unimplemented dc: 0 unimplemented dc: 0 unimplemented dc: 0 unimplemented dc: 0 unimplemented dc: 0 unimplemented dc: 0 unimplemented dc: 0 unimplemented |
#pwd
/root |
#cdr/ports/
|
#man dc
|
#make search name-ip
![]() The search target requires a keyword parameter or name parameter, e.g.: "make search key=somekeyword" or "make search name=somekeyword" make: don't know how to make name-ip. Stop |
#make search name=p
Port: bzip-0.21 Path: /usr/ports/archivers/bzip Info: A block-sorting file compressor Maint: jmelo@FreeBSD.org B-deps: R-deps: WWW: Port: bzip2-1.0.4 Path: /usr/ports/archivers/bzip2 Info: A block-sorting file compressor ... Date: 2007-07-08 Reason: Chase move of databases/rrdtool Port: print/ghostscript-afpl Moved: print/ghostscript-gpl Date: 2007-09-24 Reason: Replaced by print/ghostscript-gpl Port: print/ghostscript-afpl-nox11 Moved: print/ghostscript-gpl-nox11 Date: 2007-09-24 Reason: Replaced by print/ghostscript-gpl-nox11 |
#cd net
![]() net/ net-im/ net-mgmt/ net-p2p/ |
#cd net
![]() net/ net-im/ net-mgmt/ net-p2p/ |
#cd net/
![]() Display all 981 possibilities? (y or n) 3proxy/ p5-Net-ParseWhois/ 44bsd-rdist/ p5-Net-Patricia/ 6tunnel/ p5-Net-Pcap/ AquaGatekeeper/ p5-Net-PcapUtils/ AquaGatekeeper2/ p5-Net-Ping/ DarwinStreamingServer/ p5-Net-Ping-External/ GeoIP/ p5-Net-RTP/ Makefile p5-Net-Radius/ Sockets/ p5-Net-Random/ ... ntlmaps/ tintin++-devel/ ntop/ tinyfugue/ ntp/ tinyldap/ ntp-devel/ tn5250/ ntraceroute/ tptest/ nusoap/ traceroute/ nvnet/ traff/ nxserver/ traffic/ nylon/ trafshow/ ocaml-netclient/ trafshow3/ |
#wherei ip
![]() bash: wherei: command not found |
#whereisp
ip: |
#cd
|
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:04 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 10.0.0.2 netmask 0xff000000 broadcast 10.255.255.255 ether 00:16:4e:00:01:04 ... re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:02:04 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 -h
![]() ifconfig: illegal option -- h usage: ifconfig [-L] [-C] interface address_family [address [dest_address]] [parameters] ifconfig interface create ifconfig -a [-L] [-C] [-d] [-m] [-u] [-v] [address_family] ifconfig -l [-d] [-u] [address_family] ifconfig [-L] [-C] [-d] [-m] [-u] [-v] |
#man ifconfig
|
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:04 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 10.0.0.2 netmask 0xff000000 broadcast 10.255.255.255 ether 00:16:4e:00:01:04 ... re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:02:04 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 -a
|
#kld
![]() kldconfig kldload kldstat kldunload kldxref |
#kldstat
Id Refs Address Size Name 1 3 0xc0400000 7b2d2c kernel 2 1 0xc4930000 2000 fire_saver.ko |
#man -a re
|
#m
![]() Display all 139 possibilities? (y or n) |
#m
![]() Display all 139 possibilities? (y or n) |
#m
![]() bash: m: command not found |
#PACKAGESITE=ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ol
![]() releases/i386/6.3-RELEASE/packages/All/ pkg_add -r sudo-1.6.9.6.tbz d-releases/i386/6.3-RELEASE/packages/All/ pkg_add -r ^C i-16.1h_3.tb ^CSignal 2 received, cleaning up.. |
#man ifconfig
|
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:04 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 10.0.0.2 netmask 0xff000000 broadcast 10.255.255.255 ether 00:16:4e:00:01:04 ... re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:02:04 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 re2
re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:02:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#man ifconfig
|
#Pattern not found (press RETURN)
![]() ifconfig: illegal option -- h usage: ifconfig [-L] [-C] interface address_family [address [dest_address]] [parameters] ifconfig interface create ifconfig -a [-L] [-C] [-d] [-m] [-u] [-v] [address_family] ifconfig -l [-d] [-u] [address_family] ifconfig [-L] [-C] [-d] [-m] [-u] [-v] |
#ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 10.0.0.2 netmask 0xff000000 broadcast 10.255.255.255 ether 00:16:4e:00:01:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig re1 hw ether
![]() ifconfig: hw: bad value |
#ifconfig re1 hw ether 00:16:4f00:01:04
![]() ifconfig: hw: bad value |
#ifconfig re1 hw 00:16:4f:00:01:04
![]() ifconfig: hw: bad value |
#cd /usr/ports/shells/bash-completion/
|
#make install
install -o root -g wheel -m 444 /usr/ports/shells/bash-completion/work/bash_completion/bash_completion /usr/local/etc The programmable completion library is not enabled by default for various reasons. To use it, you should source /usr/local/etc/bash_completion from your .bashrc file. For example: if [ -f /usr/local/etc/bash_completion ]; then . /usr/local/etc/bash_completion fi ===> Registering installation for bash-completion-20060301_2 |
#. /usr/local/etc/bash_completion
|
#ifconfig re1
![]() Makefile distinfo files/ pkg-descr work/ |
#ifconfig re1
Makefile distinfo files/ pkg-descr work/ |
#cd
|
#man ifconfig
|
#man ifconfig
|
#ifconfig re1 link16:4f:00:01:04
|
#ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 10.0.0.2 netmask 0xff000000 broadcast 10.255.255.255 ether 00:16:4f:00:01:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#vim /etc/rc.local
|
#~
inetd_enable=yes ifconfig_re0="inet 192.168.16.250 netmask 255.255.255.0" defaultrouter="192.168.16.254" hostname="fbsdvm.unix.nt" ~ ~ ~ ~ ~ 1 change; before #1 3 seconds ago |
#vim /etc/rc.conf
|
#grep ifconfig /etc/defaults/rc.conf
pccard_ifconfig="NO" # Specialized pccard ethernet configuration (or NO). pfsync_ifconfig="" # Additional options to ifconfig(8) for pfsync ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. #ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry. #ifconfig_ed0_ipx="ipx 0x00010010" # Sample IPX address family entry. #ifconfig_fxp0_name="net0" # Change interface name from fxp0 to net0. #gifconfig_gif0="10.1.1.1 10.1.2.1" # Examples typically for a router. #gifconfig_gif1="10.1.1.2 10.1.2.2" # Examples typically for a router. #ipv6_ifconfig_ed0="fec0:0:0:5::1 prefixlen 64" # Sample manual assign entry #ipv6_ifconfig_ed0_alias0="fec0:0:0:5::2 prefixlen 64" # Sample alias entry. |
#vim /etc/rc.conf
|
#/etc/rc.d/ne
![]() netif netoptions network_ipv6 newsyslog |
#/etc/rc.d/netif
![]() Usage: /etc/rc.d/netif [fast|force|one](start|stop|restart|rcvar|cloneup|clonedown) |
#/etc/rc.d/netif restart
Stopping network:ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address lo0 re0 re1 re2 plip0. ifconfig: link: bad value 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 re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:04 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 172.16.0.1 netmask 0xffffff00 broadcast 172.16.0.255 ether 00:16:4f:00:01:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#vim /etc/rc.conf
|
#ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 172.16.0.1 netmask 0xffffff00 broadcast 172.16.0.255 ether 00:16:4f:00:01:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:04 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 172.16.0.1 netmask 0xffffff00 broadcast 172.16.0.255 ether 00:16:4f:00:01:04 ... re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:02:04 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 |
#/etc/rc.d/netif restart
Stopping network:ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address lo0 re0 re1 re2 plip0. ifconfig: link: bad value 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 re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:04 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 172.16.0.1 netmask 0xffffff00 broadcast 172.16.0.255 ether 00:16:4f:00:01:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#vim /etc/rc.conf
|
#ifconfig_re1="inet 10.0.0
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 172.16.0.1 netmask 0xffffff00 broadcast 172.16.0.255 ether 00:16:4f:00:01:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#vim /etc/rc.conf
|
#/etc/rc.d/netif restart
Stopping network:ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address lo0 re0 re1 re2 plip0. 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 re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:04 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 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255 inet 172.16.0.1 netmask 0xffffff00 broadcast 172.16.0.255 ether 00:16:4f:00:01:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig re1 link 00:16:4e00:01:04
|
#ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255 inet 172.16.0.1 netmask 0xffffff00 broadcast 172.16.0.255 ether 00:16:4e:00:01:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
Время первой команды журнала | 10:45:36 2010- 6-14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:46:00 2010- 6-14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 14.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.01 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.66 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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)