/l3/trainings/nt-ladm/2006-01-23/linux4.linux.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#еtail -f nohup.out
![]() CC [M] drivers/i2c/busses/i2c-via.o CC [M] drivers/i2c/busses/i2c-viapro.o CC [M] drivers/i2c/busses/i2c-voodoo3.o LD drivers/i2c/chips/built-in.o CC [M] drivers/i2c/chips/eeprom.o CC [M] drivers/i2c/chips/pcf8574.o CC [M] drivers/i2c/chips/pcf8591.o CC [M] drivers/i2c/chips/rtc8564.o LD drivers/i2c/built-in.o CC [M] drivers/i2c/i2c-core.o ... LD drivers/isdn/act2000/built-in.o CC [M] drivers/isdn/act2000/module.o CC [M] drivers/isdn/act2000/capi.o CC [M] drivers/isdn/act2000/act2000_isa.o LD [M] drivers/isdn/act2000/act2000.o LD drivers/isdn/capi/built-in.o CC [M] drivers/isdn/capi/kcapi.o CC [M] drivers/isdn/capi/capiutil.o CC [M] drivers/isdn/capi/capilib.o CC [M] drivers/isdn/capi/kcapi_proc.o |
#tail -f nohup.out
![]() drivers/isdn/hisax/hscx_irq.c: In function `hscx_interrupt': drivers/isdn/hisax/hscx_irq.c:201: warning: comparison is always 1 due to width of bit-field CC [M] drivers/isdn/hisax/avm_a1p.o In file included from drivers/isdn/hisax/avm_a1p.c:140: drivers/isdn/hisax/hscx_irq.c: In function `hscx_interrupt': drivers/isdn/hisax/hscx_irq.c:201: warning: comparison is always 1 due to width of bit-field CC [M] drivers/isdn/hisax/avm_pci.o drivers/isdn/hisax/avm_pci.c: In function `HDLC_irq': drivers/isdn/hisax/avm_pci.c:431: warning: comparison is always 1 due to width of bit-field CC [M] drivers/isdn/hisax/elsa.o ... CC [M] drivers/isdn/hisax/icc.o CC [M] drivers/isdn/hisax/hfcscard.o CC [M] drivers/isdn/hisax/hfc_2bds0.o drivers/isdn/hisax/hfc_2bds0.c: In function `hfc_fill_fifo': drivers/isdn/hisax/hfc_2bds0.c:318: warning: comparison is always 1 due to width of bit-field CC [M] drivers/isdn/hisax/hfc_pci.o drivers/isdn/hisax/hfc_pci.c: In function `hfcpci_fill_fifo': drivers/isdn/hisax/hfc_pci.c:654: warning: comparison is always 1 due to width of bit-field drivers/isdn/hisax/hfc_pci.c:717: warning: comparison is always 1 due to width of bit-field CC [M] drivers/isdn/hisax/hfc_sx.o |
#tail -f nohup.out
![]() CC [M] drivers/media/dvb/frontends/mt312.o CC [M] drivers/media/dvb/frontends/ves1820.o CC [M] drivers/media/dvb/frontends/ves1x93.o CC [M] drivers/media/dvb/frontends/tda1004x.o CC [M] drivers/media/dvb/frontends/sp887x.o CC [M] drivers/media/dvb/frontends/nxt6000.o CC [M] drivers/media/dvb/frontends/mt352.o CC [M] drivers/media/dvb/frontends/tda10021.o CC [M] drivers/media/dvb/frontends/stv0297.o CC [M] drivers/media/dvb/frontends/or51211.o CC [M] drivers/media/dvb/frontends/s5h1420.o CC [M] drivers/media/dvb/frontends/lgdt330x.o LD drivers/media/dvb/pluto2/built-in.o LD drivers/media/dvb/ttpci/built-in.o CC [M] drivers/media/dvb/ttpci/budget-core.o CC [M] drivers/media/dvb/ttpci/budget.o |
#make menuconfig
![]() |
#ps -aux
![]() |
#ps -aux | grep make
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 5220 0.0 0.1 5788 1528 pts/2 S 15:50 0:00 make root 14725 0.0 0.0 4768 824 pts/2 S 16:07 0:00 make -f scripts/Makefile.build obj=drivers root 25149 0.0 0.0 4628 984 pts/2 S 16:28 0:00 make -f scripts/Makefile.build obj=drivers/net root 25295 0.2 0.0 5096 852 pts/2 S 16:28 0:00 make -f scripts/Makefile.build obj=drivers/net/irda root 25406 0.0 0.0 5528 728 pts/2 S 16:29 0:00 grep make |
#tail -f nohup.out
![]() CC [M] drivers/net/irda/tekram-sir.o CC [M] drivers/net/irda/actisys-sir.o CC [M] drivers/net/irda/litelink-sir.o CC [M] drivers/net/irda/girbil-sir.o CC [M] drivers/net/irda/old_belkin-sir.o CC [M] drivers/net/irda/mcp2120-sir.o CC [M] drivers/net/irda/act200l-sir.o CC [M] drivers/net/irda/ma600-sir.o LD drivers/net/ixgb/built-in.o CC [M] drivers/net/ixgb/ixgb_main.o CC [M] drivers/net/ixgb/ixgb_hw.o CC [M] drivers/net/ixgb/ixgb_ee.o CC [M] drivers/net/ixgb/ixgb_ethtool.o |
#tail -f nohup.out
![]() CC drivers/pnp/isapnp/proc.o LD drivers/pnp/isapnp/built-in.o CC drivers/pnp/pnpacpi/core.o CC drivers/pnp/pnpacpi/rsparser.o LD drivers/pnp/pnpacpi/built-in.o LD drivers/pnp/built-in.o LD drivers/scsi/aacraid/built-in.o CC [M] drivers/scsi/aacraid/linit.o CC [M] drivers/scsi/aacraid/aachba.o CC [M] drivers/scsi/aacraid/commctrl.o CC [M] drivers/scsi/aacraid/comminit.o CC [M] drivers/scsi/aacraid/commsup.o |
#tail -f nohup.out
![]() LD drivers/usb/net/built-in.o CC [M] drivers/usb/net/catc.o CC [M] drivers/usb/net/kaweth.o CC [M] drivers/usb/net/pegasus.o CC [M] drivers/usb/net/rtl8150.o CC [M] drivers/usb/net/asix.o CC [M] drivers/usb/net/cdc_ether.o CC [M] drivers/usb/net/net1080.o CC [M] drivers/usb/net/zaurus.o CC [M] drivers/usb/net/usbnet.o LD drivers/usb/serial/built-in.o CC [M] drivers/usb/serial/usb-serial.o |
#tail -f nohup.out
![]() CC [M] sound/isa/gus/gus_main.o CC [M] sound/isa/gus/gus_io.o CC [M] sound/isa/gus/gus_irq.o CC [M] sound/isa/gus/gus_timer.o CC [M] sound/isa/gus/gus_mem.o CC [M] sound/isa/gus/gus_mem_proc.o CC [M] sound/isa/gus/gus_dram.o CC [M] sound/isa/gus/gus_dma.o CC [M] sound/isa/gus/gus_volume.o CC [M] sound/isa/gus/gus_pcm.o CC [M] sound/isa/gus/gus_mixer.o CC [M] sound/isa/gus/gus_uart.o CC [M] sound/isa/gus/gus_reset.o CC [M] sound/isa/gus/gus_synth.o |
#tail -f nohup.out
![]() CC [M] net/atm/lec.o CC [M] net/atm/pppoatm.o LD net/bluetooth/built-in.o CC [M] net/bluetooth/af_bluetooth.o CC [M] net/bluetooth/hci_core.o CC [M] net/bluetooth/hci_conn.o CC [M] net/bluetooth/hci_event.o CC [M] net/bluetooth/hci_sock.o CC [M] net/bluetooth/hci_sysfs.o CC [M] net/bluetooth/lib.o LD [M] net/bluetooth/bluetooth.o CC [M] net/bluetooth/l2cap.o |
#rpm -qi `which grep`
![]() пакет /bin/grep не установлен |
#rpm -qi 'which grep'
![]() пакет which grep не установлен |
#rpm -qf `which grep`
grep-2.5.1-26 |
#rpm -qfi `which grep`
Name : grep Relocations: /usr Version : 2.5.1 Vendor: (none) Release : 26 Build Date: Суб 10 Июл 2004 03:28:47 Install Date: Птн 20 Янв 2006 07:14:26 Build Host: pylesos.asp-linux.com.ua Group : Приложения/Работа с текстами Source RPM: grep-2.5.1-26.src.rpm Size : 432693 License: GPL Signature : DSA/SHA1, Вто 26 Окт 2004 16:18:59, Key ID c96aa8e69b3c94f4 Summary : Утилита поиска по шаблону grep. Description : Версия GNU для широко используемых утилит grep. Grep просматривает текстовый входной поток на наличие строк, содержащих совпадение с заданным шаблоном и выводит данные строки. Утилиты GNU grep содержат grep, egrep и fgrep. Установите grep, так как это необходимая утилита для поиска по тексту. |
#rpm -qlf `which grep`
/bin/egrep /bin/fgrep /bin/grep /usr/share/doc/grep-2.5.1 /usr/share/doc/grep-2.5.1/ABOUT-NLS /usr/share/doc/grep-2.5.1/AUTHORS /usr/share/doc/grep-2.5.1/ChangeLog /usr/share/doc/grep-2.5.1/NEWS /usr/share/doc/grep-2.5.1/README /usr/share/doc/grep-2.5.1/THANKS ... /usr/share/locale/nl/LC_MESSAGES/grep.mo /usr/share/locale/no/LC_MESSAGES/grep.mo /usr/share/locale/pl/LC_MESSAGES/grep.mo /usr/share/locale/pt_BR/LC_MESSAGES/grep.mo /usr/share/locale/ru/LC_MESSAGES/grep.mo /usr/share/locale/sl/LC_MESSAGES/grep.mo /usr/share/locale/sv/LC_MESSAGES/grep.mo /usr/share/man/man1/egrep.1.gz /usr/share/man/man1/fgrep.1.gz /usr/share/man/man1/grep.1.gz |
#rpm -qlf `which ssh`
/etc/ssh/ssh_config /usr/bin/scp /usr/bin/sftp /usr/bin/slogin /usr/bin/ssh /usr/bin/ssh-add /usr/bin/ssh-agent /usr/bin/ssh-keyscan /usr/share/man/man1/scp.1.gz /usr/share/man/man1/sftp.1.gz /usr/share/man/man1/slogin.1.gz /usr/share/man/man1/ssh-add.1.gz /usr/share/man/man1/ssh-agent.1.gz /usr/share/man/man1/ssh-keyscan.1.gz /usr/share/man/man1/ssh.1.gz /usr/share/man/man5/ssh_config.5.gz |
#tail -f nohup.out
![]() CC [M] net/ipv4/netfilter/ip_conntrack_amanda.o CC [M] net/ipv4/netfilter/ip_conntrack_tftp.o CC [M] net/ipv4/netfilter/ip_conntrack_ftp.o CC [M] net/ipv4/netfilter/ip_conntrack_irc.o CC [M] net/ipv4/netfilter/ip_nat_amanda.o CC [M] net/ipv4/netfilter/ip_nat_tftp.o CC [M] net/ipv4/netfilter/ip_nat_ftp.o CC [M] net/ipv4/netfilter/ip_nat_irc.o CC [M] net/ipv4/netfilter/ip_tables.o CC [M] net/ipv4/netfilter/iptable_filter.o CC [M] net/ipv4/netfilter/iptable_mangle.o |
#top
top - 16:57:34 up 2:50, 3 users, load average: 1.25, 1.17, 1.10 Tasks: 100 total, 2 running, 98 sleeping, 0 stopped, 0 zombie Cpu(s): 93.7% us, 5.6% sy, 0.0% ni, 0.0% id, 0.7% wa, 0.0% hi, 0.0% si Mem: 1034432k total, 948788k used, 85644k free, 96000k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1024088k total, 0k used, 1024088k free, 670724k cached 5206 root 25 0 23276 17m 6368 R 25.6 1.7 0:00.77 cc1 3092 user 19 0 11780 7364 5136 S 25.2 0.7 2:30.81 l3-agent 2795 root 15 0 65332 18m 49m S 5.6 1.8 4:54.62 X 5005 root 17 0 3068 908 1624 R 0.7 0.1 0:00.16 top ... 3 root 5 -10 0 0 0 S 0.0 0.0 0:00.12 events/0 4 root 12 -10 0 0 0 S 0.0 0.0 0:00.00 khelper 5 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid 23 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0 33 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush 34 root 15 0 0 0 0 S 0.0 0.0 0:01.13 pdflush 36 root 11 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0 24 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd 35 root 16 0 0 0 0 S 0.0 0.0 0:00.43 kswapd0 109 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kseriod |
#mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) usbfs on /proc/bus/usb type usbfs (rw) /dev/hda6 on /tmp type ext3 (rw) /dev/hda7 on /var type ext3 (rw) /dev/hda9 on /usr type ext3 (rw) /dev/hda8 on /home type ext3 (rw) /dev/hda10 on /usr/src type ext3 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/hdc on /media/cdrom type iso9660 (ro,nosuid,nodev,iocharset=utf8,user=user) |
#la /media/cdrom
![]() -bash: la: command not found |
#ls /media/cdrom
ASPLinux dosutils LafoxNet.dos LICENSE.RUS RELEASE_NOTES ASPLinux-updates files.ls-lR.gz LafoxNet.koi LICENSE.RUS.koi RELEASE_NOTES.RUS boot GPG-KEY LafoxNet.utf mk_cd RELEASE_NOTES.RUS.koi disk GPL LICENSE.ENG README TRANS.TBL |
#ls /media/cdrom/ASPLinux/
![]() base/ boot/ RPMS/ TRANS.TBL |
#ls /media/cdrom/ASPLinux/RPMS/
![]() Display all 2017 possibilities? (y or n) |
#ls /media/cdrom/ASPLinux/RPMS/
![]() dos2unix-3.1-17.i386.rpm dosemu-1.2.2-3asp.i386.rpm dosfstools-2.8-12.i386.rpm dovecot-0.99.11-1.FC3.4.i386.rpm doxygen-1.3.6-2.i386.rpm doxygen-doxywizard-1.3.6-2.i386.rpm dtach-0.5-9.i386.rpm dump-0.4b33-3.i386.rpm dvd+rw-tools-5.21.4.10.8-2.i386.rpm dvgrab-1.5-2.i386.rpm ... gal-0.24-4.i386.rpm gal-devel-0.24-4.i386.rpm gamin-0.0.15-1.i386.rpm gamin-devel-0.0.15-1.i386.rpm gawk-3.1.3-7asp.i386.rpm gcc-3.3.3-7asp.i386.rpm gcc34-3.4.0-1.i386.rpm gcc34-c++-3.4.0-1.i386.rpm gcc34-java-3.4.0-1.i386.rpm gcc-c++-3.3.3-7asp.i386.rpm |
#ls /media/cdrom/ASPLinux/RPMS/sq*
/media/cdrom/ASPLinux/RPMS/squashfs-tools-2.0-1asp.i386.rpm /media/cdrom/ASPLinux/RPMS/squid-2.5.STABLE6-2asp.i386.rpm /media/cdrom/ASPLinux/RPMS/squirrelmail-1.4.3a-5.noarch.rpm |
#rpm -i /media/cdrom/ASPLinux/RPMS/squid-2.5.STABLE6-2asp.i386.
pm |
#rpm -qf `which squid`/media/cdrom/ASPLinux/RPMS/squid-2.5.STAB
![]() |
#rpm -qf `which squid`/media/cdrom/ASPLinux/RPMS/squid-2.5.STAB
![]() |
#rpm -qf `which squid`
squid-2.5.STABLE6-2asp |
#man squid
|
#rpm -qlf `which squid`
/usr/share/squid/errors/Spanish/ERR_ACCESS_DENIED /usr/share/squid/errors/Spanish/ERR_CACHE_ACCESS_DENIED /usr/share/squid/errors/Spanish/ERR_CACHE_MGR_ACCESS_DENIED /usr/share/squid/errors/Spanish/ERR_CANNOT_FORWARD /usr/share/squid/errors/Spanish/ERR_CONNECT_FAIL /usr/share/squid/errors/Spanish/ERR_DNS_FAIL /usr/share/squid/errors/Spanish/ERR_FORWARDING_DENIED /usr/share/squid/errors/Spanish/ERR_FTP_DISABLED /usr/share/squid/errors/Spanish/ERR_FTP_FAILURE /usr/share/squid/errors/Spanish/ERR_FTP_FORBIDDEN ... /usr/share/squid/icons/anthony-script.gif /usr/share/squid/icons/anthony-sound.gif /usr/share/squid/icons/anthony-tar.gif /usr/share/squid/icons/anthony-tex.gif /usr/share/squid/icons/anthony-text.gif /usr/share/squid/icons/anthony-unknown.gif /usr/share/squid/icons/anthony-xbm.gif /usr/share/squid/icons/anthony-xpm.gif /var/log/squid /var/spool/squid |
#rpm -qlf `which squid` | grep etc
/etc/logrotate.d/squid /etc/pam.d/squid /etc/rc.d/init.d/squid /etc/squid /etc/squid/errors /etc/squid/icons /etc/squid/mib.txt /etc/squid/mime.conf /etc/squid/mime.conf.default /etc/squid/msntauth.conf ... /etc/squid/squidblock/entertain.unblock.txt /etc/squid/squidblock/games.block.txt /etc/squid/squidblock/games.unblock.txt /etc/squid/squidblock/mp3.block.txt /etc/squid/squidblock/pirate.block.txt /etc/squid/squidblock/pirate.unblock.txt /etc/squid/squidblock/porn.block.txt /etc/squid/squidblock/porn.unblock.txt /etc/squid/squidblock/pron.block.txt /etc/sysconfig/squid |
#ls -l /etc/squid
итого 304 lrwxrwxrwx 1 root root 31 Янв 27 17:00 errors -> /usr/share/squid/errors/English lrwxrwxrwx 1 root root 22 Янв 27 17:00 icons -> /usr/share/squid/icons -rw-r--r-- 1 root root 26104 Окт 19 2004 mib.txt -rw-r--r-- 1 root root 11651 Окт 19 2004 mime.conf -rw-r--r-- 1 root root 11651 Окт 19 2004 mime.conf.default -rw-r--r-- 1 root root 421 Окт 19 2004 msntauth.conf -rw-r--r-- 1 root root 421 Окт 19 2004 msntauth.conf.default drwxr-xr-x 2 root root 4096 Янв 27 17:00 squidblock -rw-r----- 1 root squid 115755 Окт 19 2004 squid.conf -rw-r--r-- 1 root root 115755 Окт 19 2004 squid.conf.default |
#cat /etc/squid/mib.txt
::= { cachePeerEntry 9 } cachePeerRtt OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION " Last known round-trip time to the peer (in ms) " ::= { cachePeerEntry 10 } cachePeerIgnored OBJECT-TYPE SYNTAX Counter32 ... MAX-ACCESS read-only STATUS current DESCRIPTION " Amount of ICP hit traffic in KB " ::= { cacheClientEntry 9 } -- end of cacheClientTable -- end of cacheMesh group -- end of SQUID-MIB -- END |
#ls -l /etc/squid
итого 304 lrwxrwxrwx 1 root root 31 Янв 27 17:00 errors -> /usr/share/squid/errors/English lrwxrwxrwx 1 root root 22 Янв 27 17:00 icons -> /usr/share/squid/icons -rw-r--r-- 1 root root 26104 Окт 19 2004 mib.txt -rw-r--r-- 1 root root 11651 Окт 19 2004 mime.conf -rw-r--r-- 1 root root 11651 Окт 19 2004 mime.conf.default -rw-r--r-- 1 root root 421 Окт 19 2004 msntauth.conf -rw-r--r-- 1 root root 421 Окт 19 2004 msntauth.conf.default drwxr-xr-x 2 root root 4096 Янв 27 17:00 squidblock -rw-r----- 1 root squid 115755 Окт 19 2004 squid.conf -rw-r--r-- 1 root root 115755 Окт 19 2004 squid.conf.default |
#rpm -qif `which squid`
Name : squid Relocations: (not relocatable) Version : 2.5.STABLE6 Vendor: (none) Release : 2asp Build Date: Вто 19 Окт 2004 20:41:55 Install Date: Птн 27 Янв 2006 17:00:01 Build Host: pylesos.asp-linux.com.ua Group : Системное окружение/Демоны Source RPM: squid-2.5.STABLE6-2asp.src.rpm Size : 3180779 License: GPL Signature : DSA/SHA1, Вто 26 Окт 2004 19:19:00, Key ID c96aa8e69b3c94f4 Summary : Кэширующий прокси-сервер Squid. Description : Squid - это высокоэффективный кэширующий прокси-сервер для веб-клиентов, поддерживающий протоколы FTP, gopher и HTTP. В отличие от традиционных кэширующих приложений, Squid обрабатывает все запросы в единственном, неблокирующем режиме ввода/вывода. Squid хранит все метаданные и особые "горячие" объекты в оперативной памяти, кэширует запросы DNS, поддерживает запросы DNS в неблокирующем режиме и инструмент кэширования неверных запросов. Squid содержит главный сервер программ (squid), DNS-сервер (dnsserver), программу для скачивания данных FTP (ftpget), несколько инструментов для управления и инструменты клиентов. |
#ls -l /etc/squid
итого 304 lrwxrwxrwx 1 root root 31 Янв 27 17:00 errors -> /usr/share/squid/errors/English lrwxrwxrwx 1 root root 22 Янв 27 17:00 icons -> /usr/share/squid/icons -rw-r--r-- 1 root root 26104 Окт 19 2004 mib.txt -rw-r--r-- 1 root root 11651 Окт 19 2004 mime.conf -rw-r--r-- 1 root root 11651 Окт 19 2004 mime.conf.default -rw-r--r-- 1 root root 421 Окт 19 2004 msntauth.conf -rw-r--r-- 1 root root 421 Окт 19 2004 msntauth.conf.default drwxr-xr-x 2 root root 4096 Янв 27 17:00 squidblock -rw-r----- 1 root squid 115755 Окт 19 2004 squid.conf -rw-r--r-- 1 root root 115755 Окт 19 2004 squid.conf.default |
#cat squid.conf
![]() cat: squid.conf: No such file or directory |
#ls cat /etc/squid/squid.conf
![]() ls: cat: No such file or directory /etc/squid/squid.conf |
#cat /etc/squid/squid.conf
![]() # # By default, the ntlm authentication scheme is not used unless a # program is specified. # # auth_param ntlm program /path/to/samba/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp # # "children" numberofchildren # The number of authenticator processes to spawn (no default). If you # start too few Squid will have to wait for them to process a backlog # of credential verifications, slowing it down. When crendential ... # OK/ERR keyword=value ... # # Defined keywords: # # user= The users name (login) # error= Error description (only defined for ERR results) # # Keyword values need to be enclosed in quotes if they may contain # whitespace, or the whitespace escaped using \. Any quotes or \ # characters within the keyword value must be \ escaped. |
#vi /etc/squid/squid.conf
|
$su -
Password: l3-agent is already running: pid=3462; pidfile=/root/.lilalo/l3-agent.pid |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:8F:2F:AC:5E inet addr:192.168.15.4 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::213:8fff:fe2f:ac5e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:30692 errors:0 dropped:0 overruns:0 frame:0 TX packets:17096 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:42536919 (40.5 Mb) TX bytes:1373308 (1.3 Mb) Interrupt:10 Base address:0xb800 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:1501 errors:0 dropped:0 overruns:0 frame:0 TX packets:1501 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3103588 (2.9 Mb) TX bytes:3103588 (2.9 Mb) |
#ls /boot/
aspldr initrd-2.6.15.1.img System.map-2.6.9-1.667asp config-2.6.9-1.667asp initrd-2.6.9-1.667asp.img vmlinuz diag1.img module-info vmlinuz-2.6.15.1 diag2.img System.map vmlinuz-2.6.9-1.667asp grub System.map-2.6.15.1 |
#cat /etc/init.d/
![]() acpid hpoj netfs rpcsvcgssd amd htb netplugd saslauthd anacron iptables network sendmail apmd irda NetworkManager single atd irqbalance nfs smartd autofs isdn nfslock snmpd bluetooth kdcrotate nifd snmptrapd cbq keytable nscd spamassassin cpuspeed killall ntpd squid crond kudzu pand sshd cups lisa pcmcia syslog cups-config-daemon lm_sensors pipsecd vncserver dund mdmonitor portmap winbind functions mdmpd psacct wine gpm mDNSResponder readahead xfs haldaemon messagebus readahead_early xinetd halt microcode_ctl rpcgssd ypbind hidd netdump rpcidmapd yum |
#cat /etc/init.d/squid
export PATH # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 # check if the squid conf file is present [ -f /etc/squid/squid.conf ] || exit 0 if [ -f /etc/sysconfig/squid ]; then ... rhstatus ;; probe) exit 0 ;; *) echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}" exit 1 esac exit $? |
#cat /etc/init.d/squid | less
|
#squid start
|
#ps -aux | squid
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html |
#ps -aux | grep squid
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 16392 0.0 0.1 7636 1744 ? S 17:17 0:00 squid start root 16547 0.0 0.1 6348 1744 ? S 17:17 0:00 squid root 16673 0.0 0.0 4408 720 pts/2 S 17:17 0:00 grep squid root 16675 0.0 0.1 6816 1380 ? R 17:17 0:00 (squid) |
#netstat -a
unix 3 [ ] STREAM CONNECTED 7657 /tmp/orbit-user/linc-c64-0-7f69d9a88782d unix 3 [ ] STREAM CONNECTED 7656 unix 3 [ ] STREAM CONNECTED 7655 /tmp/orbit-user/linc-cb1-0-5bfc596c269eb unix 3 [ ] STREAM CONNECTED 7654 unix 3 [ ] STREAM CONNECTED 7651 /tmp/orbit-user/linc-c5f-0-c863097b096c unix 3 [ ] STREAM CONNECTED 7650 unix 3 [ ] STREAM CONNECTED 7645 /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 7644 unix 3 [ ] STREAM CONNECTED 7637 /tmp/orbit-user/linc-c91-0-783110b29a79c unix 3 [ ] STREAM CONNECTED 7636 ... unix 3 [ ] STREAM CONNECTED 5452 unix 3 [ ] STREAM CONNECTED 5451 unix 2 [ ] DGRAM 5433 unix 2 [ ] DGRAM 5311 unix 2 [ ] DGRAM 5292 unix 2 [ ] DGRAM 5277 unix 2 [ ] DGRAM 5260 unix 2 [ ] DGRAM 5203 unix 2 [ ] DGRAM 4572 unix 2 [ ] DGRAM 4518 |
#netstat -a | grep squid
![]() |
#netstat -a | grep 3128
![]() |
#squid stop
|
#ps -aux | grep squid
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 17943 0.0 0.1 7824 1744 ? S 17:19 0:00 squid stop root 18001 0.0 0.0 3788 728 pts/2 S 17:19 0:00 grep squid |
#vi /etc/squid/
![]() |
#vi /etc/squid/nohup: appending output to `nohup.out'
![]() |
#cat /etc/squid/mib.txt
![]() arch/ init/ scripts/ .tmp_System.map block/ ipc/ security/ .tmp_versions/ .config Kbuild sound/ .tmp_vmlinux1 .config.cmd kernel/ System.map ..tmp_vmlinux1.cmd .config.old lib/ .tmp_kallsyms1.o .tmp_vmlinux2 COPYING MAINTAINERS ..tmp_kallsyms1.o.cmd ..tmp_vmlinux2.cmd CREDITS Makefile .tmp_kallsyms1.S .tmp_vmlinux3 crypto/ mm/ .tmp_kallsyms2.o ..tmp_vmlinux3.cmd Documentation/ Module.symvers ..tmp_kallsyms2.o.cmd usr/ drivers/ net/ .tmp_kallsyms2.S .version fs/ nohup.out .tmp_kallsyms3.o vmlinux .gitignore README ..tmp_kallsyms3.o.cmd .vmlinux.cmd include/ REPORTING-BUGS .tmp_kallsyms3.S |
#ls -l /etc/squid
итого 304 lrwxrwxrwx 1 root root 31 Янв 27 17:00 errors -> /usr/share/squid/errors/English lrwxrwxrwx 1 root root 22 Янв 27 17:00 icons -> /usr/share/squid/icons -rw-r--r-- 1 root root 26104 Окт 19 2004 mib.txt -rw-r--r-- 1 root root 11651 Окт 19 2004 mime.conf ^O-rw-r--r-- 1 root root 11651 Окт 19 2004 mime.conf.default -rw-r--r-- 1 root root 421 Окт 19 2004 msntauth.conf -rw-r--r-- 1 root root 421 Окт 19 2004 msntauth.conf.default drwxr-xr-x 2 root root 4096 Янв 27 17:00 squidblock -rw-r----- 1 root squid 115760 Янв 27 17:14 squid.conf -rw-r--r-- 1 root root 115755 Окт 19 2004 squid.conf.default |
#rpm -qif `which squid`
Name : squid Relocations: (not relocatable) Version : 2.5.STABLE6 Vendor: (none) Release : 2asp Build Date: Вто 19 Окт 2004 20:41:55 Install Date: Птн 27 Янв 2006 17:00:01 Build Host: pylesos.asp-linux.com.ua Group : Системное окружение/Демоны Source RPM: squid-2.5.STABLE6-2asp.src.rpm Size : 3180779 License: GPL Signature : DSA/SHA1, Вто 26 Окт 2004 19:19:00, Key ID c96aa8e69b3c94f4 Summary : Кэширующий прокси-сервер Squid. Description : Squid - это высокоэффективный кэширующий прокси-сервер для веб-клиентов, поддерживающий протоколы FTP, gopher и HTTP. В отличие от традиционных кэширующих приложений, Squid обрабатывает все запросы в единственном, неблокирующем режиме ввода/вывода. Squid хранит все метаданные и особые "горячие" объекты в оперативной памяти, кэширует запросы DNS, поддерживает запросы DNS в неблокирующем режиме и инструмент кэширования неверных запросов. Squid содержит главный сервер программ (squid), DNS-сервер (dnsserver), программу для скачивания данных FTP (ftpget), несколько инструментов для управления и инструменты клиентов. |
#!t
top - 17:20:57 up 3:13, 3 users, load average: 1.28, 1.44, 1.36 Tasks: 94 total, 2 running, 92 sleeping, 0 stopped, 0 zombie Cpu(s): 46.4% us, 10.6% sy, 0.0% ni, 0.0% id, 42.7% wa, 0.3% hi, 0.0% si Mem: 1034432k total, 1014424k used, 20008k free, 66016k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1024088k total, 0k used, 1024088k free, 789272k cached 19728 root 24 0 6712 2664 3400 S 9.3 0.3 0:00.28 make 2795 root 15 0 65332 18m 49m S 5.6 1.8 6:32.16 X 19735 root 18 0 5612 1576 3400 R 3.3 0.2 0:00.10 make 19598 root 16 0 3036 904 1624 R 0.7 0.1 0:00.04 top ... 3 root 5 -10 0 0 0 S 0.0 0.0 0:00.18 events/0 4 root 12 -10 0 0 0 S 0.0 0.0 0:00.00 khelper 5 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid 23 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0 33 root 15 0 0 0 0 S 0.0 0.0 0:00.42 pdflush 34 root 15 0 0 0 0 S 0.0 0.0 0:01.28 pdflush 36 root 11 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0 24 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd 35 root 16 0 0 0 0 S 0.0 0.0 0:00.90 kswapd0 109 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kseriod |
#!ta
![]() tail -f nohup.out CC sound/usb/snd-usb-audio.mod.o LD [M] sound/usb/snd-usb-audio.ko CC sound/usb/snd-usb-lib.mod.o LD [M] sound/usb/snd-usb-lib.ko CC sound/usb/usx2y/snd-usb-usx2y.mod.o LD [M] sound/usb/usx2y/snd-usb-usx2y.ko CHK include/linux/version.h HOSTCC scripts/basic/split-include SPLIT include/linux/autoconf.h -> include/config/* ... INSTALL drivers/atm/lanai.ko INSTALL drivers/atm/nicstar.ko INSTALL drivers/atm/suni.ko INSTALL drivers/block/DAC960.ko INSTALL drivers/block/cciss.ko INSTALL drivers/block/cpqarray.ko INSTALL drivers/block/cryptoloop.ko INSTALL drivers/block/floppy.ko INSTALL drivers/block/loop.ko INSTALL drivers/block/nbd.ko |
#!vi
60 # 61 # This is really only useful for situations where you are running 62 # squid in accelerator mode and you want to do the SSL work at the 63 # accelerator level. 64 # 65 # You may specify multiple socket addresses on multiple lines, 66 # each with their own SSL certificate and/or options. 67 # 68 # Options: 69 # 70 # cert= Path to SSL certificate (PEM format) 70,1 1% |
#squid
|
#pa -aux
![]() -bash: pa: command not found |
#ps -aux
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 2176 452 ? S 14:07 0:01 init [5] root 2 0.0 0.0 0 0 ? SWN 14:07 0:00 [ksoftirqd/0] root 3 0.0 0.0 0 0 ? SW< 14:07 0:00 [events/0] root 4 0.0 0.0 0 0 ? SW< 14:07 0:00 [khelper] root 5 0.0 0.0 0 0 ? SW< 14:07 0:00 [kacpid] root 23 0.0 0.0 0 0 ? SW< 14:07 0:00 [kblockd/0] root 33 0.0 0.0 0 0 ? SW 14:07 0:00 [pdflush] root 36 0.0 0.0 0 0 ? SW< 14:07 0:00 [aio/0] ... user 2710 0.0 0.8 25360 8828 ? S 16:51 0:00 kdeinit: Running... user 2713 0.0 0.8 24492 8372 ? S 16:51 0:00 kdeinit: dcopserver --nosid -- user 2715 0.0 0.8 26200 9220 ? S 16:51 0:00 kdeinit: klauncher user 2717 0.0 1.1 27376 11896 ? S 16:51 0:00 kdeinit: kded user 2720 0.3 2.9 56184 30720 ? S 16:51 0:06 kdeinit: konqueror --silent user 2733 0.0 0.9 26936 10100 ? S 16:51 0:00 kdeinit: kio_file file /tmp/ks root 12969 0.0 0.1 4352 1048 pts/4 S 17:12 0:00 su - root 12999 0.0 0.1 4916 1392 pts/4 S 17:12 0:00 -bash root 22443 0.0 0.0 0 0 ? SW 17:22 0:00 [pdflush] root 23035 0.0 0.0 2784 760 pts/2 R 17:24 0:00 ps -aux |
#ps -aux | grep squid
![]() Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html |
#ps -aux | grep squi
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 23065 0.0 0.0 4548 720 pts/2 S 17:25 0:00 grep squi |
#ps -aux
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 2176 452 ? S 14:07 0:01 init [5] root 2 0.0 0.0 0 0 ? SWN 14:07 0:00 [ksoftirqd/0] root 3 0.0 0.0 0 0 ? SW< 14:07 0:00 [events/0] root 4 0.0 0.0 0 0 ? SW< 14:07 0:00 [khelper] root 5 0.0 0.0 0 0 ? SW< 14:07 0:00 [kacpid] root 23 0.0 0.0 0 0 ? SW< 14:07 0:00 [kblockd/0] root 33 0.0 0.0 0 0 ? SW 14:07 0:00 [pdflush] root 36 0.0 0.0 0 0 ? SW< 14:07 0:00 [aio/0] ... user 2710 0.0 0.8 25360 8828 ? S 16:51 0:00 kdeinit: Running... user 2713 0.0 0.8 24492 8372 ? S 16:51 0:00 kdeinit: dcopserver --nosid -- user 2715 0.0 0.8 26200 9220 ? S 16:51 0:00 kdeinit: klauncher user 2717 0.0 1.1 27376 11896 ? S 16:51 0:00 kdeinit: kded user 2720 0.3 2.9 56184 30720 ? S 16:51 0:06 kdeinit: konqueror --silent user 2733 0.0 0.9 26936 10100 ? S 16:51 0:00 kdeinit: kio_file file /tmp/ks root 12969 0.0 0.1 4352 1048 pts/4 S 17:12 0:00 su - root 12999 0.0 0.1 4916 1392 pts/4 S 17:12 0:00 -bash root 22443 0.0 0.0 0 0 ? SW 17:22 0:00 [pdflush] root 23074 0.0 0.0 3756 760 pts/2 R 17:25 0:00 ps -aux |
#ps -aux | grep squid
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 23084 0.0 0.0 3884 580 pts/2 R 17:27 0:00 grep squid |
#ps - | grep squid
![]() ERROR: Garbage option. ********* simple selection ********* ********* selection by list ********* -A all processes -C by command name -N negate selection -G by real group ID (supports names) -a all w/ tty except session leaders -U by real user ID (supports names) -d all except session leaders -g by session leader OR by group name -e all processes -p by process ID T all processes on this terminal -s processes in the sessions given a all w/ tty, including other users -t by tty g all, even group leaders! -u by effective user ID (supports names) ... -o,o user-defined -f full --Group --User --pid --cols --ppid -j,j job control s signal --group --user --sid --rows -O,O preloaded -o v virtual memory --cumulative --format --deselect -l,l long u user-oriented --sort --tty --forest --version -F extra full X registers --heading --no-heading --context ********* misc options ********* -V,V show version L list format codes f ASCII art forest -m,m,-L,-T,H threads S children in sum -y change -l format -c scheduling class c true command name n numeric WCHAN,UID -w,w wide output e show environment -H process hierarchy |
#ps -aux
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 2176 452 ? S 14:07 0:01 init [5] root 2 0.0 0.0 0 0 ? SWN 14:07 0:00 [ksoftirqd/0] root 3 0.0 0.0 0 0 ? SW< 14:07 0:00 [events/0] root 4 0.0 0.0 0 0 ? SW< 14:07 0:00 [khelper] root 5 0.0 0.0 0 0 ? SW< 14:07 0:00 [kacpid] root 23 0.0 0.0 0 0 ? SW< 14:07 0:00 [kblockd/0] root 33 0.0 0.0 0 0 ? SW 14:07 0:00 [pdflush] root 36 0.0 0.0 0 0 ? SW< 14:07 0:00 [aio/0] ... user 2710 0.0 0.8 25360 8828 ? S 16:51 0:00 kdeinit: Running... user 2713 0.0 0.8 24492 8372 ? S 16:51 0:00 kdeinit: dcopserver --nosid -- user 2715 0.0 0.8 26200 9220 ? S 16:51 0:00 kdeinit: klauncher user 2717 0.0 1.1 27376 11896 ? S 16:51 0:00 kdeinit: kded user 2720 0.3 2.9 56184 30720 ? S 16:51 0:06 kdeinit: konqueror --silent user 2733 0.0 0.9 26936 10100 ? S 16:51 0:00 kdeinit: kio_file file /tmp/ks root 12969 0.0 0.1 4352 1048 pts/4 S 17:12 0:00 su - root 12999 0.0 0.1 4916 1392 pts/4 S 17:12 0:00 -bash root 22443 0.0 0.0 0 0 ? SW 17:22 0:00 [pdflush] root 23103 0.0 0.0 2532 760 pts/2 R 17:27 0:00 ps -aux |
#ps -aux | grep squid
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 23113 0.0 0.0 4828 716 pts/2 S 17:27 0:00 grep squid |
#squid start
|
#ps -aux | grep squid
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 23123 0.0 0.1 7396 1748 ? S 17:28 0:00 squid start root 23136 0.0 0.0 3820 716 pts/2 R 17:28 0:00 grep squid |
#ps aux | grep squid
root 23158 0.0 0.0 4732 716 pts/2 S 17:28 0:00 grep squid |
#ps aux | grep squid
root 23168 0.0 0.0 4188 716 pts/2 S 17:29 0:00 grep squid |
#tail /var/log/message
![]() tail: невозможно открыть `/var/log/message' для чтения: No such file or directory |
#tail -20 /var/log/messages
Jan 27 17:24:09 linux4 squid[23002]: Squid Parent: child process 23033 started Jan 27 17:24:10 linux4 (squid): ^IFailed to verify one of the swap directories, Check cache.log ^Ifor details. Run 'squid -z' to create swap directories ^Iif needed, or if running Squid for the first time. Jan 27 17:24:10 linux4 squid[23002]: Squid Parent: child process 23033 exited due to signal 6 Jan 27 17:24:10 linux4 squid[23002]: Exiting due to repeated, frequent failures Jan 27 17:28:32 linux4 squid[23123]: Squid Parent: child process 23125 started Jan 27 17:28:33 linux4 (squid): ^IFailed to verify one of the swap directories, Check cache.log ^Ifor details. Run 'squid -z' to create swap directories ^Iif needed, or if running Squid for the first time. Jan 27 17:28:33 linux4 squid[23123]: Squid Parent: child process 23125 exited due to signal 6 Jan 27 17:28:36 linux4 squid[23123]: Squid Parent: child process 23145 started Jan 27 17:28:36 linux4 (squid): ^IFailed to verify one of the swap directories, Check cache.log ^Ifor details. Run 'squid -z' to create swap directories ^Iif needed, or if running Squid for the first time. Jan 27 17:28:36 linux4 squid[23123]: Squid Parent: child process 23145 exited due to signal 6 Jan 27 17:28:39 linux4 squid[23123]: Squid Parent: child process 23149 started Jan 27 17:28:39 linux4 (squid): ^IFailed to verify one of the swap directories, Check cache.log ^Ifor details. Run 'squid -z' to create swap directories ^Iif needed, or if running Squid for the first time. Jan 27 17:28:39 linux4 squid[23123]: Squid Parent: child process 23149 exited due to signal 6 Jan 27 17:28:42 linux4 squid[23123]: Squid Parent: child process 23152 started Jan 27 17:28:43 linux4 (squid): ^IFailed to verify one of the swap directories, Check cache.log ^Ifor details. Run 'squid -z' to create swap directories ^Iif needed, or if running Squid for the first time. Jan 27 17:28:43 linux4 squid[23123]: Squid Parent: child process 23152 exited due to signal 6 Jan 27 17:28:46 linux4 squid[23123]: Squid Parent: child process 23155 started Jan 27 17:28:46 linux4 (squid): ^IFailed to verify one of the swap directories, Check cache.log ^Ifor details. Run 'squid -z' to create swap directories ^Iif needed, or if running Squid for the first time. Jan 27 17:28:46 linux4 squid[23123]: Squid Parent: child process 23155 exited due to signal 6 Jan 27 17:28:46 linux4 squid[23123]: Exiting due to repeated, frequent failures |
#tail -f nohup
![]() tail: невозможно открыть `nohup' для чтения: No such file or directory tail: больше нет файлов |
#tail -f nohup.out
![]() INSTALL sound/pci/vx222/snd-vx222.ko INSTALL sound/pci/ymfpci/snd-ymfpci.ko INSTALL sound/soundcore.ko INSTALL sound/synth/emux/snd-emux-synth.ko INSTALL sound/synth/snd-util-mem.ko INSTALL sound/usb/snd-usb-audio.ko INSTALL sound/usb/snd-usb-lib.ko INSTALL sound/usb/usx2y/snd-usb-usx2y.ko if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map 2.6.15.1; fi make: *** Нет правила для сборки цели `nohup'. Останов. ^[[B^[[B^[[B^[[B^[[A^[[A |
#tail -f nohup.out
![]() INSTALL sound/pci/vx222/snd-vx222.ko INSTALL sound/pci/ymfpci/snd-ymfpci.ko INSTALL sound/soundcore.ko INSTALL sound/synth/emux/snd-emux-synth.ko INSTALL sound/synth/snd-util-mem.ko INSTALL sound/usb/snd-usb-audio.ko INSTALL sound/usb/snd-usb-lib.ko INSTALL sound/usb/usx2y/snd-usb-usx2y.ko if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map 2.6.15.1; fi make: *** Нет правила для сборки цели `nohup'. Останов. |
#ls /media/cdrom/ASPLinux/RPMS/sq*
![]() |
#make menuconfig
![]() |
#nohup make && nohup make modules && nohup ma
![]() |
#mv nohup.out nohup.1
![]() mv: при переносе несколько файлов последним аргументом должен быть каталог Попробуйте `mv --help' для получения более подробного описания. |
#ls no*
nohup.out |
#mv nohup.out nohup.1
|
#ls no*
nohup.1 |
#nohup make install&
[1] 23298 |
#nohup: appending output to `nohup.out'
![]() |
#tail -f nohup.out
![]() CHK include/linux/version.h CHK include/linux/compile.h CHK usr/initramfs_list Kernel: arch/i386/boot/bzImage is ready (#1) sh /usr/src/linux-2.6.15.1/arch/i386/boot/install.sh 2.6.15.1 arch/i386/boot/bzImage System.map "/boot" grubby: unable to open /boot/boot.b: No such file or directory [1]+ Done nohup make install |
#tail -f nohup.out
![]() CHK include/linux/version.h CHK include/linux/compile.h CHK usr/initramfs_list Kernel: arch/i386/boot/bzImage is ready (#1) sh /usr/src/linux-2.6.15.1/arch/i386/boot/install.sh 2.6.15.1 arch/i386/boot/bzImage System.map "/boot" grubby: unable to open /boot/boot.b: No such file or directory ^[[B^[[B |
#ls -l /boot/
итого 5148 drwxr-xr-x 7 root root 4096 Янв 20 07:14 aspldr -rw-r--r-- 1 root root 51044 Ноя 12 2004 config-2.6.9-1.667asp -rw-r--r-- 1 root root 5032 Ноя 12 2004 diag1.img -rw-r--r-- 1 root root 16728 Ноя 12 2004 diag2.img drwxr-xr-x 2 root root 4096 Янв 27 10:12 grub -rw-r--r-- 1 root root 360946 Янв 27 17:37 initrd-2.6.15.1.img -rw-r--r-- 1 root root 365742 Янв 20 07:14 initrd-2.6.9-1.667asp.img lrwxrwxrwx 1 root root 26 Янв 20 07:36 module-info -> module-info-2.6.9-1.667asp lrwxrwxrwx 1 root root 19 Янв 27 17:37 System.map -> System.map-2.6.15.1 -rw-r--r-- 1 root root 838372 Янв 27 17:37 System.map-2.6.15.1 -rw-r--r-- 1 root root 715638 Ноя 12 2004 System.map-2.6.9-1.667asp lrwxrwxrwx 1 root root 16 Янв 27 17:37 vmlinuz -> vmlinuz-2.6.15.1 -rw-r--r-- 1 root root 1447958 Янв 27 17:37 vmlinuz-2.6.15.1 -rw-r--r-- 1 root root 1409219 Ноя 12 2004 vmlinuz-2.6.9-1.667asp |
#ls -l /boot/
итого 5148 drwxr-xr-x 7 root root 4096 Янв 20 07:14 aspldr -rw-r--r-- 1 root root 51044 Ноя 12 2004 config-2.6.9-1.667asp -rw-r--r-- 1 root root 5032 Ноя 12 2004 diag1.img -rw-r--r-- 1 root root 16728 Ноя 12 2004 diag2.img drwxr-xr-x 2 root root 4096 Янв 27 10:12 grub -rw-r--r-- 1 root root 360946 Янв 27 17:37 initrd-2.6.15.1.img -rw-r--r-- 1 root root 365742 Янв 20 07:14 initrd-2.6.9-1.667asp.img lrwxrwxrwx 1 root root 26 Янв 20 07:36 module-info -> module-info-2.6.9-1.667asp lrwxrwxrwx 1 root root 19 Янв 27 17:37 System.map -> System.map-2.6.15.1 -rw-r--r-- 1 root root 838372 Янв 27 17:37 System.map-2.6.15.1 -rw-r--r-- 1 root root 715638 Ноя 12 2004 System.map-2.6.9-1.667asp lrwxrwxrwx 1 root root 16 Янв 27 17:37 vmlinuz -> vmlinuz-2.6.15.1 -rw-r--r-- 1 root root 1447958 Янв 27 17:37 vmlinuz-2.6.15.1 -rw-r--r-- 1 root root 1409219 Ноя 12 2004 vmlinuz-2.6.9-1.667asp |
#tail -f nohup.out
![]() CHK include/linux/version.h CHK include/linux/compile.h CHK usr/initramfs_list Kernel: arch/i386/boot/bzImage is ready (#1) sh /usr/src/linux-2.6.15.1/arch/i386/boot/install.sh 2.6.15.1 arch/i386/boot/bzImage System.map "/boot" grubby: unable to open /boot/boot.b: No such file or directory |
#tail -f nohup.out
![]() CHK include/linux/version.h CHK include/linux/compile.h CHK usr/initramfs_list Kernel: arch/i386/boot/bzImage is ready (#1) sh /usr/src/linux-2.6.15.1/arch/i386/boot/install.sh 2.6.15.1 arch/i386/boot/bzImage System.map "/boot" grubby: unable to open /boot/boot.b: No such file or directory |
#ls /boot
aspldr initrd-2.6.15.1.img System.map-2.6.9-1.667asp config-2.6.9-1.667asp initrd-2.6.9-1.667asp.img vmlinuz diag1.img module-info vmlinuz-2.6.15.1 diag2.img System.map vmlinuz-2.6.9-1.667asp grub System.map-2.6.15.1 |
#cat /boot/grub/grub.conf
![]() cat: /boot/grub/grub.conf: No such file or directory |
#cat /boot/grub/
![]() device.map jfs_stage1_5 reiserfs_stage1_5 stage2 e2fs_stage1_5 menu.lst splash.xpm.gz stage2_eltorito fat_stage1_5 minix_stage1_5 stage1 xfs_stage1_5 |
acpid hpoj netfs rpcsvcgssd amd htb netplugd saslauthd anacron iptables network sendmail apmd irda NetworkManager single atd irqbalance nfs smartd autofs isdn nfslock snmpd bluetooth kdcrotate nifd snmptrapd cbq keytable nscd spamassassin cpuspeed killall ntpd squid crond kudzu pand sshd cups lisa pcmcia syslog cups-config-daemon lm_sensors pipsecd vncserver dund mdmonitor portmap winbind functions mdmpd psacct wine gpm mDNSResponder readahead xfs haldaemon messagebus readahead_early xinetd halt microcode_ctl rpcgssd ypbind hidd netdump rpcidmapd yum
export PATH # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 # check if the squid conf file is present [ -f /etc/squid/squid.conf ] || exit 0 if [ -f /etc/sysconfig/squid ]; then . /etc/sysconfig/squid fi # don't raise an error if the config file is incomplete # set defaults instead: SQUID_OPTS=${SQUID_OPTS:-"-D"} SQUID_PIDFILE_TIMEOUT=${SQUID_PIDFILE_TIMEOUT:-20} SQUID_SHUTDOWN_TIMEOUT=${SQUID_SHUTDOWN_TIMEOUT:-100} # determine the name of the squid binary [ -f /usr/sbin/squid ] && SQUID=squid [ -z "$SQUID" ] && exit 0 prog="$SQUID" # determine which one is the cache_swap directory CACHE_SWAP=`sed -e 's/#.*//g' /etc/squid/squid.conf | \ grep cache_dir | awk '{ print $3 }'` [ -z "$CACHE_SWAP" ] && CACHE_SWAP=/var/spool/squid RETVAL=0 start() { for adir in $CACHE_SWAP; do if [ ! -d $adir/00 ]; then echo -n "init_cache_dir $adir... " $SQUID -z -F -D >> /var/log/squid/squid.out 2>&1 fi done echo -n $"Starting $prog: " $SQUID $SQUID_OPTS >> /var/log/squid/squid.out 2>&1 RETVAL=$? if [ $RETVAL -eq 0 ]; then timeout=0; while : ; do [ ! -f /var/run/squid.pid ] || break if [ $timeout -ge $SQUID_PIDFILE_TIMEOUT ]; then RETVAL=1 break fi sleep 1 && echo -n "." timeout=$((timeout+1)) done fi [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SQUID [ $RETVAL -eq 0 ] && echo_success [ $RETVAL -ne 0 ] && echo_failure echo return $RETVAL } stop() { echo -n $"Stopping $prog: " $SQUID -k check >> /var/log/squid/squid.out 2>&1 RETVAL=$? if [ $RETVAL -eq 0 ] ; then $SQUID -k shutdown & rm -f /var/lock/subsys/$SQUID timeout=0 while : ; do [ -f /var/run/squid.pid ] || break if [ $timeout -ge $SQUID_SHUTDOWN_TIMEOUT ]; then echo return 1 fi sleep 2 && echo -n "." timeout=$((timeout+2)) done echo_success echo else echo_failure echo fi return $RETVAL } reload() { $SQUID $SQUID_OPTS -k reconfigure } restart() { stop start } condrestart() { [ -e /var/lock/subsys/squid ] && restart || : } rhstatus() { status $SQUID $SQUID -k check } probe() { return 0 } case "$1" in start) start ;; stop) stop ;; reload) reload ;; restart) restart ;; condrestart) condrestart ;; status) rhstatus ;; probe) exit 0 ;; *) echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}" exit 1 esac exit $?
::= { cachePeerEntry 9 } cachePeerRtt OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION " Last known round-trip time to the peer (in ms) " ::= { cachePeerEntry 10 } cachePeerIgnored OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION " How many times this peer was ignored " ::= { cachePeerEntry 11 } cachePeerKeepAlSent OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION " Number of keepalives sent " ::= { cachePeerEntry 12 } cachePeerKeepAlRecv OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION " Number of keepalives received " ::= { cachePeerEntry 13 } --- --- Table of cache's clients, with statistics. Children caches can be identified --- by non-zero number of ICP requests (unless browsers start using ICP). --- cacheClientTable OBJECT-TYPE SYNTAX SEQUENCE OF CacheClientEntry ACCESS not-accessible STATUS mandatory DESCRIPTION "A list of cache client entries." ::= { cacheMesh 2 } cacheClientEntry OBJECT-TYPE SYNTAX CacheClientEntry ACCESS not-accessible STATUS mandatory DESCRIPTION "An entry in cacheClientTable " INDEX { cacheClientAddr } ::= { cacheClientTable 1 } CacheClientEntry ::= SEQUENCE { cacheClientAddr IpAddress, cacheClientHttpRequests Counter32, cacheClientHttpKb Counter32, cacheClientHttpHits Counter32, cacheClientHTTPHitKb Counter32, cacheClientIcpRequests Counter32, cacheClientIcpKb Counter32, cacheClientIcpHits Counter32, cacheClientIcpHitKb Counter32 } cacheClientAddr OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION "The client's IP address " ::= { cacheClientEntry 1 } cacheClientHttpRequests OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION " Number of HTTP requests received from client " ::= { cacheClientEntry 2 } cacheClientHttpKb OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION " Amount of total HTTP traffic to this client " ::= { cacheClientEntry 3 } cacheClientHttpHits OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION " Number of hits in response to this client's HTTP requests " ::= { cacheClientEntry 4 } cacheClientHTTPHitKb OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION " Amount of HTTP hit traffic in KB " ::= { cacheClientEntry 5 } cacheClientIcpRequests OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION " Number of ICP requests received from client " ::= { cacheClientEntry 6 } cacheClientIcpKb OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION " Amount of total ICP traffic to this client (child) " ::= { cacheClientEntry 7 } cacheClientIcpHits OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION " Number of hits in response to this client's ICP requests " ::= { cacheClientEntry 8 } cacheClientIcpHitKb OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION " Amount of ICP hit traffic in KB " ::= { cacheClientEntry 9 } -- end of cacheClientTable -- end of cacheMesh group -- end of SQUID-MIB -- END
Время первой команды журнала | 16:07:38 2006- 1-27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:55:18 2006- 1-27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 15.84 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.79 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.94 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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