/l3/trainings/nt-bsdnet/2005-11-21/fbsd1.linux.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 |
|
#hostname
fbsd1.linux.nt |
#dmesg | less
|
#dmesg | grep -i ether
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xc000-0xc07f mem 0xdd000000-0xdd00007f irq 16 at device 0.0 on pci1 xl0: Ethernet address: 00:0a:01:d4:d1:e3 xl1: <3Com 3c905-TX Fast Etherlink XL> port 0xc400-0xc43f irq 18 at device 2.0 on pci1 xl1: Ethernet address: 00:60:08:13:79:2a |
#man xl
|
#whatis xl
xl(4) - 3Com Etherlink XL and Fast Etherlink XL Ethernet device driver |
#grep device.*xl /sys/con
conf/ contrib/ |
#grep device.*xl /sys/i386/conf/GENERIC
device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') |
#grep device.*emsys/i386/conf/GENERIC
device mly # Mylex AcceleRAID/eXtremeRAID device em # Intel PRO/1000 adapter Gigabit Ethernet Card device nge # NatSemi DP83820 gigabit Ethernet device sis # Silicon Integrated Systems SiS 900/SiS 7016 device cs # Crystal Semiconductor CS89x0 NIC device md # Memory "disks" |
#dmesg | grep -i ether
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xc000-0xc07f mem 0xdd000000-0xdd00007f irq 16 at device 0.0 on pci1 xl0: Ethernet address: 00:0a:01:d4:d1:e3 xl1: <3Com 3c905-TX Fast Etherlink XL> port 0xc400-0xc43f irq 18 at device 2.0 on pci1 xl1: Ethernet address: 00:60:08:13:79:2a |
#ifconfig -l
xl0 xl1 plip0 lo0 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::20a:1ff:fed4:d1e3%xl0 prefixlen 64 scopeid 0x1 inet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:0a:01:d4:d1:e3 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::260:8ff:fe13:792a%xl1 prefixlen 64 scopeid 0x2 ether 00:60:08:13:79:2a 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 |
#dd if=/dev/zero of=/dev/null &
[1] 779 |
#dd if=/dev/zero of=/dev/null &
[2] 788 |
#dd if=/dev/zero of=/dev/null &
[3] 797 |
#uptime
11:13AM up 9 mins, 2 users, load averages: 0.66, 0.19, 0.10 |
#uptime
11:13AM up 9 mins, 2 users, load averages: 0.66, 0.19, 0.10 |
#uptime
11:13AM up 9 mins, 2 users, load averages: 1.02, 0.28, 0.13 |
#top
last pid: 833; load averages: 1.18, 0.33, 0.15 up 0+00:09:32 11:14:04 26 processes37.5 running 0.0 sleepin61.8 0.7 0.0 676 59 CPU states: % user, % nice, % system, % interrupt, % idle Mem: 6520K Active, 4868K Inact, 18M Wired, 9408K Buf, 960M Free 8 10 32.52 Swap: 2007M Total, 2008M Free 9 32.15 8 9 31.74 716 96 6076K 3096K select 00% sshd 589 1260K 820 cript ... 585 root 1 5 0 1264K 928K ttyin 0:00 0.00% getty 588 root 1 5 0 1264K 928K ttyin 0:00 0.00% getty 584 root 1 5 0 1264K 928K ttyin 0:00 0.00% getty 587 root 1 5 0 1264K 928K ttyin 0:00 0.00% getty 586 root 1 5 0 1264K 928K ttyin 0:00 0.00% getty 582 root 1 5 0 1264K 928K ttyin 0:00 0.00% getty 465 root 1 96 0 3352K 2464K select 0:00 0.00% sshd 475 smmsp 1 20 0 3296K 2724K pause 0:00 0.00% sendmail 412 root 1 96 0 1208K 772K select 0:00 0.00% usbd 547 root 1 109 0 1208K 716K select 0:00 0.00% moused |
#uptime
11:14AM up 9 mins, 2 users, load averages: 1.33, 0.37, 0.17 |
#uptime
11:14AM up 9 mins, 2 users, load averages: 1.58, 0.46, 0.20 ^[OA |
#uptime
11:14AM up 9 mins, 2 users, load averages: 1.78, 0.52, 0.22 |
#top
last pid: 872; load averages: 2.52, 0.91, 0.38 up 0+00:10:39 11:15:11 26 processes35.3 running 0.0 sleepin63.9 0.8 0.0 684 60 59 CPU states: % user, % nice, % system, % interrupt, % idle Mem: 6532K Active, 4856K Inact, 18M Wired, 9408K Buf, 960M Free 79 4 32 32.36 Swa97 2007M Total, 2024M Free 31 32.27 88 24 32 32.26 PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 797 root 1 120 0 1196K 700K RUN 0:21 32.42% dd ... 585 root 1 5 0 1264K 928K ttyin 0:00 0.00% getty 588 root 1 5 0 1264K 928K ttyin 0:00 0.00% getty 584 root 1 5 0 1264K 928K ttyin 0:00 0.00% getty 587 root 1 5 0 1264K 928K ttyin 0:00 0.00% getty 586 root 1 5 0 1264K 928K ttyin 0:00 0.00% getty 582 root 1 5 0 1264K 928K ttyin 0:00 0.00% getty 465 root 1 96 0 3352K 2464K select 0:00 0.00% sshd 475 smmsp 1 20 0 3296K 2724K pause 0:00 0.00% sendmail 412 root 1 96 0 1208K 772K select 0:00 0.00% usbd 547 root 1 109 0 1208K 716K select 0:00 0.00% moused |
#uptime
11:15AM up 10 mins, 2 users, load averages: 2.56, 0.95, 0.40 |
#uptime
11:15AM up 10 mins, 2 users, load averages: 2.60, 0.98, 0.41 |
#uptime
11:15AM up 10 mins, 2 users, load averages: 2.63, 1.01, 0.43 |
#uptime
11:15AM up 10 mins, 2 users, load averages: 2.63, 1.01, 0.43 |
#uptime
11:15AM up 11 mins, 2 users, load averages: 2.75, 1.17, 0.50 |
#uptime
11:15AM up 11 mins, 2 users, load averages: 2.77, 1.20, 0.52 |
#uptime
11:15AM up 11 mins, 2 users, load averages: 2.77, 1.20, 0.52 |
#uptime
11:15AM up 11 mins, 2 users, load averages: 2.77, 1.20, 0.52 |
#uptime
11:15AM up 11 mins, 2 users, load averages: 2.77, 1.20, 0.52 |
#uptime
11:15AM up 11 mins, 2 users, load averages: 2.77, 1.20, 0.52 |
#uptime
11:16AM up 11 mins, 2 users, load averages: 2.87, 1.25, 0.54 |
#uptime
11:16AM up 11 mins, 2 users, load averages: 2.87, 1.25, 0.54 |
#killall dd
[1] Terminated: 15 dd if=/dev/zero of=/dev/null [2]- Terminated: 15 dd if=/dev/zero of=/dev/null [3]+ Terminated: 15 dd if=/dev/zero of=/dev/null |
#fstat
root bash 619 255 /dev 99 crw--w---- ttyp0 rw root script 589 root / 2 drwxr-xr-x 512 r root script 589 wd / 32901 drwxr-xr-x 512 r root script 589 text /usr 353542 -r-xr-xr-x 6980 r root script 589 0 /dev 60 crw------- ttyv0 rw root script 589 1 /dev 60 crw------- ttyv0 rw root script 589 2 /dev 60 crw------- ttyv0 rw root script 589 3 / 32964 -rw-r--r-- 2876 w root script 589 4 /dev 98 crw-rw-rw- ptyp0 rw root script 589 5 /dev 99 crw--w---- ttyp0 rw ... root devd 308 4* local stream c2682000 root adjkerntz 167 root / 2 drwxr-xr-x 512 r root adjkerntz 167 wd / 2 drwxr-xr-x 512 r root adjkerntz 167 text / 12 -r-xr-xr-x 6728 r root adjkerntz 167 0 - - bad - root adjkerntz 167 1 - - bad - root adjkerntz 167 2 - - bad - root init 1 root / 2 drwxr-xr-x 512 r root init 1 wd / 2 drwxr-xr-x 512 r root init 1 text / 49 -r-x------ 474576 r |
#fstat | wc
200 1788 13665 |
#cd ~/.lilalo/
# -- sysinstall generated deltas -- # Sat Nov 19 18:07:57 2005 # Created: Sat Nov 19 18:07:57 2005 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter="192.168.15.254" font8x14="cp866-8x14" font8x16="cp866b-8x16" font8x8="cp866-8x8" hostname="fbsd1.linux.nt" ... saver="blank" scrnmap="koi8-r2cp866" sshd_enable="YES" usbd_enable="YES" ~ ~ ~ ~ ~ ~ |
#ls
.report.dat 325T1_10:11:11__root_.bash__profile.diff 325T1_11:01:55__etc_rc_conf.diff 325T1_11:02:09__etc_rc.conf.diff l3-agent.pid lab report.xml ttyp0-1150.info ttyp0-1150.script ttyp0-2371.info ttyp0-2371.script ttyp0-623.info ttyp0-623.script ttyp0-993.info ttyp0-993.script ttyp1-718.info ttyp1-718.script ttyv0-1565.info ttyv0-1565.script ttyv0-589.info ttyv0-589.script |
#ls *.info
ttyp0-1150.info ttyp0-623.info ttyp1-718.info ttyv0-589.info ttyp0-2371.info ttyp0-993.info ttyv0-1565.info |
#grep host *
# -- sysinstall generated deltas -- # Sat Nov 19 18:07:57 2005 # Created: Sat Nov 19 18:07:57 2005 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter="192.168.15.254" font8x14="cp866-8x14" font8x16="cp866b-8x16" font8x8="cp866-8x8" hostname="fbsd1.linux.nt" ... saver="blank" scrnmap="koi8-r2cp866" sshd_enable="YES" usbd_enable="YES" ~ ~ ~ ~ ~ ~ |
#grep host *.info
ttyp0-1150.info:<hostname></hostname> ttyp0-2371.info:<hostname>fbsd1.linux.nt</hostname> ttyp0-623.info:<hostname></hostname> ttyp0-993.info:<hostname></hostname> ttyp1-718.info:<hostname></hostname> ttyv0-1565.info:<hostname></hostname> ttyv0-589.info:<hostname></hostname> |
#startx
exit xauth: creating new authority file /root/.Xauthority xauth: creating new authority file /root/.Xauthority 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 fbsd1.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 ... New driver is "i810" (==) Using default built-in configuration (53 lines) (EE) Failed to load module "fbdev" (module does not exist, 0) X connection to :0.0 broken (explicit kill or server shutdown). xterm: fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0" X connection to :0.0 broken (explicit kill or server shutdown). login: 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 xterm: fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0" FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing. |
#w
exit 11:50AM up 45 mins, 2 users, load averages: 0.02, 0.01, 0.03 USER TTY FROM LOGIN@ IDLE WHAT root v0 - 11:48AM 1 script -t 0 -q /root/.lilalo/ttyv0-2648 root p1 192.168.15.254 11:50AM - script -t 0 -q /root/.lilalo/ttyp1-2709 |
#top
last pid: 3038; load averages: 0.18, 0.07, 0.04 up 0+00:50:58 11:55:30 2 43 45 processes68.3 running 0.0 sleepin 2.4 0.0 29.3 3 CPU states: % user, % nice, % system, % interrupt, % idle Mem: 42M Active, 9752K Inact, 32M Wired, 23M Buf, 905M Free 984 8 6892K 5620K nanslp 2 9.64% perl5.8.7 S2373 2007M Total, 20 8M Free 7184K 5852K nanslp 0:13 5.03% perl5.8.7 711 8 6944K 5644K nanslp 03 4.83 650 8 40K 5640K nanslp 3 4.79 ... 2799 root 1 96 0 5040K 4080K select 0:00 0.00% xterm-static 2057 root 1 96 0 3416K 2944K select 0:00 0.00% sendmail 2803 root 1 96 0 5024K 3988K select 0:00 0.00% xterm-static 2802 root 1 96 0 5032K 4072K select 0:00 0.00% xterm-static 2984 root 1 8 0 6872K 5604K nanslp 0:00 0.00% perl5.8.7 2800 root 1 96 0 3120K 2476K select 0:00 0.00% twm 2709 root 1 96 0 1260K 820K select 0:00 0.00% script 2806 root 1 97 0 1260K 824K select 0:00 0.00% script 2824 root 1 97 0 1260K 824K select 0:00 0.00% script 2804 root 1 96 0 1260K 824K select 0:00 0.00% script |
#ls
.Xauthority .cshrc .gnome2_private .lilalo xorg.conf.new .bash_history .gconf .gstreamer-0.8 .login .bash_profile .gconfd .history .profile .bashrc .gnome2 .k5login .ssh |
#cp xorg.conf.new /etc/x11/xorg.conf
cp: /etc/x11/xorg.conf: No such file or directory |
#ee xorg.conf.new
|
#cp xorg.conf.new /etc/X11/xorg.conf
|
#xorgcfg
Fatal server error: Server is already active for display 8 If this server is no longer running, remove /tmp/.X8-lock and start again. Please consult the The X.Org Foundation support at http://wiki.X.Org for help. Failed to run "X -configure". |
#rm /tmp/,X8-lock
rm: /tmp/,X8-lock: No such file or directory |
#rm /tmp/.X8-lock
|
#xorgcfg
_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error: Cannot establish any listening sockets - Make sure an X server isn't already running Please consult the The X.Org Foundation support at http://wiki.X.Org for help. Please also check the log file at "/var/log/Xorg.8.log" for additional information. Failed to run "X -configure". |
#cp xorg.conf.new /etc/X11/xorg.conf
|
#ee /etc/X11/xorg.conf
45a46,47 > HorizSync 30-70 > VertRefresh 50-75 |
#ee /etc/X11/xorg.conf
|
#startx
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 fbsd1.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:04:38 2005 (==) Using config file: "/etc/X11/xorg.conf" [drm] failed to load kernel module "i915" (EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI. login: fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0" X connection to :0.0 broken (explicit kill or server shutdown). 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. |
#ee /etc/X11/xorg.conf
75a76 > DefaultDepth 24 98a100 > Modes "1152x864" "1024x768" "800x600" "640x480" |
#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 fbsd1.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:32 2005 (==) Using config file: "/etc/X11/xorg.conf" [drm] failed to load kernel module "i915" (EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI. 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. |
#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 fbsd1.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:15:11 2005 (==) Using config file: "/etc/X11/xorg.conf" [drm] failed to load kernel module "i915" (EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI. SetClientVersion: 0 8 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. |
#startkde
startkde: Starting up... startkde: Running kpersonalizer... /usr/X11R6/bin/iceauth: creating new authority file /root/.ICEauthority QFont::setPointSize: Point size <= 0 (-3) kbuildsycoca running... QFont::setPointSize: Point size <= 0 (-3) kbuildsycoca: WARNING: '/usr/local/share/applications/kde/kpovmodeler.desktop' specifies undefined mimetype/servicetype 'KPovModeler/Document' kbuildsycoca: WARNING: 'kfile_ooo.desktop' specifies undefined mimetype/servicetype 'application/vnd.sun.xml.writer.global' kbuildsycoca: WARNING: 'kfile_ooo.desktop' specifies undefined mimetype/servicetype 'application/vnd.sun.xml.writer.math' kbuildsycoca: WARNING: 'klinkstatus_part.desktop' specifies undefined mimetype/servicetype 'text/english' ... Minor opcode: 0 Resource id: 0x60000b X Error: BadWindow (invalid Window parameter) 3 Major opcode: 6 Minor opcode: 0 Resource id: 0x60000b startkde: Shutting down... klauncher: Exiting on signal 1 startkde: Running shutdown scripts... startkde: Done. |
#ee /root/.xinitrc
0a1 > startkde |
#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 fbsd1.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:19:16 2005 (==) Using config file: "/etc/X11/xorg.conf" [drm] failed to load kernel module "i915" (EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI. SetClientVersion: 0 8 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. |
#startkde
startkde: Starting up... kbuildsycoca running... kdecore (KLibLoader): WARNING: KLibrary: Undefined symbol "init_kdnssd" KWrited - Listening on Device /dev/ttyp5 >> running as realtime process now (priority 15) X Error: BadWindow (invalid Window parameter) 3 Major opcode: 7 Minor opcode: 0 Resource id: 0x1600005 X Error: BadWindow (invalid Window parameter) 3 ... Resource id: 0x1a0000b X Error: BadWindow (invalid Window parameter) 3 Major opcode: 6 Minor opcode: 0 Resource id: 0x1a0000b kio (KDirWatch): WARNING: KDirWatch::removeDir can't handle 'Office/kword.desktop' startkde: Shutting down... klauncher: Exiting on signal 1 startkde: Running shutdown scripts... startkde: Done. |
#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 fbsd1.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, ... X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 Minor opcode: 0 Resource id: 0x1e00005 kio (KDirWatch): WARNING: KDirWatch::removeDir can't handle 'Office/kword.desktop' startkde: Shutting down... klauncher: Exiting on signal 1 startkde: Running shutdown scripts... startkde: Done. waiting for X server to shut down FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing. |
#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 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 73 xl0 127.0.0.1 127.0.0.1 UH 0 49 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.121/32 link#1 UC 0 0 xl0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 1941 xl0 1195 Internet6: Destination Gateway Flags Netif Expire ... fe80::20a:1ff:fed4:d1e3%xl0 00:0a:01:d4:d1:e3 UHL lo0 fe80::%xl1/64 link#2 UC xl1 fe80::260:8ff:fe13:792a%xl1 00:60:08:13:79:2a UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01::/32 ::1 U lo0 ff02::/16 ::1 UGRS lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%xl1/32 link#2 UC xl1 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 -rn -f inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 73 xl0 127.0.0.1 127.0.0.1 UH 0 49 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.121/32 link#1 UC 0 0 xl0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 1971 xl0 1150 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 73 xl0 127.0.0.1 127.0.0.1 UH 0 49 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.121/32 link#1 UC 0 0 xl0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 1991 xl0 1077 Internet6: Destination Gateway Flags Netif Expire ... fe80::20a:1ff:fed4:d1e3%xl0 00:0a:01:d4:d1:e3 UHL lo0 fe80::%xl1/64 link#2 UC xl1 fe80::260:8ff:fe13:792a%xl1 00:60:08:13:79:2a UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01::/32 ::1 U lo0 ff02::/16 ::1 UGRS lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%xl1/32 link#2 UC xl1 ff02::%lo0/32 ::1 UC lo0 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 73 xl0 127.0.0.1 127.0.0.1 UH 0 49 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.121/32 link#1 UC 0 0 xl0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 2001 xl0 870 Internet6: Destination Gateway Flags Netif Expire ... fe80::20a:1ff:fed4:d1e3%xl0 00:0a:01:d4:d1:e3 UHL lo0 fe80::%xl1/64 link#2 UC xl1 fe80::260:8ff:fe13:792a%xl1 00:60:08:13:79:2a UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01::/32 ::1 U lo0 ff02::/16 ::1 UGRS lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%xl1/32 link#2 UC xl1 ff02::%lo0/32 ::1 UC lo0 |
#route add 192.168.17.0/24 192.168.15.22
add net 192.168.17.0: gateway 192.168.15.22 |
#man netstat
|
#man netstat
|
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::20a:1ff:fed4:d1e3%xl0 prefixlen 64 scopeid 0x1 inet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255 inet 192.168.15.121 netmask 0xffffffff broadcast 192.168.15.121 ether 00:0a:01:d4:d1:e3 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::260:8ff:fe13:792a%xl1 prefixlen 64 scopeid 0x2 ether 00:60:08:13:79:2a 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.21
|
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 73 xl0 127.0.0.1 127.0.0.1 UH 0 49 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.22 link#1 UHLW 2 0 xl0 192.168.15.121/32 link#1 UC 0 0 xl0 192.168.15.254 00:0a:01:d4:d1:39 UHLW 2 2344 xl0 1195 192.168.16 link#2 UC 0 0 xl1 ... fe80::20a:1ff:fed4:d1e3%xl0 00:0a:01:d4:d1:e3 UHL lo0 fe80::%xl1/64 link#2 UC xl1 fe80::260:8ff:fe13:792a%xl1 00:60:08:13:79:2a UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01::/32 ::1 U lo0 ff02::/16 ::1 UGRS lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%xl1/32 link#2 UC xl1 ff02::%lo0/32 ::1 UC lo0 |
#route add 192.168.17.0/24 192.168.15.12
route: writing to routing socket: File exists add net 192.168.17.0: gateway 192.168.15.122: route already in table |
#ping 192.168.1.122
PING 192.168.1.122 (192.168.1.122): 56 data bytes ^C --- 192.168.1.122 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.17122
PING 192.168.17.122 (192.168.17.122): 56 data bytes 64 bytes from 192.168.17.122: icmp_seq=0 ttl=64 time=0.430 ms 64 bytes from 192.168.17.122: icmp_seq=1 ttl=64 time=0.325 ms 64 bytes from 192.168.17.122: icmp_seq=2 ttl=64 time=0.276 ms 64 bytes from 192.168.17.122: icmp_seq=3 ttl=64 time=0.235 ms 64 bytes from 192.168.17.122: icmp_seq=4 ttl=64 time=0.278 ms 64 bytes from 192.168.17.122: icmp_seq=5 ttl=64 time=0.238 ms ^C --- 192.168.17.122 ping statistics --- 6 packets transmitted, 6 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.235/0.297/0.430/0.067 ms |
#traceroute68.17.122
traceroute to 192.168.17.122 (192.168.17.122), 64 hops max, 40 byte packets 1 192.168.17.122 (192.168.17.122) 0.465 ms 0.471 ms 0.434 ms |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::20a:1ff:fed4:d1e3%xl0 prefixlen 64 scopeid 0x1 inet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255 inet 192.168.15.121 netmask 0xffffffff broadcast 192.168.15.121 ether 00:0a:01:d4:d1:e3 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::260:8ff:fe13:792a%xl1 prefixlen 64 scopeid 0x2 inet 192.168.16.21 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:60:08:13:79:2a 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.16.0/24 192.168.15.2
route: writing to routing socket: File exists add net 192.168.16.0: gateway 192.168.15.22: route already in table |
#route add 192.168.18.0/24 192.168.15.23
add net 192.168.18.0: gateway 192.168.15.23 |
#ping 192.168.18.23
PING 192.168.18.23 (192.168.18.23): 56 data bytes 64 bytes from 192.168.18.23: icmp_seq=0 ttl=64 time=0.271 ms 64 bytes from 192.168.18.23: icmp_seq=1 ttl=64 time=0.233 ms 64 bytes from 192.168.18.23: icmp_seq=2 ttl=64 time=0.247 ms ^C --- 192.168.18.23 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.233/0.250/0.271/0.016 ms |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 77 xl0 127.0.0.1 127.0.0.1 UH 0 49 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.22 00:04:75:c0:a0:a2 UHLW 2 39 xl0 926 192.168.15.23 00:01:01:01:01:01 UHLW 2 16 xl0 955 192.168.15.24 00:04:76:a1:f0:00 UHLW 1 5 xl0 952 192.168.15.121/32 link#1 UC 0 0 xl0 ... fe80::20a:1ff:fed4:d1e3%xl0 00:0a:01:d4:d1:e3 UHL lo0 fe80::%xl1/64 link#2 UC xl1 fe80::260:8ff:fe13:792a%xl1 00:60:08:13:79:2a UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01::/32 ::1 U lo0 ff02::/16 ::1 UGRS lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%xl1/32 link#2 UC xl1 ff02::%lo0/32 ::1 UC lo0 |
#route delete 192.168.18.0/24
delete net 192.168.18.0 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 77 xl0 127.0.0.1 127.0.0.1 UH 0 49 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.22 00:04:75:c0:a0:a2 UHLW 2 39 xl0 892 192.168.15.23 00:01:01:01:01:01 UHLW 1 16 xl0 921 192.168.15.24 00:04:76:a1:f0:00 UHLW 1 5 xl0 1192 192.168.15.121/32 link#1 UC 0 0 xl0 ... fe80::20a:1ff:fed4:d1e3%xl0 00:0a:01:d4:d1:e3 UHL lo0 fe80::%xl1/64 link#2 UC xl1 fe80::260:8ff:fe13:792a%xl1 00:60:08:13:79:2a UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01::/32 ::1 U lo0 ff02::/16 ::1 UGRS lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%xl1/32 link#2 UC xl1 ff02::%lo0/32 ::1 UC lo0 |
#route add 192.168.18.0/24 192.168.15.22
add net 192.168.18.0: gateway 192.168.15.22 |
Время первой команды журнала | 10:11:20 2006-11-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:51:49 2006-11-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 10.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.67 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.62 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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