/l3/users/10-09-2007/nt-bsdnet/fbsd3.unix.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 |
|
#dig taras.unix.nt mx
; <<>> DiG 9.3.3 <<>> taras.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15160 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;taras.unix.nt. IN MX ;; ANSWER SECTION: taras.unix.nt. 10800000 IN MX 5 host1.taras.unix.nt. ;; AUTHORITY SECTION: taras.unix.nt. 10800000 IN NS host1.taras.unix.nt. ;; ADDITIONAL SECTION: host1.taras.unix.nt. 10800000 IN A 192.168.15.22 ;; Query time: 2 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 13 16:33:26 2007 ;; MSG SIZE rcvd: 83 |
$telnet 192.168.15.21 65000
Trying 192.168.15.21... Connected to host21.unix.nt. Escape character is '^]'. 2+3# 5 ^C^C}^] telnet> q Connection closed. |
#vim /etc/n
|
#vim /etc/namedb/
|
#vim /etc/namedb/db.taras.unix.nt
|
#less /etc/inetd.conf
|
#less /usr/l
|
#less /usr/share/examples/p
|
#less /usr/share/examples/s
|
#less /usr/share/examples/cvsup/
|
#less /usr/share/examples/cvsup/cvs-supfile
|
$ssh root@192.168.15.21
Password: Last login: Fri Sep 14 09:46:58 2007 from host23.unix.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 2007 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile Agent pid 2026 Enter passphrase for /root/.ssh/id_rsa: Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa) Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa) Identity added: /root/.ssh/identity (root@fbsd1.unix.nt) |
#screen -x
|
#hostname
24 #finger stream tcp6 24 #finger stream tcp6 25 # [root@host1:~]# ldd /usr/sbin/inetd /usr/sbin/inetd: libutil.so.5 => /lib/libutil.so.5 (0x28082000) libwrap.so.4 => /usr/lib/libwrap.so.4 (0x2808e000) libipsec.so.2 => /lib/libipsec.so.2 (0x28095000) libc.so.6 => /lib/libc.so.6 (0x2809b000) [root@host1:~]# strin host1.taras.unix.nt |
#vim /etc/rc.conf
|
#mk
mk-amd-map mkdep mkfifo mkhtmlindex mklocale mkstr mkbundle mkdir mkfontdir mkhybrid mknod mktemp mkcfm mkdirhier mkfontscale mkisofs mksnap_ffs mkuzip |
#mk
mk-amd-map mkdep mkfifo mkhtmlindex mklocale mkstr mkbundle mkdir mkfontdir mkhybrid mknod mktemp mkcfm mkdirhier mkfontscale mkisofs mksnap_ffs mkuzip |
#cd /etc/ma
Makefile freebsd.submit.mc log.ecp README helpfile mailer.conf access.sample host1.andrey.unix.nt.cf mailertable.samp aliases host1.andrey.unix.nt.mc sendmail.cf aliases.db host1.andrey.unix.nt.submit.cf submit.cf freebsd.cf host1.andrey.unix.nt.submit.mc virtusertable.sa freebsd.mc local-host-names freebsd.submit.cf log.eci [root@host1:mail]# mac.conf make.conf master.passwd mail/ manpath.config mail.rc manpath.config.bak |
#cd /etc/mail
mail/ mail.rc |
#cd /etc/mail
|
#ll
bash: ll: command not found |
#ls
Makefile host1.taras.unix.nt.cf README host1.taras.unix.nt.mc access.sample host1.taras.unix.nt.submit.cf aliases host1.taras.unix.nt.submit.mc aliases.db local-host-names freebsd.cf mailer.conf freebsd.mc mailertable.sample freebsd.submit.cf sendmail.cf freebsd.submit.mc submit.cf helpfile virtusertable.sample |
#mc
|
#alias ll='ls -l'
|
#less sendmail.cf
|
#ll
total 356 -rw-r--r-- 1 root wheel 6809 Jan 12 2007 Makefile -rw-r--r-- 1 root wheel 2896 Jan 12 2007 README -rw-r--r-- 1 root wheel 407 Jan 12 2007 access.sample -rw-r--r-- 1 root wheel 1618 Jan 12 2007 aliases -rw-r----- 1 root wheel 16384 Sep 7 14:27 aliases.db -rw-r--r-- 1 root wheel 57958 Jan 12 2007 freebsd.cf -rw-r--r-- 1 root wheel 4117 Jan 12 2007 freebsd.mc -r--r--r-- 1 root wheel 40433 Jan 12 2007 freebsd.submit.cf -r--r--r-- 1 root wheel 899 Jan 12 2007 freebsd.submit.mc -r--r--r-- 1 root wheel 5594 Jan 12 2007 helpfile -rw-r--r-- 1 root wheel 57910 Sep 13 15:53 host1.taras.unix.nt.cf -rw-r--r-- 1 root wheel 4117 Sep 13 15:53 host1.taras.unix.nt.mc -rw-r--r-- 1 root wheel 40385 Sep 13 15:53 host1.taras.unix.nt.submit.cf -r--r--r-- 1 root wheel 899 Sep 13 15:53 host1.taras.unix.nt.submit.mc -rw-r--r-- 1 root wheel 14 Sep 13 15:53 local-host-names -rw-r--r-- 1 root wheel 400 Jan 12 2007 mailer.conf -rw-r--r-- 1 root wheel 243 Jan 12 2007 mailertable.sample -rw-r--r-- 1 root wheel 57910 Sep 13 15:56 sendmail.cf -r--r--r-- 1 root wheel 40433 Jan 12 2007 submit.cf -rw-r--r-- 1 root wheel 569 Jan 12 2007 virtusertable.sample |
#less host1.taras.unix.nt.cf
|
#ll
total 356 -rw-r--r-- 1 root wheel 6809 Jan 12 2007 Makefile -rw-r--r-- 1 root wheel 2896 Jan 12 2007 README -rw-r--r-- 1 root wheel 407 Jan 12 2007 access.sample -rw-r--r-- 1 root wheel 1618 Jan 12 2007 aliases -rw-r----- 1 root wheel 16384 Sep 7 14:27 aliases.db -rw-r--r-- 1 root wheel 57958 Jan 12 2007 freebsd.cf -rw-r--r-- 1 root wheel 4117 Jan 12 2007 freebsd.mc -r--r--r-- 1 root wheel 40433 Jan 12 2007 freebsd.submit.cf -r--r--r-- 1 root wheel 899 Jan 12 2007 freebsd.submit.mc -r--r--r-- 1 root wheel 5594 Jan 12 2007 helpfile -rw-r--r-- 1 root wheel 57910 Sep 13 15:53 host1.taras.unix.nt.cf -rw-r--r-- 1 root wheel 4117 Sep 13 15:53 host1.taras.unix.nt.mc -rw-r--r-- 1 root wheel 40385 Sep 13 15:53 host1.taras.unix.nt.submit.cf -r--r--r-- 1 root wheel 899 Sep 13 15:53 host1.taras.unix.nt.submit.mc -rw-r--r-- 1 root wheel 14 Sep 13 15:53 local-host-names -rw-r--r-- 1 root wheel 400 Jan 12 2007 mailer.conf -rw-r--r-- 1 root wheel 243 Jan 12 2007 mailertable.sample -rw-r--r-- 1 root wheel 57910 Sep 13 15:56 sendmail.cf -r--r--r-- 1 root wheel 40433 Jan 12 2007 submit.cf -rw-r--r-- 1 root wheel 569 Jan 12 2007 virtusertable.sample |
#less local-host-names
|
#mc
|
#mc
|
#man mcs
|
#ll
-r--r--r-- 1 root wheel 5594 Jan 12 2007 helpfile -rw-r--r-- 1 root wheel 57910 Sep 13 15:53 host1.taras.unix.nt.cf -rw-r--r-- 1 root wheel 4117 Sep 13 15:53 host1.taras.unix.nt.mc -rw-r--r-- 1 root wheel 40385 Sep 13 15:53 host1.taras.unix.nt.submit.cf -r--r--r-- 1 root wheel 899 Sep 13 15:53 host1.taras.unix.nt.submit.mc -rw-r--r-- 1 root wheel 14 Sep 13 15:53 local-host-names -rw-r--r-- 1 root wheel 400 Jan 12 2007 mailer.conf -rw-r--r-- 1 root wheel 243 Jan 12 2007 mailertable.sample -rw-r--r-- 1 root wheel 57910 Sep 13 15:56 sendmail.cf -r--r--r-- 1 root wheel 40433 Jan 12 2007 submit.cf -rw-r--r-- 1 root wheel 569 Jan 12 2007 virtusertable.sample |
#less host1.taras.unix.nt.
|
#less host1.taras.unix.nt.mc
|
#ll
total 356 -rw-r--r-- 1 root wheel 6809 Jan 12 2007 Makefile -rw-r--r-- 1 root wheel 2896 Jan 12 2007 README -rw-r--r-- 1 root wheel 407 Jan 12 2007 access.sample -rw-r--r-- 1 root wheel 1618 Jan 12 2007 aliases -rw-r----- 1 root wheel 16384 Sep 7 14:27 aliases.db -rw-r--r-- 1 root wheel 57958 Jan 12 2007 freebsd.cf -rw-r--r-- 1 root wheel 4117 Jan 12 2007 freebsd.mc -r--r--r-- 1 root wheel 40433 Jan 12 2007 freebsd.submit.cf -r--r--r-- 1 root wheel 899 Jan 12 2007 freebsd.submit.mc -r--r--r-- 1 root wheel 5594 Jan 12 2007 helpfile -rw-r--r-- 1 root wheel 57910 Sep 13 15:53 host1.taras.unix.nt.cf -rw-r--r-- 1 root wheel 4117 Sep 13 15:53 host1.taras.unix.nt.mc -rw-r--r-- 1 root wheel 40385 Sep 13 15:53 host1.taras.unix.nt.submit.cf -r--r--r-- 1 root wheel 899 Sep 13 15:53 host1.taras.unix.nt.submit.mc -rw-r--r-- 1 root wheel 14 Sep 13 15:53 local-host-names -rw-r--r-- 1 root wheel 400 Jan 12 2007 mailer.conf -rw-r--r-- 1 root wheel 243 Jan 12 2007 mailertable.sample -rw-r--r-- 1 root wheel 57910 Sep 13 15:56 sendmail.cf -r--r--r-- 1 root wheel 40433 Jan 12 2007 submit.cf -rw-r--r-- 1 root wheel 569 Jan 12 2007 virtusertable.sample |
#vim host1.taras.unix.nt.mc
|
#man mcs
|
#ll
total 356 -rw-r--r-- 1 root wheel 6809 Jan 12 2007 Makefile -rw-r--r-- 1 root wheel 2896 Jan 12 2007 README -rw-r--r-- 1 root wheel 407 Jan 12 2007 access.sample -rw-r--r-- 1 root wheel 1618 Jan 12 2007 aliases -rw-r----- 1 root wheel 16384 Sep 7 14:27 aliases.db -rw-r--r-- 1 root wheel 57958 Jan 12 2007 freebsd.cf -rw-r--r-- 1 root wheel 4117 Jan 12 2007 freebsd.mc -r--r--r-- 1 root wheel 40433 Jan 12 2007 freebsd.submit.cf -r--r--r-- 1 root wheel 899 Jan 12 2007 freebsd.submit.mc -r--r--r-- 1 root wheel 5594 Jan 12 2007 helpfile -rw-r--r-- 1 root wheel 57910 Sep 13 15:53 host1.taras.unix.nt.cf -rw-r--r-- 1 root wheel 4117 Sep 13 15:53 host1.taras.unix.nt.mc -rw-r--r-- 1 root wheel 40385 Sep 13 15:53 host1.taras.unix.nt.submit.cf -r--r--r-- 1 root wheel 899 Sep 13 15:53 host1.taras.unix.nt.submit.mc -rw-r--r-- 1 root wheel 14 Sep 13 15:53 local-host-names -rw-r--r-- 1 root wheel 400 Jan 12 2007 mailer.conf -rw-r--r-- 1 root wheel 243 Jan 12 2007 mailertable.sample -rw-r--r-- 1 root wheel 57910 Sep 13 15:56 sendmail.cf -r--r--r-- 1 root wheel 40433 Jan 12 2007 submit.cf -rw-r--r-- 1 root wheel 569 Jan 12 2007 virtusertable.sample |
#vim host1.taras.unix.nt.mc
|
#make
|
#/etc/rc.d/sendmail status
sendmail is running as pid 896. sendmail_clientmqueue is running as pid 900. |
#less
|
#ll
total 356 -rw-r--r-- 1 root wheel 6809 Jan 12 2007 Makefile -rw-r--r-- 1 root wheel 2896 Jan 12 2007 README -rw-r--r-- 1 root wheel 407 Jan 12 2007 access.sample -rw-r--r-- 1 root wheel 1618 Jan 12 2007 aliases -rw-r----- 1 root wheel 16384 Sep 7 14:27 aliases.db -rw-r--r-- 1 root wheel 57958 Jan 12 2007 freebsd.cf -rw-r--r-- 1 root wheel 4117 Jan 12 2007 freebsd.mc -r--r--r-- 1 root wheel 40433 Jan 12 2007 freebsd.submit.cf -r--r--r-- 1 root wheel 899 Jan 12 2007 freebsd.submit.mc -r--r--r-- 1 root wheel 5594 Jan 12 2007 helpfile -rw-r--r-- 1 root wheel 57910 Sep 13 15:53 host1.taras.unix.nt.cf -rw-r--r-- 1 root wheel 4117 Sep 13 15:53 host1.taras.unix.nt.mc -rw-r--r-- 1 root wheel 40385 Sep 13 15:53 host1.taras.unix.nt.submit.cf -r--r--r-- 1 root wheel 899 Sep 13 15:53 host1.taras.unix.nt.submit.mc -rw-r--r-- 1 root wheel 14 Sep 13 15:53 local-host-names -rw-r--r-- 1 root wheel 400 Jan 12 2007 mailer.conf -rw-r--r-- 1 root wheel 243 Jan 12 2007 mailertable.sample -rw-r--r-- 1 root wheel 57910 Sep 13 15:56 sendmail.cf -r--r--r-- 1 root wheel 40433 Jan 12 2007 submit.cf -rw-r--r-- 1 root wheel 569 Jan 12 2007 virtusertable.sample |
#less Makefile
|
#cd /usr/ports/
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#cd security/clam
bash: cd: security/clam: No such file or directory |
#cd ./curity/clam
201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false bash: cd: ./security/clam: No such file or directory |
#cd ./s
science/ security/ shells/ sysutils/ |
#cd ./security/c
ca-roots/ clamav/ crack/ calife/ clamav-devel/ cracklib/ calife-devel/ clamcour/ crank/ ccrypt/ clamsmtp/ cryptlib/ cfs/ clusterssh/ cryptopp/ cfv/ cmd5checkpw/ cryptplug/ checkpassword/ cops/ cutlass/ checkpassword-pam/ courier-authlib/ cvm/ chkrootkit/ courier-authlib-base/ cyrus-sasl/ chroot_safe/ courierpassd/ cyrus-sasl2/ chrootuid/ courierpasswd/ cyrus-sasl2-ldapdb/ cksfv/ courieruserinfo/ cyrus-sasl2-saslauthd/ clamassassin/ cp2fwb/ |
#cd ./security/c
calife-devel/ clamcour/ crank/ ccrypt/ clamsmtp/ cryptlib/ cfs/ clusterssh/ cryptopp/ cfv/ cmd5checkpw/ cryptplug/ checkpassword/ cops/ cutlass/ checkpassword-pam/ courier-authlib/ cvm/ chkrootkit/ courier-authlib-base/ cyrus-sasl/ chroot_safe/ courierpassd/ cyrus-sasl2/ chrootuid/ courierpasswd/ cyrus-sasl2-ldapdb/ cksfv/ courieruserinfo/ cyrus-sasl2-saslauthd/ clamassassin/ cp2fwb/ |
#cd ./security/cl
clamassassin/ clamav-devel/ clamsmtp/ clamav/ clamcour/ clusterssh/ |
#cd ./security/clama
clamassassin/ clamav/ clamav-devel/ |
#cd ./security/clama
clamassassin/ clamav/ clamav-devel/ |
#cd ./security/clamav
|
#make install
checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of cc... none checking for a sed that does not truncate output... /usr/bin/sed checking build system type... i386-portbld-freebsd6.2 checking host system type... i386-portbld-freebsd6.2 checking for grep that handles long lines and -e... /usr/bin/grep |
$cd /usr/ports/security/
x x x x tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu x [ OK ] Cancel x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj ===> Vulnerability check disabled, database not found ===> Found saved configuration for clamav-0.88.5 => clamav-0.88.5.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://heanet.dl.sourceforge.net/sourceforge/clamav/. fetch: http://heanet.dl.sourceforge.net/sourceforge/clamav/clamav-0.88.5.tar.gz: Internal Server Error => Attempting to fetch from http://nchc.dl.sourceforge.net/sourceforge/clamav/. clamav-0.88.5.tar.gz 53% of 8460 kB 19 kBps 03m24s Display all 710 possibilities? (y or n) |
$cd /usr/ports/security/c
ca-roots/ clamav/ crack/ calife/ clamav-devel/ cracklib/ calife-devel/ clamcour/ crank/ ccrypt/ clamsmtp/ cryptlib/ cfs/ clusterssh/ cryptopp/ cfv/ cmd5checkpw/ cryptplug/ checkpassword/ cops/ cutlass/ checkpassword-pam/ courier-authlib/ cvm/ chkrootkit/ courier-authlib-base/ cyrus-sasl/ chroot_safe/ courierpassd/ cyrus-sasl2/ chrootuid/ courierpasswd/ cyrus-sasl2-ldapdb/ cksfv/ courieruserinfo/ cyrus-sasl2-saslauthd/ clamassassin/ cp2fwb/ |
$cd /usr/ports/security/clam
clamassassin/ clamav/ clamav-devel/ clamcour/ clamsmtp/ |
$cd /usr/ports/security/clamav
x x x x tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu x [ OK ] Cancel x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj ===> Vulnerability check disabled, database not found ===> Found saved configuration for clamav-0.88.5 => clamav-0.88.5.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://heanet.dl.sourceforge.net/sourceforge/clamav/. fetch: http://heanet.dl.sourceforge.net/sourceforge/clamav/clamav-0.88.5.tar.gz: Internal Server Error => Attempting to fetch from http://nchc.dl.sourceforge.net/sourceforge/clamav/. clamav-0.88.5.tar.gz 57% of 8460 kB 19 kBps 03m06s clamav/ clamav-devel/ |
$cd /usr/ports/security/clamav/
|
$ll
bash: ll: command not found |
$alias ll='ls -l'
|
$ll
total 14 -rw-r--r-- 1 root wheel 5063 Oct 16 2006 Makefile -rw-r--r-- 1 root wheel 197 Oct 16 2006 distinfo drwxr-xr-x 2 root wheel 512 Sep 7 14:23 files -rw-r--r-- 1 root wheel 345 Jun 15 2004 pkg-descr -rw-r--r-- 1 root wheel 896 Oct 16 2006 pkg-plist |
$less Makefile
|
$ll
===> Found saved configuration for clamav-0.88.5 => clamav-0.88.5.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://heanet.dl.sourceforge.net/sourceforge/clamav/. fetch: http://heanet.dl.sourceforge.net/sourceforge/clamav/clamav-0.88.5.tar.gz: Internal Server Error => Attempting to fetch from http://nchc.dl.sourceforge.net/sourceforge/clamav/. clamav-0.88.5.tar.gz 97% of 8460 kB 20 kBps 00m12s total 14 -rw-r--r-- 1 root wheel 5063 Oct 16 2006 Makefile -rw-r--r-- 1 root wheel 197 Oct 16 2006 distinfo drwxr-xr-x 2 root wheel 512 Sep 7 14:23 files -rw-r--r-- 1 root wheel 345 Jun 15 2004 pkg-descr -rw-r--r-- 1 root wheel 896 Oct 16 2006 pkg-plist |
$make config
x x [X] CURL Support URL downloading x x x x [X] LIBUNRAR Support for external Unrar library x x x x [ ] STDERR Print logs to stderr instead of stdout x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu x OK [Cancel] x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj ===> Options unchanged |
$make config
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu x [ OK ] Cancel x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj ===> Switching to root credentials to write /var/db/ports/clamav/options Password: ===> Returning to user credentials |
$make config
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu x [ OK ] Cancel x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj ===> Switching to root credentials to write /var/db/ports/clamav/options Password: ===> Returning to user credentials |
$ll
total 16 -rw-r--r-- 1 root wheel 5063 Oct 16 2006 Makefile -rw-r--r-- 1 root wheel 197 Oct 16 2006 distinfo drwxr-xr-x 2 root wheel 512 Sep 7 14:23 files -rw-r--r-- 1 root wheel 345 Jun 15 2004 pkg-descr -rw-r--r-- 1 root wheel 896 Oct 16 2006 pkg-plist drwxr-xr-x 3 root wheel 512 Sep 14 10:14 work |
$pwd
===> Patching for clamav-0.88.5 ===> Applying extra patch /usr/ports/security/clamav/files/extra-patch-libunrar ===> Applying FreeBSD patches for clamav-0.88.5 ===> clamav-0.88.5 depends on file: /usr/local/bin/libtool - not found ===> Verifying install for /usr/local/bin/libtool in /usr/ports/devel/libtool15 ===> Vulnerability check disabled, database not found => libtool-1.5.22.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://ftp.gnu.org/gnu/libtool/. fetch: http://ftp.gnu.org/gnu/libtool/libtool-1.5.22.tar.gz: Internal Server Error => Attempting to fetch from ftp://ftp.gnu.org/gnu/libtool/. libtool-1.5.22.tar.gz 49% of 2853 kB 18 kBps 01m17s /usr/ports/security/clamav |
$su -
207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false ClamAV update process started at Fri Sep 14 10:45:40 2007 WARNING: Your ClamAV installation is OUTDATED! WARNING: Local version: 0.88.5 Recommended version: 0.91.2 DON'T PANIC! Read http://www.clamav.net/faq.html Downloading main.cvd [-] Password: Removing stale pidfile Agent pid 29012 |
#pwd
201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false /usr/ports/security/clamav |
#uptime
201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false 10:39AM up 1:35, 1 user, load averages: 0.57, 0.77, 0.87 |
#man tail
|
#vim /etc/rc.conf
|
#vim /etc/rc.conf
|
#freshclam
204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false ClamAV update process started at Fri Sep 14 10:45:40 2007 WARNING: Your ClamAV installation is OUTDATED! WARNING: Local version: 0.88.5 Recommended version: 0.91.2 DON'T PANIC! Read http://www.clamav.net/faq.html |
#cd /usr/ports/mail/p
Display all 170 possibilities? (y or n) |
#cd /usr/ports/mail/p5-
p5-Email-LocalDelivery/ p5-Mail-MboxParser/ p5-Email-LocalDelivery-Ezmlm/ p5-Mail-OpenRelay-Simple/ p5-Email-MIME/ p5-Mail-POP3Client/ p5-Email-MIME-Attachment-Stripper/ p5-Mail-Procmail/ p5-Email-MIME-ContentType/ p5-Mail-Procmailrc/ p5-Email-MIME-Creator/ p5-Mail-QuoteWrap/ p5-Email-MIME-Encodings/ p5-Mail-RBL/ p5-Email-MIME-Modifier/ p5-Mail-RFC822-Address/ p5-Email-MessageID/ p5-Mail-SPF-Query/ p5-Email-Send/ p5-Mail-SRS/ p5-Email-Simple/ p5-Mail-SendEasy/ |
#cd /usr/ports/mail/
|
#cd ./p5-M
p5-Mail-Bulkmail/ p5-Mail-RFC822-Address/ p5-Mail-CClient/ p5-Mail-SPF-Query/ p5-Mail-CheckUser/ p5-Mail-SRS/ p5-Mail-ClamAV/ p5-Mail-SendEasy/ p5-Mail-DKIM/ p5-Mail-Sender/ p5-Mail-DeliveryStatus-BounceParser/ p5-Mail-Sendmail/ p5-Mail-DomainKeys/ p5-Mail-SpamAssassin/ p5-Mail-Ezmlm/ p5-Mail-Spool/ p5-Mail-Field-Received/ p5-Mail-Tools/ p5-Mail-FilterXML/ p5-Mail-Transport-Dbx/ p5-Mail-Folder/ p5-Mail-Verify/ |
#ll|grep spam
205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false ClamAV update process started at Fri Sep 14 10:45:40 2007 WARNING: Your ClamAV installation is OUTDATED! WARNING: Local version: 0.88.5 Recommended version: 0.91.2 DON'T PANIC! Read http://www.clamav.net/faq.html Downloading main.cvd [\] bash: ll: command not found |
#pwd
/usr/ports/mail |
#cd ./p
205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false ClamAV update process started at Fri Sep 14 10:45:40 2007 WARNING: Your ClamAV installation is OUTDATED! WARNING: Local version: 0.88.5 Recommended version: 0.91.2 DON'T PANIC! Read http://www.clamav.net/faq.html Downloading main.cvd [\] Display all 170 possibilities? (y or n) |
#pwd
/usr/ports/mail |
#cd ./p5-M
p5-Mail-Bulkmail/ p5-Mail-RFC822-Address/ p5-Mail-CClient/ p5-Mail-SPF-Query/ p5-Mail-CheckUser/ p5-Mail-SRS/ p5-Mail-ClamAV/ p5-Mail-SendEasy/ p5-Mail-DKIM/ p5-Mail-Sender/ p5-Mail-DeliveryStatus-BounceParser/ p5-Mail-Sendmail/ p5-Mail-DomainKeys/ p5-Mail-SpamAssassin/ p5-Mail-Ezmlm/ p5-Mail-Spool/ p5-Mail-Field-Received/ p5-Mail-Tools/ p5-Mail-FilterXML/ p5-Mail-Transport-Dbx/ p5-Mail-Folder/ p5-Mail-Verify/ |
#cd ./p5-Mail-S
p5-Mail-SPF-Query/ p5-Mail-Sender/ p5-Mail-Spool/ p5-Mail-SRS/ p5-Mail-Sendmail/ p5-Mail-SendEasy/ p5-Mail-SpamAssassin/ |
#cd ./p5-Mail-SpamAssassin/
|
#ll
bash: ll: command not found |
#ls -l
WARNING: Local version: 0.88.5 Recommended version: 0.91.2 DON'T PANIC! Read http://www.clamav.net/faq.html Downloading main.cvd [-] total 28 -rw-r--r-- 1 root wheel 7957 Oct 9 2006 Makefile -rw-r--r-- 1 root wheel 227 Oct 9 2006 distinfo drwxr-xr-x 2 root wheel 512 Sep 7 14:23 files -rwxr-xr-x 1 root wheel 200 May 6 2005 pkg-deinstall -rw-r--r-- 1 root wheel 590 Aug 5 2004 pkg-descr -rwxr-xr-x 1 root wheel 752 May 8 2005 pkg-install -rw-r--r-- 1 root wheel 1054 Jan 7 2006 pkg-message -rw-r--r-- 1 root wheel 6795 Sep 6 2006 pkg-plist |
#make config
x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x x x [X] AS_ROOT Run spamd as root (recommended) x x x x [ ] DOMAINKEYS DomainKeys support x x x x [X] SSL Build with SSL support for spamd/spamc x x x x [ ] MYSQL Add MySQL support x x x x [ ] PGSQL Add PostreSQL support x x x x [X] RAZOR Add Vipul's Razor support x x x x [ ] SPF_QUERY Add SPF query support x x x x [ ] RELAY_COUNTRY Relay country support x x x x [X] TOOLS Install SpamAssassin tools x x x x x x x x x x x x x x x x x x x x x x x x x x tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu x [ OK ] Cancel x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj |
#ll
bash: ll: command not found |
#ls -l
total 28 -rw-r--r-- 1 root wheel 7957 Oct 9 2006 Makefile -rw-r--r-- 1 root wheel 227 Oct 9 2006 distinfo drwxr-xr-x 2 root wheel 512 Sep 7 14:23 files -rwxr-xr-x 1 root wheel 200 May 6 2005 pkg-deinstall -rw-r--r-- 1 root wheel 590 Aug 5 2004 pkg-descr -rwxr-xr-x 1 root wheel 752 May 8 2005 pkg-install -rw-r--r-- 1 root wheel 1054 Jan 7 2006 pkg-message -rw-r--r-- 1 root wheel 6795 Sep 6 2006 pkg-plist |
#make install
===> Compressing manual pages for p5-HTML-Tagset-3.10 ===> Registering installation for p5-HTML-Tagset-3.10 ===> Returning to build of p5-HTML-Parser-3.55 ===> p5-HTML-Parser-3.55 depends on file: /usr/local/lib/perl5/site_perl/5.8.8/URI.pm - not found ===> Verifying install for /usr/local/lib/perl5/site_perl/5.8.8/URI.pm in /usr/ports/net/p5-URI ===> Vulnerability check disabled, database not found => URI-1.35.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/URI/. URI-1.35.tar.gz 100% of 93 kB 15 kBps ===> Extracting for p5-URI-1.35 => MD5 Checksum OK for URI-1.35.tar.gz. |
#cd /usr/ports/mail/mai
205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false mail-notification/ maildirsync/ mailman/ mailscanner-mrtg/ mail2procmailrc/ maildrop/ mailmgr/ mailsync/ mail2sms/ mailfmt/ mailrep/ mailx/ mailagent/ mailfront/ mailscanner/ mairix/ mailcrypt/ mailgraph/ mailscanner-devel/ |
#cd /usr/ports/mail/mimedefang/
|
#make install
Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::libnetFAQ.3 Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::Domain.3 Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::Cmd.3 Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::FTP.3 Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::Netrc.3 Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::NNTP.3 Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::Time.3 Writing /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Net/.packlist ===> Compressing manual pages for p5-Net-1.19,1 ===> Registering installation for p5-Net-1.19,1 ^C |
Время первой команды журнала | 16:32:42 2007- 9-13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:13:50 2007- 9-14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.80 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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