/l3/users/dolgov/nt-bsdadm/fbsd1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 |
|
#kldstat
Id Refs Address Size Name 1 5 0xc0400000 6a29c0 kernel 2 1 0xc0aa3000 58554 acpi.ko 3 1 0xc6642000 3000 snp.ko 5 1 0xc7b23000 a000 netgraph.ko |
#kldunload netgraph
kldunload: can't unload file: Device busy |
#kldunload netgraph
kldunload: can't unload file: Device busy |
#kldstat
Id Refs Address Size Name 1 5 0xc0400000 6a29c0 kernel 2 1 0xc0aa3000 58554 acpi.ko 3 1 0xc6642000 3000 snp.ko 5 1 0xc7b23000 a000 netgraph.ko |
#kldunload snp
|
#kldunload netgraph
kldunload: can't unload file: Device busy |
#kldunload netgraph
kldunload: can't unload file: Device busy |
#kldunload
usage: kldunload [-fv] -i id kldunload [-fv] [-n] name |
#ls /boot/loader.conf
/boot/loader.conf |
#less /boot/loader.conf
|
#less /boot/defaults/loader.conf
|
#tail -f nohup.out
cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa - cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa - cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa - cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa - cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa - cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa - cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa - cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa - cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa - cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa - cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa - cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa - ^C |
#/
bash: /: is a directory |
#tail -f nohup.out
install -o root -g wheel -m 555 wlan_wep.ko /boot/kernel ===> wlan_xauth (install) install -o root -g wheel -m 555 wlan_xauth.ko /boot/kernel ===> xe (install) install -o root -g wheel -m 555 if_xe.ko /boot/kernel ===> xl (install) install -o root -g wheel -m 555 if_xl.ko /boot/kernel ===> zlib (install) install -o root -g wheel -m 555 zlib.ko /boot/kernel kldxref /boot/kernel ^C [1]+ Done nohup sh -c 'make depend && make && make install' |
#top
last pid: 47498; load averages: 0.22, 0.07, 0.08 up 0+23:20:35 14:11:55 1 6 57 processes 0.0 running 0.0 sleepin 0.4 0.4 99.2 2 CPU states: % user, % nice, % system, % interrupt, % idle Mem: 81M Active, 736M Inact, 132M Wired, 29M Cache, 110M Buf, 11M Free 8 nanslp 20 49.22 Swap: 2007M Total, 2007M Free 54 select PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND ... 4872 user 1 96 0 1264K 764K select 0:05 0.00% script 9850 root 1 96 0 1264K 768K select 0:04 0.00% script 4961 user 1 96 0 1264K 768K select 0:04 0.00% script 9886 root 1 8 0 3256K 1912K wait 0:03 0.00% bash 1074 user 1 96 0 1264K 760K select 0:02 0.00% script 427 root 1 96 0 3400K 2252K select 0:02 0.00% sendmail 4997 user 1 8 0 3200K 1428K wait 0:00 0.00% bash 437 root 1 8 0 1312K 920K nanslp 0:00 0.00% cron 5021 user 1 20 0 1944K 1288K pause 0:00 0.00% screen 4958 user 1 20 0 1944K 1284K pause 0:00 0.00% screen |
#cklear
bash: cklear: command not found |
#claer
bash: claer: command not found |
#clear
|
#clear
|
#date
Thu Aug 31 14:21:34 EEST 2006 |
#tail -f nohup.out
install -o root -g wheel -m 555 wlan_wep.ko /boot/kernel ===> wlan_xauth (install) install -o root -g wheel -m 555 wlan_xauth.ko /boot/kernel ===> xe (install) install -o root -g wheel -m 555 if_xe.ko /boot/kernel ===> xl (install) install -o root -g wheel -m 555 if_xl.ko /boot/kernel ===> zlib (install) install -o root -g wheel -m 555 zlib.ko /boot/kernel kldxref /boot/kernel ^C |
#ls /boot/
GENERIC boot1 frames.4th loader.conf pxeboot beastie.4th boot2 kernel loader.help screen.4th boot cdboot kernel.old loader.rc support.4th boot0 defaults loader mbr boot0sio device.hints loader.4th modules |
#shutdown -r now
Shutdown NOW! shutdown: [pid 47777] |
#uname -a
FreeBSD fbsd1.unix.nt 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Thu Aug 31 13:06:40 EEST 2006 user@fbsd1.unix.nt:/usr/src/sys/i386/compile/MYKERNEL i386 |
#ipfw list
65535 allow ip from any to any |
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#make install clean
creating helpers/external_acl/unix_group/Makefile creating helpers/external_acl/wbinfo_group/Makefile creating helpers/external_acl/winbind_group/Makefile creating include/autoconf.h ===> Building for squid-2.5.12_4 Making all in lib source='Array.c' object='Array.o' libtool=no depfile='.deps/Array.Po' tmpdepfile='.deps/Array.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f Array.c || echo './'`Array.c source='base64.c' object='base64.o' libtool=no depfile='.deps/base64.Po' tmpdepfile='.deps/base64.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f base64.c || echo './'`base64.c source='getfullhostname.c' object='getfullhostname.o' libtool=no depfile='.deps/getfullhostname.Po' tmpdepfile='.deps/getfullhostname.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f getfullhostname.c || echo './'`getfullhostname.c source='hash.c' object='hash.o' libtool=no depfile='.deps/hash.Po' tmpdepfile='.deps/hash.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f hash.c || echo './'`hash.c source='heap.c' object='heap.o' libtool=no depfile='.deps/heap.Po' tmpdepfile='.deps/heap.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f heap.c || echo './'`heap.c |
#pkg_version
bash = bitstream-vera = bsdpan-Term-VT102 ! bsdpan-Text-Iconv ! cowsay = cscope = display = expat = fontconfig = freetype2 = ... xorg-fonts-truetype = xorg-fonts-type1 = xorg-fontserver = xorg-libraries = xorg-manpages = xorg-nestserver = xorg-printserver = xorg-server = xorg-vfbserver = xterm = |
#pkg_version
bash = bitstream-vera = bsdpan-Term-VT102 ! bsdpan-Text-Iconv ! cowsay = cscope = display = expat = fontconfig = freetype2 = ... xorg-fonts-truetype = xorg-fonts-type1 = xorg-fontserver = xorg-libraries = xorg-manpages = xorg-nestserver = xorg-printserver = xorg-server = xorg-vfbserver = xterm = |
#pkg_version -v
bash-3.1.10_1 = up-to-date with port bitstream-vera-1.10_2 = up-to-date with port bsdpan-Term-VT102-0.82 ! Comparison failed bsdpan-Text-Iconv-1.4 ! Comparison failed cowsay-3.03_1 = up-to-date with port cscope-15.5_1 = up-to-date with port display-1.2a = up-to-date with port expat-2.0.0_1 = up-to-date with port fontconfig-2.3.2_3,1 = up-to-date with port freetype2-2.1.10_3 = up-to-date with port ... xorg-fonts-truetype-6.9.0 = up-to-date with port xorg-fonts-type1-6.9.0 = up-to-date with port xorg-fontserver-6.9.0_1 = up-to-date with port xorg-libraries-6.9.0 = up-to-date with port xorg-manpages-6.9.0 = up-to-date with port xorg-nestserver-6.9.0 = up-to-date with port xorg-printserver-6.9.0 = up-to-date with port xorg-server-6.9.0_1 = up-to-date with port xorg-vfbserver-6.9.0 = up-to-date with port xterm-206_1 = up-to-date with port |
#pkg_info vim
pkg_info: can't find package 'vim' installed or in a file! |
#pkg_info vim-6.4.6_1
Information for vim-6.4.6_1: Comment: Vi "workalike", with many additional features Description: Vim is a virtually compatible, extreamly enhanced, version of the UNIX text editor vi. There are a lot of enhancements above Vi: multi level undo, multi-windows and buffers, syntax highlighting, command line editing, filename completion, on-line help, visual selection, etc.. Many features above standard vi's have been added: ... column/rectangular blocks), syntax highlighting, on-line help, etc. Embeded Perl, Tcl, and Python support. See ":help vi_diff" for a summary of the differences between Vim and Vi. An X-windows aware or a full X-windows GUI version can also be built that allows full use of the mouse and pull-down menus See http://www.vim.org/why.html for a full explanation of Vim's features. Portability to all UNIX platforms, AmigaOS, Archimedes, Atari MiNT, BeOS, M$-DOS, MacOS, OS/2, VMS, WinNT+Win95. -- David (obrien@cs.ucdavis.edu) WWW: http://www.vim.org/ |
#pkg_info vim-6.4.6_1 | less
|
#pkg_info -L vim-6.4.6_1 | less
|
#pkg_info -D vim-6.4.6_1 | less
|
#cd /usr/ports
|
#make search name=wine
Port: winefish-1.3.2.6 Path: /usr/ports/editors/winefish Info: A LaTeX editor based on BlueFish Maint: nivit@email.it B-deps: ORBit2-2.12.5_2 aspell-0.60.4_3 atk-1.10.3_1 bitstream-vera-1.10_2 cairo-1.0.2_2 docbook-sk-4.1.2_3 docbook-xml-4.2_1 docbook-xsl-1.69.1_1 esound-0.2.36_1 expat-2.0.0_1 fontconfig-2.3.2_3,1 freetype2-2.1.10_3 gamin-0.1.7_2 gconf2-2.12.1_1 gettext-0.14.5_2 glib-2.8.6_1 gmake-3.80_2 gnome-icon-theme-2.12.1_2 gnomehier-2.0_7 gnomekeyring-0.4.7_1 gnomemimedata-2.4.2 gnomevfs2-2.12.2_2 gtk-2.8. R-deps: ORBit2-2.12.5_2 Xaw3d-1.5E_1 amspsfnt-1.0_3 aspell-0.60.4_3 atk-1.10.3_1 bitstream-vera-1.10_2 cairo-1.0.2_2 cmpsfont-1.0_4 desktop-file-utils-0.10_4 docbook-sk-4.1.2_3 docbook-xml-4.2_1 docbook-xsl-1.69.1_1 dvipsk-tetex-5.95a_1 esound-0.2.36_1 expat-2.0.0_1 fontconfig-2.3.2_3,1 freetype2-2.1.10_3 gamin-0.1.7_2 gconf2-2.12.1_1 gd-2.0.33_4,1 gettext-0.14.5_2 ghostscript-gnu-7.07_15 glib-2.8 WWW: http://winefish.berlios.de/ Port: linux-winetools-1.30_1 Path: /usr/ports/emulators/linux-winetools Info: A setup and configuration tool for WINE Maint: ports@FreeBSD.org B-deps: R-deps: expat-2.0.0_1 fontconfig-2.3.2_3,1 freetype2-2.1.10_3 lcms-1.14_1,1 libdrm-2.0_1 libglut-6.4.1 linux-XFree86-libs-4.3.99.902_7 linux-expat-1.95.7 linux-fontconfig-2.2.3_2 linux_base-8-8.0_14 pkgconfig-0.20 wine-0.9.8,1 xorg-libraries-6.9.0 WWW: http://www.von-thadden.de/Joachim/WineTools/ Port: wine-0.9.8,1 Path: /usr/ports/emulators/wine Info: Microsoft Windows compatibility layer for Unix-like systems Maint: gerald@FreeBSD.org B-deps: bison-1.75_2,1 expat-2.0.0_1 fontconfig-2.3.2_3,1 freetype2-2.1.10_3 gettext-0.14.5_2 gmake-3.80_2 lcms-1.14_1,1 libdrm-2.0_1 libglut-6.4.1 libiconv-1.9.2_2 m4-1.4.4 pkgconfig-0.20 xorg-libraries-6.9.0 R-deps: expat-2.0.0_1 fontconfig-2.3.2_3,1 freetype2-2.1.10_3 lcms-1.14_1,1 libdrm-2.0_1 libglut-6.4.1 pkgconfig-0.20 xorg-libraries-6.9.0 WWW: http://www.winehq.com/ |
#make search name=wine | less
|
#pkg_info vim
pkg_info: can't find package 'vim' installed or in a file! |
#pkg_info -x vim
Information for vim-6.4.6_1: Comment: Vi "workalike", with many additional features Description: Vim is a virtually compatible, extreamly enhanced, version of the UNIX text editor vi. There are a lot of enhancements above Vi: multi level undo, multi-windows and buffers, syntax highlighting, command line editing, filename completion, on-line help, visual selection, etc.. Many features above standard vi's have been added: ... column/rectangular blocks), syntax highlighting, on-line help, etc. Embeded Perl, Tcl, and Python support. See ":help vi_diff" for a summary of the differences between Vim and Vi. An X-windows aware or a full X-windows GUI version can also be built that allows full use of the mouse and pull-down menus See http://www.vim.org/why.html for a full explanation of Vim's features. Portability to all UNIX platforms, AmigaOS, Archimedes, Atari MiNT, BeOS, M$-DOS, MacOS, OS/2, VMS, WinNT+Win95. -- David (obrien@cs.ucdavis.edu) WWW: http://www.vim.org/ |
#pkg_info -xL vim
/usr/local/share/vim/vim64/syntax/sinda.vim /usr/local/share/vim/vim64/syntax/sindacmp.vim /usr/local/share/vim/vim64/syntax/sindaout.vim /usr/local/share/vim/vim64/syntax/skill.vim /usr/local/share/vim/vim64/syntax/sl.vim /usr/local/share/vim/vim64/syntax/slang.vim /usr/local/share/vim/vim64/syntax/slice.vim /usr/local/share/vim/vim64/syntax/slrnrc.vim /usr/local/share/vim/vim64/syntax/slrnsc.vim /usr/local/share/vim/vim64/syntax/sm.vim ... /usr/local/share/vim/vim64/tutor/tutor.pl /usr/local/share/vim/vim64/tutor/tutor.pl.cp1250 /usr/local/share/vim/vim64/tutor/tutor.ru /usr/local/share/vim/vim64/tutor/tutor.ru.cp1251 /usr/local/share/vim/vim64/tutor/tutor.sk /usr/local/share/vim/vim64/tutor/tutor.sv /usr/local/share/vim/vim64/tutor/tutor.vim /usr/local/share/vim/vim64/tutor/tutor.zh.big5 /usr/local/share/vim/vim64/tutor/tutor.zh.euc /usr/local/share/vim/vim64/vimrc_example.vim |
#pkg_info -xL vim | grep /etc
|
#pkg_info -xL squid | grep /etc
/usr/local/etc/squid/errors/Simplify_Chinese/ERR_TOO_BIG /usr/local/etc/squid/errors/Simplify_Chinese/ERR_UNSUP_REQ /usr/local/etc/squid/errors/Simplify_Chinese/ERR_URN_RESOLVE /usr/local/etc/squid/errors/Simplify_Chinese/ERR_WRITE_ERROR /usr/local/etc/squid/errors/Simplify_Chinese/ERR_ZERO_SIZE_OBJECT /usr/local/etc/squid/errors/Slovak/ERR_ACCESS_DENIED /usr/local/etc/squid/errors/Slovak/ERR_CACHE_ACCESS_DENIED /usr/local/etc/squid/errors/Slovak/ERR_CACHE_MGR_ACCESS_DENIED /usr/local/etc/squid/errors/Slovak/ERR_CANNOT_FORWARD /usr/local/etc/squid/errors/Slovak/ERR_CONNECT_FAIL ... /usr/local/etc/squid/errors/Turkish/ERR_FTP_UNAVAILABLE /usr/local/etc/squid/errors/Turkish/ERR_INVALID_REQ /usr/local/etc/squid/errors/Turkish/ERR_INVALID_RESP /usr/local/etc/squid/errors/Turkish/ERR_INVALID_URL /usr/local/etc/squid/errors/Turkish/ERR_LIFETIME_EXP /usr/local/etc/squid/errors/Turkish/ERR_NO_RELAY /usr/local/etc/squid/errors/Turkish/ERR_ONLY_IF_CACHED_MISS /usr/local/etc/squid/errors/Turkish/ERR_READ_ERROR /usr/local/etc/squid/errors/Turkish/ERR_READ_TIMEOUT /usr/local/etc/squid/errors/Turkish/ERR_SHUTTING_DOWN |
#pkg_info -xL squid | grep /etc | grep -v error
/usr/local/etc/rc.d/squid.sh /usr/local/etc/squid/cachemgr.conf.default /usr/local/etc/squid/mib.txt /usr/local/etc/squid/mime.conf.default /usr/local/etc/squid/msntauth.conf.default /usr/local/etc/squid/squid.conf.default /usr/local/etc/squid/icons/anthony-binhex.gif /usr/local/etc/squid/icons/anthony-bomb.gif /usr/local/etc/squid/icons/anthony-box.gif /usr/local/etc/squid/icons/anthony-box2.gif ... /usr/local/etc/squid/icons/anthony-ps.gif /usr/local/etc/squid/icons/anthony-quill.gif /usr/local/etc/squid/icons/anthony-script.gif /usr/local/etc/squid/icons/anthony-sound.gif /usr/local/etc/squid/icons/anthony-tar.gif /usr/local/etc/squid/icons/anthony-tex.gif /usr/local/etc/squid/icons/anthony-text.gif /usr/local/etc/squid/icons/anthony-unknown.gif /usr/local/etc/squid/icons/anthony-xbm.gif /usr/local/etc/squid/icons/anthony-xpm.gif |
#pkg_info -xL squid | grep /etc | egrep -v 'icons|errors'
/usr/local/etc/rc.d/squid.sh /usr/local/etc/squid/cachemgr.conf.default /usr/local/etc/squid/mib.txt /usr/local/etc/squid/mime.conf.default /usr/local/etc/squid/msntauth.conf.default /usr/local/etc/squid/squid.conf.default |
#pkg_info -xD squid
Information for squid-2.5.12_4: |
#pkg_info -xD vim
Information for vim-6.4.6_1: Install notice: SECURITY NOTE: The VIM software has had several remote vulnerabilities discovered within VIM's modeline support. It allowed remote attackers to execute arbitrary code as the user running VIM. All known problems have been fixed, but the FreeBSD Security Team advises that VIM users use 'set nomodeline' in ~/.vimrc to avoid the possibility of trojaned text files. |
#pkg_info -s /usr/local/etc/squid/mib.txt
tar: Unrecognized archive format: Inappropriate file type or format pkg_info: tar extract of /usr/local/etc/squid/mib.txt failed! pkg_info: error during unpacking, no info for '/usr/local/etc/squid/mib.txt' available |
#pkg_info -S /usr/local/etc/squid/mib.txt
pkg_info: illegal option -- S usage: pkg_info [-bcdDEfgGiIjkKLmopPqQrRsvVxX] [-e package] [-l prefix] [-t template] -a | pkg-name ... pkg_info [-qQ] -W filename pkg_info [-qQ] -O origin pkg_info |
#pkg_info -W /usr/local/etc/squid/mib.txt
/usr/local/etc/squid/mib.txt was installed by package squid-2.5.12_4 |
#/usr/local/bin/
a2p libpng-config pod2text autopoint libpng12-config pod2usage bash lynx podchecker bashbug msgattrib podselect c2ph msgcat prove cowsay msgcmp psed cowthink msgcomm pstruct cpan msgconv pydoc cscope msgen pydoc2.4 display msgexec python ... eview msginit rgview evim msgmerge rgvim find2perl msgunfmt rview freetype-config msguniq rvim gettext ngettext s2p gettext.sh ocs screen gettextize perl smtpd.py glib-config perl-after-upgrade smtpd2.4.py glib12-config perl5 splain gview perl5.8.8 sudo |
#/usr/local/bin/cpan
^C |
#pkg_info -W /usr/local/bin/cpan
/usr/local/bin/cpan was installed by package perl-5.8.8 |
#whatis cpan
cpan: nothing appropriate |
#man cpan
|
#/etc/periodic/weekly/
120.clean-kvmdb 320.whatis 340.noid 999.local 310.locate 330.catman 400.status-pkg |
#/etc/periodic/weekly/320.whatis
.cvsignore archivers/ emulators/ math/ security/ CHANGES astro/ finance/ mbone/ shells/ COPYRIGHT audio/ french/ misc/ sysutils/ INDEX-6 benchmarks/ ftp/ multimedia/ textproc/ KNOBS biology/ games/ net/ ukrainian/ LEGAL cad/ german/ net-im/ vietnamese/ MOVED chinese/ graphics/ net-mgmt/ www/ Makefile comms/ hebrew/ net-p2p/ x11/ Mk/ converters/ hungarian/ news/ x11-clocks/ README databases/ irc/ palm/ x11-fm/ Templates/ deskutils/ japanese/ polish/ x11-fonts/ Tools/ devel/ java/ portuguese/ x11-servers/ UPDATING distfiles/ korean/ print/ x11-themes/ accessibility/ dns/ lang/ russian/ x11-toolkits/ arabic/ editors/ mail/ science/ x11-wm/ |
#/etc/periodic/weekly/320.whatis
Rebuilding whatis database: |
#whatis cpan
cpan(1) - easily interact with CPAN from the command line perlmodinstall(1) - Installing CPAN Modules CPAN(3) - query, download and build perl modules from CPAN site s CPAN::FirstTime(3) - Utility for CPAN::Config file Initialization CPAN::Nox(3) - Wrapper around CPAN.pm without using any XS module |
#pkg_delete
.cvsignore archivers/ emulators/ math/ security/ CHANGES astro/ finance/ mbone/ shells/ COPYRIGHT audio/ french/ misc/ sysutils/ INDEX-6 benchmarks/ ftp/ multimedia/ textproc/ KNOBS biology/ games/ net/ ukrainian/ LEGAL cad/ german/ net-im/ vietnamese/ MOVED chinese/ graphics/ net-mgmt/ www/ Makefile comms/ hebrew/ net-p2p/ x11/ Mk/ converters/ hungarian/ news/ x11-clocks/ README databases/ irc/ palm/ x11-fm/ Templates/ deskutils/ japanese/ polish/ x11-fonts/ Tools/ devel/ java/ portuguese/ x11-servers/ UPDATING distfiles/ korean/ print/ x11-themes/ accessibility/ dns/ lang/ russian/ x11-toolkits/ arabic/ editors/ mail/ science/ x11-wm/ |
#pkg_delete squid
pkg_delete: no such package 'squid' installed |
#ls /usr/local/
.snap/ etc/ info/ libdata/ man/ share/ www/ bin/ include/ lib/ libexec/ sbin/ squid/ |
#ls /usr/local/
.snap/ etc/ info/ libdata/ man/ share/ www/ bin/ include/ lib/ libexec/ sbin/ squid/ |
#ls /usr/local/etc/
lynx.cfg rc.d/ sudoers lynx.cfg.default screenrc sudoers.default pam.d/ squid/ sudoers.sample |
#ls /usr/local/etc/squid/
cachemgr.conf mib.txt msntauth.conf.default cachemgr.conf.default mime.conf squid.conf errors/ mime.conf.default squid.conf.default icons/ msntauth.conf |
#ls /usr/local/etc/squid/
cachemgr.conf mib.txt msntauth.conf.default cachemgr.conf.default mime.conf squid.conf errors/ mime.conf.default squid.conf.default icons/ msntauth.conf |
#vi /usr/local/etc/squid/squid.conf
|
#pkg_delete -x squid
===> post-deinstallation information for squid-2.5.12_4 Note: squid related user accounts and groups were not removed. To remove the 'squid' user and the 'squid' group which were created by a default installation of this package, run pw userdel -r -n squid -u 100 |
#cd /usr/ports/www/squid
|
#make package
source='base64.c' object='base64.o' libtool=no depfile='.deps/base64.Po' tmpdepfile='.deps/base64.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f base64.c || echo './'`base64.c source='getfullhostname.c' object='getfullhostname.o' libtool=no depfile='.deps/getfullhostname.Po' tmpdepfile='.deps/getfullhostname.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f getfullhostname.c || echo './'`getfullhostname.c source='hash.c' object='hash.o' libtool=no depfile='.deps/hash.Po' tmpdepfile='.deps/hash.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f hash.c || echo './'`hash.c source='heap.c' object='heap.o' libtool=no depfile='.deps/heap.Po' tmpdepfile='.deps/heap.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f heap.c || echo './'`heap.c source='html_quote.c' object='html_quote.o' libtool=no depfile='.deps/html_quote.Po' tmpdepfile='.deps/html_quote.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f html_quote.c || echo './'`html_quote.c source='iso3307.c' object='iso3307.o' libtool=no depfile='.deps/iso3307.Po' tmpdepfile='.deps/iso3307.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f iso3307.c || echo './'`iso3307.c source='md5.c' object='md5.o' libtool=no depfile='.deps/md5.Po' tmpdepfile='.deps/md5.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f md5.c || echo './'`md5.c source='radix.c' object='radix.o' libtool=no depfile='.deps/radix.Po' tmpdepfile='.deps/radix.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f radix.c || echo './'`radix.c source='rfc1035.c' object='rfc1035.o' libtool=no depfile='.deps/rfc1035.Po' tmpdepfile='.deps/rfc1035.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f rfc1035.c || echo './'`rfc1035.c source='rfc1123.c' object='rfc1123.o' libtool=no depfile='.deps/rfc1123.Po' tmpdepfile='.deps/rfc1123.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f rfc1123.c || echo './'`rfc1123.c ... source='multicast.c' object='multicast.o' libtool=no depfile='.deps/multicast.Po' tmpdepfile='.deps/multicast.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f multicast.c || echo './'`multicast.c source='neighbors.c' object='neighbors.o' libtool=no depfile='.deps/neighbors.Po' tmpdepfile='.deps/neighbors.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f neighbors.c || echo './'`neighbors.c source='net_db.c' object='net_db.o' libtool=no depfile='.deps/net_db.Po' tmpdepfile='.deps/net_db.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f net_db.c || echo './'`net_db.c source='Packer.c' object='Packer.o' libtool=no depfile='.deps/Packer.Po' tmpdepfile='.deps/Packer.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f Packer.c || echo './'`Packer.c source='pconn.c' object='pconn.o' libtool=no depfile='.deps/pconn.Po' tmpdepfile='.deps/pconn.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f pconn.c || echo './'`pconn.c source='peer_digest.c' object='peer_digest.o' libtool=no depfile='.deps/peer_digest.Po' tmpdepfile='.deps/peer_digest.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f peer_digest.c || echo './'`peer_digest.c source='peer_select.c' object='peer_select.o' libtool=no depfile='.deps/peer_select.Po' tmpdepfile='.deps/peer_select.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f peer_select.c || echo './'`peer_select.c source='redirect.c' object='redirect.o' libtool=no depfile='.deps/redirect.Po' tmpdepfile='.deps/redirect.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f redirect.c || echo './'`redirect.c source='referer.c' object='referer.o' libtool=no depfile='.deps/referer.Po' tmpdepfile='.deps/referer.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f referer.c || echo './'`referer.c source='refresh.c' object='refresh.o' libtool=no depfile='.deps/refresh.Po' tmpdepfile='.deps/refresh.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f refresh.c || echo './'`refresh.c |
#pkg_add -r cvsup
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/cvsup.tbz... Done. |
#ls
Makefile pkg-deinstall squid-2.5.12_4.tbz distinfo pkg-descr work files pkg-install |
#cd /roor
bash: cd: /roor: No such file or directory |
#cd /root
|
#cp /usr/share/examples/
BSD_daemon/ drivers/ mdoc/ scsi_target/ FreeBSD_version/ etc/ netgraph/ ses/ IPv6/ find_interface/ nwclient/ slattach/ atm/ ibcs2/ perfmon/ sliplogin/ bc/ ipfilter/ pf/ smbfs/ bootforth/ ipfw/ portal/ startslip/ cvs/ isdn/ ppi/ sunrpc/ cvsup/ kld/ ppp/ tcsh/ dialog/ libdialog/ pppd/ diskless/ libvgl/ printing/ |
#cp /usr/share/examples/cvs
cvs/ cvsup/ |
#cp /usr/share/examples/cvs
cvs/ cvsup/ |
#cp /usr/share/examples/cvsup/
README gnats-supfile refuse.README www-supfile cvs-supfile ports-supfile stable-supfile doc-supfile refuse standard-supfile |
#cp /usr/share/examples/cvsup/ports-supfile .
|
#vi ports-supfile
51c51 < *default host=CHANGE_THIS.FreeBSD.org --- > *default host=ftp7.ua.FreeBSD.org |
#cvsup -g -L2 ports-supfile
Checkout ports/audio/aacgain/files/patch-faad2_libfaad_common.h Checkout ports/audio/aacgain/pkg-descr Edit ports/audio/abcde/Makefile Add delta 1.28 2006.04.05.21.04.26 jmelo Add delta 1.29 2006.05.03.05.14.08 edwin Edit ports/audio/abcmidi/Makefile Add delta 1.29 2006.08.07.10.05.17 miwi Edit ports/audio/ac3dec/Makefile Add delta 1.10 2006.05.03.05.14.08 edwin Add delta 1.11 2006.07.07.00.35.51 ahze ... Edit ports/audio/aube/files/patch-configure Add delta 1.2 2006.07.10.21.07.51 itetcu Delete ports/audio/aube/files/patch-src::Makefile.in Checkout ports/audio/aube/files/patch-src__modules__delay.c Checkout ports/audio/aube/files/patch-src__modules__filter_reslp.c Checkout ports/audio/aube/files/patch-src__modules__general_mixer.c Checkout ports/audio/aube/files/patch-src__modules__klavier.c Checkout ports/audio/aube/files/patch-src__modules__minimaube.c Checkout ports/audio/aube/files/patch-src__modules__panner.c Checkout ports/audio/aube/files/patch-src__modules__panner4.c |
Время первой команды журнала | 12:51:31 2006- 8-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:30:14 2006- 8-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 28.71 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.81 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.93 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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