/l3/users/01-04-2009/nt-ladm/debian1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 |
|
#ssh 192.168.16.21
Password: Last login: Wed Apr 15 18:07:06 2009 from 192.168.16.1 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 ×ÙÐÏÌÎÅÎ ×ÈÏÄ × ÓÉÓÔÅÍÕ, ÎÁÐÒÉÍÅÒ Removing stale pidfile |
#[root@fbsd1:~]# man newsyslog.conf
naled when this log file is rotated. U indicates that the file specified by path_to_pid_file will contain the ID for a process group instead of a process. This option also requires that the first line in that file be a negative value to distinguish it from a process ID. Z indicates that newsyslog(8) should attempt to save disk space by compressing the rotated log file using gzip(1). |
#[root@fbsd1:~]# !
bash: syntax error near unexpected token `newline' |
#[root@fbsd1:~]# man newsyslog.conf
to the daemon process (or to all processes in a process group, if the U flag was specified). If this field is not present, then a SIGHUP signal will be sent. SEE ALSO bzip2(1), gzip(1), syslog(3), chown(8), newsyslog(8), syslogd(8) HISTORY This manual page first appeared in FreeBSD 4.10. FreeBSD 6.2 November 27, 2006 FreeBSD 6.2 dd day of month, range 1..31, or one of the letters |
#[root@fbsd1:~]#
|
#[root@fbsd1:~]#
|
#[root@fbsd1:~]#
|
#[root@fbsd1:~]# ls -l /var/log
[root@fbsd1:~]# newsyslog total 424 -rw-r--r-- 1 root wheel 34021 Mar 31 13:19 Xorg.0.log -rw-r--r-- 1 root wheel 34021 Mar 31 13:15 Xorg.0.log.old -rw------- 1 root wheel 9415 Apr 17 16:27 auth.log -rw------- 1 root wheel 81569 Apr 17 16:33 cron -rw------- 1 root wheel 6141 Apr 15 11:00 cron.0.bz2 -rw------- 1 root wheel 6137 Apr 12 18:00 cron.1.bz2 -rw------- 1 root wheel 6459 Apr 10 01:00 cron.2.bz2 -rw------- 1 root wheel 6299 Apr 7 08:00 cron.3.bz2 ... -rw-r----- 1 root wheel 0 Mar 27 2008 sendmail.st.4 -rw-r----- 1 root wheel 728 Mar 16 2008 sendmail.st.5 -rw-r----- 1 root wheel 0 Mar 15 2008 sendmail.st.6 -rw-r----- 1 root wheel 0 Jan 16 2008 sendmail.st.7 -rw------- 1 root wheel 5483 Mar 16 2008 setuid.today -rw-r----- 1 root network 61 Mar 15 2008 slip.log -rw------- 1 root wheel 1657 Apr 13 17:01 userlog -rw-r--r-- 1 root wheel 2024 Apr 17 16:26 wtmp -rw-r--r-- 1 root wheel 2376 Mar 31 13:19 wtmp.0 -rw------- 1 root wheel 61 Mar 15 2008 xferlog |
#[root@fbsd1:~]# date
Fri Apr 17 16:33:31 UTC 2009 |
#[root@fbsd1:~]# newsyslog -f /etc/newsyslog.conf -F
[root@fbsd1:~]# newsyslog --help newsyslog: illegal option -- - usage: newsyslog [-CFNnrsv] [-a directory] [-d directory] [-f config-file] [ [-R requestor] filename ... ] ^Z [1]+ Stopped newsyslog -f /etc/newsyslog.conf -F |
#[root@fbsd1:~]# bg
[1]+ newsyslog -f /etc/newsyslog.conf -F & |
#[root@fbsd1:~]#
[root@fbsd1:~]# man newsyslog NEWSYSLOG(8) FreeBSD System Manager's Manual NEWSYSLOG(8) NAME newsyslog -- maintain system log files to manageable sizes SYNOPSIS newsyslog [-CFNnrsv] [-R tagname] [-a directory] [-d directory] [-f config_file] [file ...] DESCRIPTION The newsyslog utility should be scheduled to run periodically by cron(8). When it is executed it archives log files if necessary. If a log file is ... problems by providing you with fresh logs that contain only the problems. -N Do not perform any rotations. This option is intended to be used with the -C or -CC options when creating log files is the only objective. -R tagname Specify that newsyslog should rotate a given list of files, even if trim conditions are not met for those files. The tagname is only used in the messages written to the log files which are [1]+ Done newsyslog -f /etc/newsyslog.conf -F |
#[root@fbsd1:~]# date
[root@fbsd1:~]# ls -l /var/log total 316 -rw-r--r-- 1 root wheel 34021 Mar 31 13:19 Xorg.0.log -rw-r--r-- 1 root wheel 34021 Mar 31 13:15 Xorg.0.log.old -rw------- 1 root wheel 77 Apr 17 16:33 auth.log -rw------- 1 root wheel 1590 Apr 17 16:33 auth.log.0.bz2 -rw------- 1 root wheel 77 Apr 17 16:33 cron -rw------- 1 root wheel 5020 Apr 17 16:33 cron.0.bz2 -rw------- 1 root wheel 6141 Apr 15 11:00 cron.1.bz2 -rw------- 1 root wheel 6137 Apr 12 18:00 cron.2.bz2 ... -rw------- 1 root wheel 5483 Mar 16 2008 setuid.today -rw-r----- 1 root network 77 Apr 17 16:33 slip.log -rw-r----- 1 root network 153 Apr 17 16:33 slip.log.0.bz2 -rw------- 1 root wheel 1657 Apr 13 17:01 userlog -rw-r--r-- 1 root wheel 0 Apr 17 16:33 wtmp -rw-r--r-- 1 root wheel 2024 Apr 17 16:26 wtmp.0 -rw-r--r-- 1 root wheel 2376 Mar 31 13:19 wtmp.1 -rw------- 1 root wheel 77 Apr 17 16:33 xferlog -rw------- 1 root wheel 153 Apr 17 16:33 xferlog.0.bz2 Fri Apr 17 16:34:33 UTC 2009 |
#[root@fbsd1:~]# ls -lt /var/log | head -15
[root@fbsd1:~]# ls -lt /var/log | head total 316 -rw------- 1 root wheel 77 Apr 17 16:33 auth.log -rw------- 1 root wheel 1590 Apr 17 16:33 auth.log.0.bz2 -rw------- 1 root wheel 77 Apr 17 16:33 cron -rw------- 1 root wheel 5020 Apr 17 16:33 cron.0.bz2 -rw------- 1 root wheel 77 Apr 17 16:33 debug.log -rw------- 1 root wheel 153 Apr 17 16:33 debug.log.0.bz2 -rw-r--r-- 1 root wheel 77 Apr 17 16:33 lpd-errs -rw-r--r-- 1 root wheel 153 Apr 17 16:33 lpd-errs.0.bz2 ... -rw------- 1 root wheel 77 Apr 17 16:33 debug.log -rw------- 1 root wheel 153 Apr 17 16:33 debug.log.0.bz2 -rw-r--r-- 1 root wheel 77 Apr 17 16:33 lpd-errs -rw-r--r-- 1 root wheel 153 Apr 17 16:33 lpd-errs.0.bz2 -rw-r----- 1 root wheel 77 Apr 17 16:33 maillog -rw-r----- 1 root wheel 588 Apr 17 16:33 maillog.0.bz2 -rw-r--r-- 1 root wheel 77 Apr 17 16:33 messages -rw-r--r-- 1 root wheel 2106 Apr 17 16:33 messages.0.bz2 -rw-r----- 1 root network 77 Apr 17 16:33 ppp.log -rw-r----- 1 root network 153 Apr 17 16:33 ppp.log.0.bz2 |
#[root@fbsd1:~]# ls -lt /var/log | head -20
total 316 -rw------- 1 root wheel 77 Apr 17 16:33 auth.log -rw------- 1 root wheel 1590 Apr 17 16:33 auth.log.0.bz2 -rw------- 1 root wheel 77 Apr 17 16:33 cron -rw------- 1 root wheel 5020 Apr 17 16:33 cron.0.bz2 -rw------- 1 root wheel 77 Apr 17 16:33 debug.log -rw------- 1 root wheel 153 Apr 17 16:33 debug.log.0.bz2 -rw-r--r-- 1 root wheel 77 Apr 17 16:33 lpd-errs -rw-r--r-- 1 root wheel 153 Apr 17 16:33 lpd-errs.0.bz2 -rw-r----- 1 root wheel 77 Apr 17 16:33 maillog -rw-r----- 1 root wheel 588 Apr 17 16:33 maillog.0.bz2 -rw-r--r-- 1 root wheel 77 Apr 17 16:33 messages -rw-r--r-- 1 root wheel 2106 Apr 17 16:33 messages.0.bz2 -rw-r----- 1 root network 77 Apr 17 16:33 ppp.log -rw-r----- 1 root network 153 Apr 17 16:33 ppp.log.0.bz2 -rw------- 1 root wheel 77 Apr 17 16:33 security -rw------- 1 root wheel 153 Apr 17 16:33 security.0.bz2 -rw-r----- 1 root wheel 0 Apr 17 16:33 sendmail.st -rw-r----- 1 root network 77 Apr 17 16:33 slip.log -rw-r----- 1 root network 153 Apr 17 16:33 slip.log.0.bz2 |
#[root@fbsd1:~]# ls -lt /var/log | head -25
total 316 -rw------- 1 root wheel 77 Apr 17 16:33 auth.log -rw------- 1 root wheel 1590 Apr 17 16:33 auth.log.0.bz2 -rw------- 1 root wheel 77 Apr 17 16:33 cron -rw------- 1 root wheel 5020 Apr 17 16:33 cron.0.bz2 -rw------- 1 root wheel 77 Apr 17 16:33 debug.log -rw------- 1 root wheel 153 Apr 17 16:33 debug.log.0.bz2 -rw-r--r-- 1 root wheel 77 Apr 17 16:33 lpd-errs -rw-r--r-- 1 root wheel 153 Apr 17 16:33 lpd-errs.0.bz2 -rw-r----- 1 root wheel 77 Apr 17 16:33 maillog ... -rw------- 1 root wheel 77 Apr 17 16:33 security -rw------- 1 root wheel 153 Apr 17 16:33 security.0.bz2 -rw-r----- 1 root wheel 0 Apr 17 16:33 sendmail.st -rw-r----- 1 root network 77 Apr 17 16:33 slip.log -rw-r----- 1 root network 153 Apr 17 16:33 slip.log.0.bz2 -rw-r--r-- 1 root wheel 0 Apr 17 16:33 wtmp -rw------- 1 root wheel 77 Apr 17 16:33 xferlog -rw------- 1 root wheel 153 Apr 17 16:33 xferlog.0.bz2 -rw-r--r-- 1 root wheel 28056 Apr 17 16:26 lastlog -rw-r--r-- 1 root wheel 2024 Apr 17 16:26 wtmp.0 |
#[root@fbsd1:~]# echo hostname
[root@fbsd1:~]# ls -lt /var/log | head -23 total 316 -rw------- 1 root wheel 77 Apr 17 16:33 auth.log -rw------- 1 root wheel 1590 Apr 17 16:33 auth.log.0.bz2 -rw------- 1 root wheel 77 Apr 17 16:33 cron -rw------- 1 root wheel 5020 Apr 17 16:33 cron.0.bz2 -rw------- 1 root wheel 77 Apr 17 16:33 debug.log -rw------- 1 root wheel 153 Apr 17 16:33 debug.log.0.bz2 -rw-r--r-- 1 root wheel 77 Apr 17 16:33 lpd-errs -rw-r--r-- 1 root wheel 153 Apr 17 16:33 lpd-errs.0.bz2 ... -rw-r----- 1 root network 153 Apr 17 16:33 ppp.log.0.bz2 -rw------- 1 root wheel 77 Apr 17 16:33 security -rw------- 1 root wheel 153 Apr 17 16:33 security.0.bz2 -rw-r----- 1 root wheel 0 Apr 17 16:33 sendmail.st -rw-r----- 1 root network 77 Apr 17 16:33 slip.log -rw-r----- 1 root network 153 Apr 17 16:33 slip.log.0.bz2 -rw-r--r-- 1 root wheel 0 Apr 17 16:33 wtmp -rw------- 1 root wheel 77 Apr 17 16:33 xferlog -rw------- 1 root wheel 153 Apr 17 16:33 xferlog.0.bz2 hostname |
#[root@fbsd1:~]# exit
[root@fbsd1:~]# hostname fbsd1.unix.nt exit Connection to 192.168.16.21 closed. |
#date
Птн Апр 17 19:38:27 EEST 2009 |
#ssh 192.168.16.21
Password: Last login: Fri Apr 17 16:26:44 2009 from 192.168.16.1 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 ×ÙÐÏÌÎÅÎ ×ÈÏÄ × ÓÉÓÔÅÍÕ, ÎÁÐÒÉÍÅÒ Removing stale pidfile |
#[root@fbsd1:~]#
[root@fbsd1:~]# LANG=C |
#[root@fbsd1:~]#
|
#[root@fbsd1:~]# pkg_add -r squid3
[root@fbsd1:~]# pkg_add -r squid Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/squid.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/squid.tbz' by URL Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/squid3.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/squid3.tbz' by URL |
#[root@fbsd1:~]# PACKAGESITE=ftp://10.0.17.1/incom/freebsd pkg_add -r squid3
[root@fbsd1:~]# PACKAGEROOT=ftp://10.0.17.1 pkg_add -r squid3 Error: FTP Unable to get ftp://10.0.17.1/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/squid3.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://10.0.17.1/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/squid3.tbz' by URL Error: FTP Unable to get ftp://10.0.17.1/incom/freebsdsquid3.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://10.0.17.1/incom/freebsdsquid3.tbz' by URL |
#[root@fbsd1:~]# PACKAGESITE=ftp://10.0.17.1/incom/freebsd pkg_add -r squid3
[root@fbsd1:~]# PACKAGESITE=ftp://10.0.17.1/incom/freebsd/ pkg_add -r squid3 Error: FTP Unable to get ftp://10.0.17.1/incom/freebsd/squid3.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://10.0.17.1/incom/freebsd/squid3.tbz' by URL |
#[root@fbsd1:~]# cowsay
[root@fbsd1:~]# pkg_add -r cowsay Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/cowsay.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/cowsay.tbz' by URL bash: cowsay: command not found |
#[root@fbsd1:ports]# ls
[root@fbsd1:~]# cd /usr/ports/ .cvsignore arabic emulators mbone shells CHANGES archivers finance misc sysutils COPYRIGHT astro french multimedia textproc GIDs audio ftp net ukrainian INDEX-6 benchmarks games net-im vietnamese KNOBS biology german net-mgmt www LEGAL cad graphics net-p2p x11 MOVED chinese hebrew news x11-clocks Makefile comms hungarian palm x11-drivers Mk converters irc polish x11-fm README databases japanese ports-mgmt x11-fonts Templates deskutils java portuguese x11-servers Tools devel korean print x11-themes UIDs distfiles lang russian x11-toolkits UPDATING dns mail science x11-wm accessibility editors math security |
#[root@fbsd1:ports]# cd games/cowsay/
[root@fbsd1:ports]# make search key=cowsay Port: cowsay-3.03_1 Path: /usr/ports/games/cowsay Info: Configurable talking characters in ASCII art Maint: kris@FreeBSD.org B-deps: perl-5.8.8_1 R-deps: perl-5.8.8_1 WWW: http://www.nog.net/~tony/warez/cowsay.shtml Port: insub-10.1 Path: /usr/ports/irc/insub Info: Some scripts for expressing how you feel on irc and the web Maint: alfred@FreeBSD.org B-deps: cowsay-3.03_1 perl-5.8.8_1 R-deps: figlet-2.2.1 p5-Term-ANSIColor-1.11 perl-5.8.8_1 WWW: |
#[root@fbsd1:cowsay]# cd
[root@fbsd1:cowsay]# make install ===> Vulnerability check disabled, database not found => cowsay-3.03.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from ftp://ftp.nog.net/pub/tony/cowsay/. fetch: ftp://ftp.nog.net/pub/tony/cowsay/cowsay-3.03.tar.gz: No address record => Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/cowsay-3.03.tar.gz: size unknown fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/cowsay-3.03.tar.gz: size of remote file is not known cowsay-3.03.tar.gz 14 kB 24 kBps ===> Extracting for cowsay-3.03_1 ... x cows/tux.cow x cows/udder.cow x cows/vader-koala.cow x cows/www.cow x cows/vader.cow + set +x Okay, let us see if the install actually worked. Installation complete! Enjoy the cows! ===> Compressing manual pages for cowsay-3.03_1 ===> Registering installation for cowsay-3.03_1 |
#[root@fbsd1:~]#
[root@fbsd1:~]# pkg_add -r cowsay |
#[root@fbsd1:~]#
|
#[root@fbsd1:~]#
|
#[root@fbsd1:~]# pkg_info | grep cowsay
py25-elementtree-1.2.6 Container for hierarchical data structures written in Pytho py25-gnome-2.20.0 A set of Python bindings for GNOME 2 py25-gnome-desktop-2.20.0 A set of Python bindings used by modules in the GNOME Deskt py25-gobject-2.14.0 Python bindings for GObject py25-gtk-2.12.0 A set of Python bindings for GTK+ py25-gtksourceview-2.0.0 A python bindings for the version 2 of the GtkSourceView li py25-libxml2-2.6.30 Python interface for XML parser library for GNOME py25-numeric-24.2 The Numeric Extension to Python py25-orbit-2.14.3 Python bindings for ORBit2 python25-2.5.1_1 An interpreted object-oriented programming language ... xtrap-1.0.2 XTrap sample clients for X xvid-1.1.3,1 An opensource MPEG-4 codec, based on OpenDivx xvidtune-1.0.1 Video mode tuner for X xvinfo-1.0.2 Print out X-Video extension adaptor information xwd-1.0.1 Dump an image of an X window xwininfo-1.0.3 Window information utility for X xwud-1.0.1 Image displayer for X yelp-2.20.0 A help browser for the GNOME 2 desktop zenity-2.20.0 Display GNOME dialogs from the command line cowsay-3.03_1 Configurable talking characters in ASCII art |
#[root@fbsd1:~]# pkg_info -Lx cowsay
[root@fbsd1:~]# pkg_info -Ix cowsay cowsay-3.03_1 Configurable talking characters in ASCII art Information for cowsay-3.03_1: Files: /usr/local/man/man1/cowsay.1.gz /usr/local/man/man1/cowthink.1.gz /usr/local/bin/cowsay /usr/local/bin/cowthink /usr/local/share/cows/beavis.zen.cow /usr/local/share/cows/bong.cow ... /usr/local/share/cows/telebears.cow /usr/local/share/cows/three-eyes.cow /usr/local/share/cows/turkey.cow /usr/local/share/cows/turtle.cow /usr/local/share/cows/tux.cow /usr/local/share/cows/tux-stab.cow /usr/local/share/cows/udder.cow /usr/local/share/cows/vader-koala.cow /usr/local/share/cows/vader.cow /usr/local/share/cows/www.cow |
#[root@fbsd1:~]# cowsay -f /usr/local/share/cows/skeleton.cow
[root@fbsd1:~]# pkg_info -Lx cowsay | less Information for cowsay-3.03_1: Files: /usr/local/man/man1/cowsay.1.gz /usr/local/man/man1/cowthink.1.gz /usr/local/bin/cowsay /usr/local/bin/cowthink /usr/local/share/cows/beavis.zen.cow /usr/local/share/cows/bong.cow /usr/local/share/cows/box.cow ... ------- \ (__) \ /oo| \ (_"_)*+++++++++* //I#\\\\\\\\I\ I[I|I|||||I I ` I`I'///'' I I I I I I ~ ~ ~ ~ Scowleton |
#[root@fbsd1:~]# cowsay -f /usr/local/share/cows/sodomized.cow
[root@fbsd1:~]# cowsay -f /usr/local/share/cows/ beavis.zen.cow hellokitty.cow small.cow bong.cow jkh.cow sodomized.cow box.cow kiss.cow stegosaurus.cow bud-frogs.cow kitty.cow stimpy.cow bunny.cow koala.cow supermilker.cow cheese.cow kosh.cow surgery.cow cower.cow luke-koala.cow telebears.cow daemon.cow mech-and-cow three-eyes.cow default.cow meow.cow turkey.cow ... ______ < Yes! > ------ \ _ \ (_) \ ^__^ / \ \ (oo)\_____/_\ \ (__)\ ) / ||----w (( || ||>> |
#[root@fbsd1:~]# clear
[root@fbsd1:~]# cls bash: cls: command not found |
#[root@fbsd1:~]#
|
#[root@fbsd1:~]#
|
#[root@fbsd1:~]#
|
#v3#492#0#0#8521#1239987674#/root#21688#[root@fbsd1:~]#
|
#[root@fbsd1:~]#
|
#[root@fbsd1:~]# cowsay -f /usr/local/share/cows/
[root@fbsd1:~]# cowsay -f /usr/local/share/cows/ beavis.zen.cow hellokitty.cow small.cow bong.cow jkh.cow sodomized.cow box.cow kiss.cow stegosaurus.cow bud-frogs.cow kitty.cow stimpy.cow bunny.cow koala.cow supermilker.cow cheese.cow kosh.cow surgery.cow cower.cow luke-koala.cow telebears.cow daemon.cow mech-and-cow three-eyes.cow default.cow meow.cow turkey.cow dragon-and-cow.cow milk.cow turtle.cow dragon.cow moofasa.cow tux-stab.cow elephant-in-snake.cow moose.cow tux.cow elephant.cow mutilated.cow udder.cow eyes.cow ren.cow vader-koala.cow flaming-sheep.cow satanic.cow vader.cow ghostbusters.cow sheep.cow www.cow head-in.cow skeleton.cow |
#[root@fbsd1:~]#
|
#[root@fbsd1:~]#
|
#[root@fbsd1:~]#
|
#[root@fbsd1:~]# pkg_info -Ix cowsay
[root@fbsd1:~]# pkg_info -Lx cowsay Information for cowsay-3.03_1: Files: /usr/local/man/man1/cowsay.1.gz /usr/local/man/man1/cowthink.1.gz /usr/local/bin/cowsay /usr/local/bin/cowthink /usr/local/share/cows/beavis.zen.cow /usr/local/share/cows/bong.cow /usr/local/share/cows/box.cow ... /usr/local/share/cows/three-eyes.cow /usr/local/share/cows/turkey.cow /usr/local/share/cows/turtle.cow /usr/local/share/cows/tux.cow /usr/local/share/cows/tux-stab.cow /usr/local/share/cows/udder.cow /usr/local/share/cows/vader-koala.cow /usr/local/share/cows/vader.cow /usr/local/share/cows/www.cow cowsay-3.03_1 Configurable talking characters in ASCII art |
#[root@fbsd1:~]# pkg_delete -x cowsay
[root@fbsd1:~]# pkg_delete -Ix cowsay pkg_delete: illegal option -- I usage: pkg_delete [-dDfGinrvxX] [-p prefix] pkg-name ... pkg_delete -a [flags] |
#[root@fbsd1:~]# cowsay
bash: /usr/local/bin/cowsay: No such file or directory |
#[root@fbsd1:cowsay]# make install
[root@fbsd1:~]# cd - /usr/ports/games/cowsay |
#[root@fbsd1:cowsay]# cowsay
bash: /usr/local/bin/cowsay: No such file or directory |
#[root@fbsd1:cowsay]# make install
[root@fbsd1:cowsay]# make clean ===> Cleaning for cowsay-3.03_1 ===> Vulnerability check disabled, database not found ===> Extracting for cowsay-3.03_1 => MD5 Checksum OK for cowsay-3.03.tar.gz. => SHA256 Checksum OK for cowsay-3.03.tar.gz. ===> cowsay-3.03_1 depends on file: /usr/local/bin/perl5.8.8 - found ===> Patching for cowsay-3.03_1 ===> cowsay-3.03_1 depends on file: /usr/local/bin/perl5.8.8 - found ===> Applying FreeBSD patches for cowsay-3.03_1 ... x cows/tux.cow x cows/udder.cow x cows/vader-koala.cow x cows/www.cow x cows/vader.cow + set +x Okay, let us see if the install actually worked. Installation complete! Enjoy the cows! ===> Compressing manual pages for cowsay-3.03_1 ===> Registering installation for cowsay-3.03_1 |
#[root@fbsd1:cowsay]# cowsay
sdf _____ < sdf > ----- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || |
#[root@fbsd1:~]#
[root@fbsd1:cowsay]# cd |
#[root@fbsd1:~]#
|
#[root@fbsd1:~]#
|
#[root@fbsd1:~]# cd -
/usr/ports/games/cowsay |
#[root@fbsd1:cowsay]# cd ../..
|
#[root@fbsd1:ports]# pwd
/usr/ports |
#[root@fbsd1:ports]# make search key=knok
[root@fbsd1:ports]# make search name=knoker Port: ja-p5-Text-Kakasi-2.04 Path: /usr/ports/japanese/p5-Text-Kakasi Info: Kakasi library module for Perl5 Maint: ports@FreeBSD.org B-deps: ja-kakasi-2.3.4 perl-5.8.8_1 R-deps: ja-kakasi-2.3.4 perl-5.8.8_1 WWW: http://www.daionet.gr.jp/~knok/kakasi/ |
#[root@fbsd1:ports]# cd www/sq
WWW: http://dansguardian.org Port: jesred-1.2.1_1 Path: /usr/ports/www/jesred Info: A redirector for Squid Maint: dsh@vlink.ru B-deps: R-deps: WWW: http://www.linofee.org/~elkner/webtools/jesred/ Port: lightsquid-1.7.1_1 Path: /usr/ports/www/lightsquid ... Port: srg-1.1_1 Path: /usr/ports/www/srg Info: A Squid Report Generator Maint: ds@tic-tac.ru B-deps: bison-2.3_3,1 gettext-0.16.1_3 gmake-3.81_2 libiconv-1.11_1 m4-1.4.9,1 R-deps: WWW: http://www.crc.net.nz/software/srg.php sqstat/ squid30/ squidguard/ squidview/ squid/ squid_radius_auth/ squidpurge/ squirm/ squid25/ squidclients/ squidtimes/ squishdot/ |
#[root@fbsd1:ports]# cd www/squid
squid/ squid_radius_auth/ squidpurge/ squid25/ squidclients/ squidtimes/ squid30/ squidguard/ squidview/ |
#[root@fbsd1:squid30]# make install
x x[ ] SQUID_VIA_DB Enable forward/via database x x x x[ ] SQUID_CACHE_DIGESTS Enable cache digests x x x x[X] SQUID_WCCP Enable Web Cache Coordination Prot. v1 x x x x[ ] SQUID_WCCPV2 Enable Web Cache Coordination Prot. v2 x x x x[ ] SQUID_STRICT_HTTP Be strictly HTTP compliant x x x x[X] SQUID_IDENT Enable ident (RFC 931) lookups x x tqmqqqq.(+)qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu x [ OK ] Cancel x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj ===> Vulnerability check disabled, database not found ===> Found saved configuration for squid-3.0.r1.20071001_1 => squid-3.0.RC1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/squid3.0. => Attempting to fetch from ftp://ftp.squid-cache.org/pub/squid-3/DEVEL/. ^C^C |
#[root@fbsd1:squid30]#
|
#[root@fbsd1:squid30]#
|
#[root@fbsd1:squid30]# make install
===> Vulnerability check disabled, database not found ===> Found saved configuration for squid-3.0.r1.20071001_1 => squid-3.0.RC1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/squid3.0. => Attempting to fetch from ftp://ftp.squid-cache.org/pub/squid-3/DEVEL/. ^Cfetch: transfer interrupted |
#[root@fbsd1:squid30]# make install
[root@fbsd1:squid30]# make clean ===> Cleaning for squid-3.0.r1.20071001_1 ===> Vulnerability check disabled, database not found ===> Found saved configuration for squid-3.0.r1.20071001_1 => squid-3.0.RC1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/squid3.0. => Attempting to fetch from ftp://ftp.squid-cache.org/pub/squid-3/DEVEL/. ^Cfetch: transfer interrupted |
#[root@fbsd1:squid30]# make config
x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x x x[ ] SQUID_LDAP_AUTH Install LDAP authentication helpers x x x x[X] SQUID_SASL_AUTH Install SASL authentication helpers x x x x[X] SQUID_DELAY_POOLS Enable delay pools x x x x[X] SQUID_SNMP Enable SNMP support x x x x[X] SQUID_CARP Enable CARP support x x x x[ ] SQUID_SSL Enable SSL support for reverse proxies x x x x[ ] SQUID_PINGER Install the icmp helper x x x x[ ] SQUID_DNS_HELPER Use the old 'dnsserver' helper x x x x[ ] SQUID_HTCP Enable HTCP support x x x x[ ] SQUID_VIA_DB Enable forward/via database x x x x[ ] SQUID_CACHE_DIGESTS Enable cache digests x x x x[X] SQUID_WCCP Enable Web Cache Coordination Prot. v1 x x x x[ ] SQUID_WCCPV2 Enable Web Cache Coordination Prot. v2 x x x x[ ] SQUID_STRICT_HTTP Be strictly HTTP compliant x x x x[X] SQUID_IDENT Enable ident (RFC 931) lookups x x tqmqqqq.(+)qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu x [ OK ] Cancel x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj |
#[root@fbsd1:squid30]# cat pkg-descr
[root@fbsd1:squid30]# ls -l total 24 -rw-r--r-- 1 root wheel 16655 Dec 5 2007 Makefile -rw-r--r-- 1 root wheel 421 Oct 5 2007 distinfo drwxr-xr-x 2 root wheel 512 Mar 15 2008 files -rw-r--r-- 1 root wheel 635 Oct 5 2007 pkg-descr Squid is a high-performance proxy caching server for web clients, supporting FTP, gopher, and HTTP data objects. Unlike traditional caching software, Squid handles all requests in a single, non-blocking, I/O-driven process. Squid supports SSL, extensive access controls, and full request logging. By using the lightweight Internet Cache Protocol, Squid caches can be arranged in a hierarchy or mesh for additional bandwidth savings. This version of Squid is a pre-release snapshot of the upcoming Squid 3. It is primarily meant for pre-release testing and should not yet be put into production use. WWW: http://www.squid-cache.org/ |
#[root@fbsd1:squid30]# cd
|
#[root@fbsd1:~]#
[root@fbsd1:~]# ls -l /usr/ports/distfiles/ total 30 -rw-r--r-- 1 root wheel 15189 Apr 17 16:58 cowsay-3.03.tar.gz -rw-r--r-- 1 root wheel 1769 Apr 15 16:06 pidof.tar.gz -rw-r--r-- 1 root wheel 10058 Apr 15 16:39 pstree-2.32.tar.gz drwxr-xr-x 2 root wheel 512 Apr 17 17:05 squid3.0 |
#[root@fbsd1:~]#
|
#[root@fbsd1:~]#
|
#[root@fbsd1:~]# vim ports-supfile
# IMPORTANT: Change the next line to use one of the CVSup mirror sites # listed at http://www.freebsd.org/doc/handbook/mirrors.html. *default host=CHANGE_THIS.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=. *default host=ftp7.ua # If you seem to be limited by CPU rather than network or disk bandwidth, try # commenting out the following line. (Normally, today's CPUs are fast enough # commenting out the following line. (Normally, today's CPUs are fast enough # that you want to run compression.) "ports-supfile" 137 lines, 3810 characters written |
#[root@fbsd1:~]# vim ports-supfile
#ports-ukrainian #ports-vietnamese ports-www #ports-x11 #ports-x11-clocks #ports-x11-drivers #ports-x11-fm #ports-www #ports-x11-fonts #ports-x11-servers #ports-x11-themes #ports-x11-toolkits "ports-supfile" 137 lines, 3810 characters written |
#[root@fbsd1:~]# cvs
[root@fbsd1:~]# cvs cvs cvsbug cvs cvsbug |
#[root@fbsd1:~]# cvs
cvs cvsbug |
#[root@fbsd1:~]# whereis cvsup
[root@fbsd1:~]# whereis cvs cvs: /usr/bin/cvs /usr/share/man/man1/cvs.1.gz /usr/src/gnu/usr.bin/cvs cvsup: /usr/ports/net/cvsup |
#[root@fbsd1:~]# cd /usr/ports/net/cvsup-without-gui/
[root@fbsd1:~]# cd /usr/ports/net/cvsup cvsup/ cvsup-mirror/ cvsup-without-gui/ cvsupchk/ |
#apt-get update
[root@debian1:~]# cat /etc/apt/sources.list deb http://10.0.35.1:9999/debian unstable main Получено:1 http://10.0.35.1 unstable Release.gpg [197B] Получено:2 http://10.0.35.1 unstable Release [93,9kB] Получено:3 http://10.0.35.1 unstable/main Packages/DiffIndex [2038B] Ign http://10.0.35.1 unstable/main Packages Получено:4 http://10.0.35.1 unstable/main Packages [7547kB] Получено 7643kB за 9s (849kB/c) Чтение списков пакетов... Готово |
#find /var/cache/ -name Packages.gz
|
#find /var/cache/ -name Packages*
|
#find /var/
|
#find /
|
#[root@fbsd1:cvsup-without-gui]#
as -o PerfTool_m.o PerfTool.ms as -o PerfTool_i.o PerfTool.is as -o BundleRep_i.o BundleRep.is as -o Bundle_m.o Bundle.ms as -o Bundle_i.o Bundle.is as -o ETimer_m.o ETimer.ms as -o ETimer_i.o ETimer.is as -o TextSeq_m.o TextSeq.ms as -o TextSeqRep_i.o TextSeqRep.is as -o TextSeq_i.o TextSeq.is ... as -o Int32_i.o Int32.is as -o Char_m.o Char.ms as -o Char_i.o Char.is as -o Boolean_m.o Boolean.ms as -o Boolean_i.o Boolean.is as -o Sx_m.o Sx.ms as -o Sx_i.o Sx.is as -o TextListSort_m.o TextListSort.ms as -o TextListSort_i.o TextListSort.is as -o RefListSort_m.o RefListSort.ms |
#find / -name Packages
|
#find / -name p
/usr/lib/mime/packages /usr/lib/tasksel/packages |
#ls /var/cache/
apt debconf fontconfig ldconfig locate man samba |
#[root@fbsd1:cvsup-without-gui]#
|
#[root@fbsd1:cvsup-without-gui]# cvs
[root@fbsd1:cvsup-without-gui]# cvs cvs cvsbug cvsup cvsupd cvs cvsbug cvsup cvsupd |
#[root@fbsd1:cvsup-without-gui]# cd
|
#ls /var/cache/apt/archives/
libxt6_1%3a1.0.2-2_i386.deb libxtrap6_1%3a1.0.0-4_i386.deb libxtst6_1%3a1.0.1-5_i386.deb libxv1_1%3a1.0.2-1_i386.deb libxxf86dga1_2%3a1.0.1-2_i386.deb libxxf86vm1_1%3a1.0.1-2_i386.deb libyaml-perl_0.62-1_all.deb linux-kernel-headers_2.6.18-7_i386.deb locales_2.3.6.ds1-13etch2_all.deb locales_2.9-7_all.deb ... xserver-xorg-video-vesa_1%3a1.3.0-1_i386.deb xserver-xorg-video-vga_1%3a4.1.0-3_i386.deb xserver-xorg-video-via_1%3a0.2.1-6_i386.deb xserver-xorg-video-vmware_1%3a10.13.0-3_i386.deb xserver-xorg-video-voodoo_1%3a1.1.0-4_i386.deb xterm_222-1etch2_i386.deb xutils_1%3a7.1.ds.3-1_i386.deb xutils-dev_1%3a7.1.ds-6_i386.deb x-window-system_1%3a7.1.0-19_all.deb zlib1g_1%3a1.2.3-13_i386.deb |
#ls /var/cache/apt/archives/ | less
|
#[root@fbsd1:~]# cvsup -g -L 2 ports-supfile
Parsing supfile "ports-supfile" Connecting to ftp7.ua.FreeBSD.org Connected to ftp7.ua.FreeBSD.org Rejected by server: Access limit exceeded; try again later Will retry at 17:40:52 ^C |
#[root@fbsd1:~]# lynx http://www.freebsd.org/doc/handbook/mirrors.html
+ ftp://ftp11.ua.FreeBSD.org/pub/FreeBSD/ (ftp) + ftp://ftp.ua.FreeBSD.org/pub/FreeBSD/ (ftp) + ftp://ftp2.uk.FreeBSD.org/pub/FreeBSD/ (ftp / http / rsync) United Kingdom + ftp://ftp3.uk.FreeBSD.org/pub/FreeBSD/ (ftp) In case of problems, please contact the hostmaster + ftp://ftp4.uk.FreeBSD.org/pub/FreeBSD/ (ftp) ORS-C + ftp://ftp5.uk.FreeBSD.org/pub/FreeBSD/ (ftp) + ftp://ftp6.uk.FreeBSD.org/pub/FreeBSD/ (ftp) USA Are you sure you want to quit? (y) |
#ls /var/cache/debconf/
config.dat passwords.dat templates.dat-old config.dat-old templates.dat |
Время первой команды журнала | 19:27:15 2009- 4-17 | ||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 20:36:46 2009- 4-17 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 14.85 | ||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | ||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.16 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.45 | ||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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