/l3/users/07-07-2008/fbsd-adm/fbsd1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 |
|
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 13 messages 13 new >N 1 root@fbsd1.unix.nt Wed Jul 9 06:02 1289/76869 "fbsd1.unix.nt securi" N 2 root@fbsd1.unix.nt Wed Jul 9 06:02 70/2341 "fbsd1.unix.nt daily r" N 3 root@fbsd1.unix.nt Thu Jul 10 06:01 75/3221 "fbsd1.unix.nt securit" N 4 root@fbsd1.unix.nt Thu Jul 10 06:01 75/2492 "fbsd1.unix.nt daily r" N 5 root@fbsd1.unix.nt Thu Jul 10 10:45 23/868 "Cron <root@fbsd1> " N 6 root@fbsd1.unix.nt Thu Jul 10 10:45 23/868 "Cron <root@fbsd1> " N 7 root@fbsd1.unix.nt Thu Jul 10 10:45 23/868 "Cron <root@fbsd1> " N 8 root@fbsd1.unix.nt Thu Jul 10 10:46 23/868 "Cron <root@fbsd1> " ... Subject: Cron <root@fbsd1> pkg_version -v X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> X-Cron-Env: <USER=root> pkg_version: not found & q Saved 1 message in mbox Held 12 messages in /var/mail/root |
#whereis pkg_version
pkg_version: /usr/sbin/pkg_version /usr/share/man/man1/pkg_version.1.gz |
#crontab
crontab: usage error: file name must be specified for replace usage: crontab [-u user] file crontab [-u user] { -e | -l | -r } õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#crontab -e
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ ~ /tmp/crontab.cMZ7Hh61dc: 1 ÓÔÒÏË, 35 ÓÉÍ×ÏÌÏ×. crontab: installing new crontab |
#date
ÞÅÔ×ÅÒÇ, 10 ÉÀÌÑ 2008 Ç. 13:11:36 (EEST) |
#LANG=C
|
#date
Thu Jul 10 13:11:40 EEST 2008 |
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 14 messages 2 new 14 unread U 1 root@fbsd1.unix.nt Wed Jul 9 06:02 1290/76879 "fbsd1.unix.nt securi" U 2 root@fbsd1.unix.nt Wed Jul 9 06:02 71/2351 "fbsd1.unix.nt daily r" U 3 root@fbsd1.unix.nt Thu Jul 10 06:01 76/3231 "fbsd1.unix.nt securit" U 4 root@fbsd1.unix.nt Thu Jul 10 06:01 76/2502 "fbsd1.unix.nt daily r" U 5 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 6 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 7 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 8 root@fbsd1.unix.nt Thu Jul 10 10:46 24/878 "Cron <root@fbsd1> " ... Subject: Cron <root@fbsd1> pkg_version -v X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> X-Cron-Env: <USER=root> pkg_version: not found & q Saved 1 message in mbox Held 13 messages in /var/mail/root |
#date
Thu Jul 10 13:11:58 EEST 2008 |
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 13 messages 13 unread >U 1 root@fbsd1.unix.nt Wed Jul 9 06:02 1290/76879 "fbsd1.unix.nt securi" U 2 root@fbsd1.unix.nt Wed Jul 9 06:02 71/2351 "fbsd1.unix.nt daily r" U 3 root@fbsd1.unix.nt Thu Jul 10 06:01 76/3231 "fbsd1.unix.nt securit" U 4 root@fbsd1.unix.nt Thu Jul 10 06:01 76/2502 "fbsd1.unix.nt daily r" U 5 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 6 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 7 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 8 root@fbsd1.unix.nt Thu Jul 10 10:46 24/878 "Cron <root@fbsd1> " U 9 root@fbsd1.unix.nt Thu Jul 10 10:47 24/878 "Cron <root@fbsd1> " U 10 root@fbsd1.unix.nt Thu Jul 10 10:48 24/878 "Cron <root@fbsd1> " U 11 root@fbsd1.unix.nt Thu Jul 10 10:48 24/878 "Cron <root@fbsd1> " U 12 root@fbsd1.unix.nt Thu Jul 10 10:49 24/878 "Cron <root@fbsd1> " U 13 root@fbsd1.unix.nt Thu Jul 10 13:10 24/840 "Cron <root@fbsd1> pkg" & q Held 13 messages in /var/mail/root |
#tail -f /var/log/maillog
Jul 10 13:09:28 fbsd1 sendmail[18758]: m6AA9RpV018758: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30237, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m6AA9RHT018759 Message accepted for delivery) Jul 10 13:09:28 fbsd1 sm-mta[18767]: m6AA9RHT018759: to=<root@fbsd1.unix.nt>, ctladdr=<root@fbsd1.unix.nt> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=local, pri=30775, relay=local, dsn=2.0.0, stat=Sent Jul 10 13:10:25 fbsd1 sendmail[19027]: m6AAAPhq019027: from=root, size=237, class=0, nrcpts=1, msgid=<200807101010.m6AAAPhq019027@fbsd1.unix.nt>, relay=root@localhost Jul 10 13:10:26 fbsd1 sm-mta[19028]: m6AAAPGY019028: from=<root@fbsd1.unix.nt>, size=520, class=0, nrcpts=1, msgid=<200807101010.m6AAAPhq019027@fbsd1.unix.nt>, proto=ESMTP, daemon=Daemon0, relay=localhost.unix.nt [127.0.0.1] Jul 10 13:10:26 fbsd1 sendmail[19027]: m6AAAPhq019027: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30237, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m6AAAPGY019028 Message accepted for delivery) Jul 10 13:10:26 fbsd1 sm-mta[19029]: m6AAAPGY019028: to=<root@fbsd1.unix.nt>, ctladdr=<root@fbsd1.unix.nt> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=local, pri=30775, relay=local, dsn=2.0.0, stat=Sent Jul 10 13:11:27 fbsd1 sendmail[19074]: m6AABRAI019074: from=root, size=237, class=0, nrcpts=1, msgid=<200807101011.m6AABRAI019074@fbsd1.unix.nt>, relay=root@localhost Jul 10 13:11:27 fbsd1 sm-mta[19079]: m6AABRAI019079: from=<root@fbsd1.unix.nt>, size=520, class=0, nrcpts=1, msgid=<200807101011.m6AABRAI019074@fbsd1.unix.nt>, proto=ESMTP, daemon=Daemon0, relay=localhost.unix.nt [127.0.0.1] Jul 10 13:11:27 fbsd1 sendmail[19074]: m6AABRAI019074: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30237, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m6AABRAI019079 Message accepted for delivery) Jul 10 13:11:27 fbsd1 sm-mta[19087]: m6AABRAI019079: to=<root@fbsd1.unix.nt>, ctladdr=<root@fbsd1.unix.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30775, relay=local, dsn=2.0.0, stat=Sent ^C õ ×ÁÓ ÅÓÔØ ÐÏÞÔÁ × /var/mail/root |
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 13 messages 13 unread >U 1 root@fbsd1.unix.nt Wed Jul 9 06:02 1290/76879 "fbsd1.unix.nt securi" U 2 root@fbsd1.unix.nt Wed Jul 9 06:02 71/2351 "fbsd1.unix.nt daily r" U 3 root@fbsd1.unix.nt Thu Jul 10 06:01 76/3231 "fbsd1.unix.nt securit" U 4 root@fbsd1.unix.nt Thu Jul 10 06:01 76/2502 "fbsd1.unix.nt daily r" U 5 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 6 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 7 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 8 root@fbsd1.unix.nt Thu Jul 10 10:46 24/878 "Cron <root@fbsd1> " ... pkg_version: not found & At EOF & At EOF & At EOF & q Saved 1 message in mbox Held 12 messages in /var/mail/root |
#echo $LANG
C |
#tail -f /var/log/maillog
Jul 10 13:09:28 fbsd1 sendmail[18758]: m6AA9RpV018758: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30237, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m6AA9RHT018759 Message accepted for delivery) Jul 10 13:09:28 fbsd1 sm-mta[18767]: m6AA9RHT018759: to=<root@fbsd1.unix.nt>, ctladdr=<root@fbsd1.unix.nt> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=local, pri=30775, relay=local, dsn=2.0.0, stat=Sent Jul 10 13:10:25 fbsd1 sendmail[19027]: m6AAAPhq019027: from=root, size=237, class=0, nrcpts=1, msgid=<200807101010.m6AAAPhq019027@fbsd1.unix.nt>, relay=root@localhost Jul 10 13:10:26 fbsd1 sm-mta[19028]: m6AAAPGY019028: from=<root@fbsd1.unix.nt>, size=520, class=0, nrcpts=1, msgid=<200807101010.m6AAAPhq019027@fbsd1.unix.nt>, proto=ESMTP, daemon=Daemon0, relay=localhost.unix.nt [127.0.0.1] Jul 10 13:10:26 fbsd1 sendmail[19027]: m6AAAPhq019027: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30237, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m6AAAPGY019028 Message accepted for delivery) Jul 10 13:10:26 fbsd1 sm-mta[19029]: m6AAAPGY019028: to=<root@fbsd1.unix.nt>, ctladdr=<root@fbsd1.unix.nt> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=local, pri=30775, relay=local, dsn=2.0.0, stat=Sent Jul 10 13:11:27 fbsd1 sendmail[19074]: m6AABRAI019074: from=root, size=237, class=0, nrcpts=1, msgid=<200807101011.m6AABRAI019074@fbsd1.unix.nt>, relay=root@localhost Jul 10 13:11:27 fbsd1 sm-mta[19079]: m6AABRAI019079: from=<root@fbsd1.unix.nt>, size=520, class=0, nrcpts=1, msgid=<200807101011.m6AABRAI019074@fbsd1.unix.nt>, proto=ESMTP, daemon=Daemon0, relay=localhost.unix.nt [127.0.0.1] Jul 10 13:11:27 fbsd1 sendmail[19074]: m6AABRAI019074: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30237, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m6AABRAI019079 Message accepted for delivery) Jul 10 13:11:27 fbsd1 sm-mta[19087]: m6AABRAI019079: to=<root@fbsd1.unix.nt>, ctladdr=<root@fbsd1.unix.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30775, relay=local, dsn=2.0.0, stat=Sent Jul 10 13:14:29 fbsd1 sendmail[19302]: m6AACRuF019302: from=root, size=32574, class=0, nrcpts=1, msgid=<200807101012.m6AACRuF019302@fbsd1.unix.nt>, relay=root@localhost Jul 10 13:14:29 fbsd1 sm-mta[33053]: m6AAETqZ033053: from=<root@fbsd1.unix.nt>, size=32857, class=0, nrcpts=1, msgid=<200807101012.m6AACRuF019302@fbsd1.unix.nt>, proto=ESMTP, daemon=Daemon0, relay=localhost.unix.nt [127.0.0.1] Jul 10 13:14:29 fbsd1 sendmail[19302]: m6AACRuF019302: to=root, ctladdr=root (0/0), delay=00:02:02, xdelay=00:00:00, mailer=relay, pri=62574, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m6AAETqZ033053 Message accepted for delivery) Jul 10 13:14:29 fbsd1 sm-mta[33054]: m6AAETqZ033053: to=<root@fbsd1.unix.nt>, ctladdr=<root@fbsd1.unix.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=63112, relay=local, dsn=2.0.0, stat=Sent ^C õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#mail
avahi-0.6.21_1 = up-to-date with port avahi-app-0.6.21_1 = up-to-date with port bash-3.2.25 = up-to-date with port bash-completion-20060301_2 = up-to-date with port bdftopcf-1.0.1 = up-to-date with port beforelight-1.0.2 = up-to-date with port bitmap-1.0.3 = up-to-date with port bitstream-vera-1.10_4 = up-to-date with port bsdpan-Term-VT102-0.82 ! Comparison failed bsdpan-Text-Iconv-1.4 ! Comparison failed ... gnome-spell-1.0.8 = up-to-date with port & At EOF & At EOF & At EOF & q Saved 1 message in mbox Held 12 messages in /var/mail/root |
#crontab -r
remove crontab for root? y |
#top -d 1
last pid: 38588; load averages: 2.74, 0.92, 0.40 up 0+06:15:07 13:15:38 52 processes: 5 running, 45 sleeping, 2 stopped CPU states: % user, % nice, % system, % interrupt, % idle Mem: 39M Active, 35M Inact, 92M Wired, 1824K Cache, 111M Buf, 826M Free Swap: 2015M Total, 2015M Free PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 10009 root 1 120 0 11928K 10620K RUN 12:15 28.08% perl5.8.8 38387 root 1 127 0 1112K 1004K RUN 0:00 11.28% make 10048 user 1 4 0 10368K 8960K connec 0:11 0.00% perl5.8.8 654 root 1 120 0 13656K 6356K select 0:06 0.00% gdm-binary ... 5898 root 1 96 0 2292K 1960K select 0:02 0.00% screen 1567 root 1 96 0 1348K 940K select 0:01 0.00% script 961 root 1 96 0 1348K 940K select 0:01 0.00% script 5937 root 1 5 0 3900K 2820K ttyin 0:01 0.00% bash 7794 root 1 8 0 3900K 2768K wait 0:01 0.00% bash 7757 root 1 96 0 1348K 944K select 0:01 0.00% script 5900 root 1 96 0 1348K 944K select 0:00 0.00% script 26596 root 1 -8 0 4164K 2984K piperd 0:00 0.00% pkg_versio 527 root 1 96 0 1404K 1072K select 0:00 0.00% syslogd 694 root 1 96 0 3508K 2932K select 0:00 0.00% sendmail |
# 712 root 1 8 0 1444K 1156K nanslp 0:00 0.00% cron
last pid: 39182; load averages: 2.76, 0.95, 0.41 up 0+06:15:15 13:15:46 52 processes: 4 running, 46 sleeping, 2 stopped CPU states: % user, % nice, % system, % interrupt, % idle Mem: 38M Active, 35M Inact, 84M Wired, 1824K Cache, 111M Buf, 834M Free Swap: 2015M Total, 2015M Free PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 10009 root 1 124 0 11928K 10620K RUN 12:18 27.64% perl5.8.8 10048 user 1 4 0 10368K 8960K connec 0:11 0.00% perl5.8.8 654 root 1 120 0 13656K 6356K select 0:06 0.00% gdm-binary 1563 root 1 96 0 6280K 3328K select 0:04 0.00% sshd ... 1567 root 1 96 0 1348K 940K select 0:01 0.00% script 961 root 1 96 0 1348K 940K select 0:01 0.00% script 5937 root 1 5 0 3900K 2820K ttyin 0:01 0.00% bash 7794 root 1 8 0 3900K 2768K wait 0:01 0.00% bash 7757 root 1 96 0 1348K 944K select 0:01 0.00% script 5900 root 1 96 0 1348K 944K select 0:00 0.00% script 26596 root 1 -8 0 4164K 2984K piperd 0:00 0.00% pkg_versio 527 root 1 96 0 1404K 1072K select 0:00 0.00% syslogd 694 root 1 96 0 3508K 2932K select 0:00 0.00% sendmail 32939 root 1 -8 0 4164K 2984K piperd 0:00 0.00% pkg_versio |
# 712 root 1 8 0 1444K 1156K nanslp 0:00 0.00% cron
last pid: 39283; load averages: 2.76, 0.95, 0.41 up 0+06:15:16 13:15:47 50 processes: 4 running, 44 sleeping, 2 stopped CPU states: % user, % nice, % system, % interrupt, % idle Mem: 38M Active, 35M Inact, 84M Wired, 1824K Cache, 111M Buf, 834M Free Swap: 2015M Total, 2015M Free PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 10009 root 1 124 0 11928K 10620K RUN 12:18 27.64% perl5.8.8 10048 user 1 4 0 10368K 8960K connec 0:11 0.00% perl5.8.8 654 root 1 120 0 13656K 6356K select 0:06 0.00% gdm-binary 1563 root 1 96 0 6280K 3328K select 0:04 0.00% sshd ... 1567 root 1 96 0 1348K 940K select 0:01 0.00% script 961 root 1 96 0 1348K 940K select 0:01 0.00% script 5937 root 1 5 0 3900K 2820K ttyin 0:01 0.00% bash 7794 root 1 8 0 3900K 2768K wait 0:01 0.00% bash 7757 root 1 96 0 1348K 944K select 0:01 0.00% script 5900 root 1 96 0 1348K 944K select 0:00 0.00% script 26596 root 1 -8 0 4164K 2984K piperd 0:00 0.00% pkg_versio 527 root 1 96 0 1404K 1072K select 0:00 0.00% syslogd 694 root 1 96 0 3508K 2932K select 0:00 0.00% sendmail 32939 root 1 -8 0 4788K 3604K piperd 0:00 0.00% pkg_versio |
# 712 root 1 8 0 1444K 1156K nanslp 0:00 0.00% cron
last pid: 39457; load averages: 2.76, 0.95, 0.41 up 0+06:15:18 13:15:49 48 processes: 4 running, 42 sleeping, 2 stopped CPU states: % user, % nice, % system, % interrupt, % idle Mem: 38M Active, 35M Inact, 84M Wired, 1824K Cache, 111M Buf, 835M Free Swap: 2015M Total, 2015M Free PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 10009 root 1 120 0 11928K 10620K RUN 12:18 27.54% perl5.8.8 39272 root 1 -8 0 864K 756K piperd 0:00 1.03% make 10048 user 1 4 0 10368K 8960K connec 0:11 0.00% perl5.8.8 654 root 1 120 0 13656K 6356K select 0:06 0.00% gdm-binary ... 5898 root 1 96 0 2292K 1960K select 0:02 0.00% screen 1567 root 1 96 0 1348K 940K select 0:01 0.00% script 961 root 1 96 0 1348K 940K select 0:01 0.00% script 5937 root 1 5 0 3900K 2820K ttyin 0:01 0.00% bash 7794 root 1 8 0 3900K 2768K wait 0:01 0.00% bash 7757 root 1 96 0 1348K 944K select 0:01 0.00% script 26596 root 1 127 0 4164K 2984K RUN 0:00 0.00% pkg_versio 5900 root 1 96 0 1348K 944K select 0:00 0.00% script 527 root 1 96 0 1404K 1072K select 0:00 0.00% syslogd 694 root 1 96 0 3508K 2932K select 0:00 0.00% sendmail |
#32939 root 1 -8 0 4788K 3604K piperd 0:00 0.00% pkg_versio
last pid: 39944; load averages: 2.76, 0.95, 0.41 up 0+06:15:22 13:15:53 49 processes: 3 running, 44 sleeping, 2 stopped CPU states: % user, % nice, % system, % interrupt, % idle Mem: 38M Active, 35M Inact, 84M Wired, 1824K Cache, 111M Buf, 834M Free Swap: 2015M Total, 2015M Free PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 10009 root 1 4 0 11928K 10648K connec 12:19 27.64% perl5.8.8 10048 user 1 4 0 10368K 8960K connec 0:11 0.00% perl5.8.8 654 root 1 120 0 13656K 6356K select 0:06 0.00% gdm-binary 1563 root 1 96 0 6280K 3328K select 0:04 0.00% sshd ... 1567 root 1 96 0 1348K 940K select 0:01 0.00% script 961 root 1 96 0 1348K 940K select 0:01 0.00% script 5937 root 1 5 0 3900K 2820K ttyin 0:01 0.00% bash 7794 root 1 8 0 3900K 2768K wait 0:01 0.00% bash 7757 root 1 96 0 1348K 944K select 0:01 0.00% script 26596 root 1 -8 0 4164K 2984K piperd 0:00 0.00% pkg_versio 5900 root 1 96 0 1348K 944K select 0:00 0.00% script 527 root 1 96 0 1404K 1072K select 0:00 0.00% syslogd 32939 root 1 -8 0 4164K 2984K piperd 0:00 0.00% pkg_versio 694 root 1 96 0 3508K 2932K select 0:00 0.00% sendmail |
# 712 root 1 8 0 1444K 1156K nanslp 0:00 0.00% cron
tcpdchk tcpdmatch tcpdrop tcpdump tcpslice |
#tcp
tcpdchk tcpdmatch tcpdrop tcpdump tcpslice |
#tcp
tcpdchk tcpdmatch tcpdrop tcpdump tcpslice |
#tcpdump -n -i re0
13:16:09.157575 IP 192.168.16.215.47649 > 192.168.16.21.22: . ack 2624 win 501 <nop,nop,timestamp 5659458 12508257> 13:16:09.157741 IP 192.168.16.21.22 > 192.168.16.214.1031: P 32512:33072(560) ack 1 win 33304 <nop,nop,timestamp 12508258 2623613> 13:16:09.157918 IP 192.168.16.214.1031 > 192.168.16.21.22: . ack 33072 win 28000 <nop,nop,timestamp 2623613 12508258> 13:16:09.158399 IP 192.168.16.214.1031 > 192.168.16.21.22: P 1:49(48) ack 33072 win 28000 <nop,nop,timestamp 2623613 12508258> 13:16:09.158564 IP 192.168.16.21.22 > 192.168.16.214.1031: P 33072:33168(96) ack 49 win 33304 <nop,nop,timestamp 12508258 2623613> 13:16:09.159394 IP 192.168.16.21.22 > 192.168.16.214.1031: P 33168:33728(560) ack 49 win 33304 <nop,nop,timestamp 12508259 2623613> 13:16:09.159568 IP 192.168.16.214.1031 > 192.168.16.21.22: . ack 33728 win 28000 <nop,nop,timestamp 2623614 12508258> 13:16:09.159753 IP 192.168.16.21.22 > 192.168.16.215.47649: P 2624:2784(160) ack 1 win 33304 <nop,nop,timestamp 12508259 5659458> 13:16:09.160257 IP 192.168.16.21.22 > 192.168.16.214.1031: P 33728:34288(560) ack 49 win 33304 <nop,nop,timestamp 12508259 2623614> 13:16:09.160596 IP 192.168.16.21.22 > 192.168.16.214.1031: P 34288:34848(560) ack 49 win 33304 <nop,nop,timestamp 12508259 2623614> ... 13:16:09.203552 IP 192.168.16.21.22 > 192.168.16.214.1031: P 65744:66304(560) ack 49 win 33304 <nop,nop,timestamp 12508283 2623618> 13:16:09.203932 IP 192.168.16.214.1031 > 192.168.16.21.22: . ack 66304 win 28000 <nop,nop,timestamp 2623618 12508283> 13:16:09.204080 IP 192.168.16.21.22 > 192.168.16.215.47649: P 4960:5136(176) ack 1 win 33304 <nop,nop,timestamp 12508284 5659469> 13:16:09.204279 IP 192.168.16.21.22 > 192.168.16.214.1031: P 66304:66864(560) ack 49 win 33304 <nop,nop,timestamp 12508284 2623618> 13:16:09.204967 IP 192.168.16.21.22 > 192.168.16.214.1031: P 66864:67424(560) ack 49 win 33304 <nop,nop,timestamp 12508284 2623618> 13:16:09.205083 IP 192.168.16.214.1031 > 192.168.16.21.22: . ack 67424 win 28000 <nop,nop,timestamp 2623618 12508284> 13:16:09.205157 IP 192.168.16.215.47649 > 192.168.16.21.22: . ack 5136 win 501 <nop,nop,timestamp 565947^C 307 packets captured 2041 packets received by filter 1012 packets dropped by kernel |
#tcpdump -n -i re0 ! port 22
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re0, link-type EN10MB (Ethernet), capture size 96 bytes 13:16:19.974335 IP 192.168.16.21.50840 > 194.150.93.78.18030: S 473518008:473518008(0) win 65535 <mss 1460,sackOK,eol> ^C 1 packets captured 37 packets received by filter 0 packets dropped by kernel |
#top -d 1
last pid: 45096; load averages: 2.78, 1.10, 0.48 up 0+06:16:03 13:16:34 48 processes: 3 running, 43 sleeping, 2 stopped CPU states: % user, % nice, % system, % interrupt, % idle Mem: 37M Active, 35M Inact, 85M Wired, 1824K Cache, 111M Buf, 834M Free Swap: 2015M Total, 2015M Free PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 10009 root 1 4 0 11928K 10648K connec 12:19 8.45% perl5.8.8 10048 user 1 4 0 10368K 8960K connec 0:11 0.00% perl5.8.8 654 root 1 120 0 13656K 6356K select 0:06 0.00% gdm-binary 1563 root 1 96 0 6280K 3328K select 0:04 0.00% sshd ... 1567 root 1 96 0 1348K 940K select 0:01 0.00% script 961 root 1 96 0 1348K 940K select 0:01 0.00% script 5937 root 1 5 0 3900K 2820K ttyin 0:01 0.00% bash 7794 root 1 8 0 3900K 2768K wait 0:01 0.00% bash 7757 root 1 96 0 1348K 944K select 0:01 0.00% script 26596 root 1 127 0 4164K 2984K RUN 0:00 0.00% pkg_versio 5900 root 1 96 0 1348K 944K select 0:00 0.00% script 527 root 1 96 0 1404K 1072K select 0:00 0.00% syslogd 32939 root 1 -8 0 4164K 2984K piperd 0:00 0.00% pkg_versio 694 root 1 96 0 3508K 2932K select 0:00 0.00% sendmail |
# 712 root 1 8 0 1444K 1156K nanslp 0:00 0.00% cron
last pid: 45442; load averages: 2.78, 1.10, 0.48 up 0+06:16:05 13:16:36 49 processes: 3 running, 44 sleeping, 2 stopped CPU states: % user, % nice, % system, % interrupt, % idle Mem: 37M Active, 35M Inact, 85M Wired, 1824K Cache, 111M Buf, 834M Free Swap: 2015M Total, 2015M Free PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 10009 root 1 4 0 11928K 10648K connec 12:19 8.01% perl5.8.8 10048 user 1 4 0 10368K 8960K connec 0:11 0.00% perl5.8.8 654 root 1 120 0 13656K 6356K select 0:06 0.00% gdm-binary 1563 root 1 96 0 6280K 3328K select 0:04 0.00% sshd ... 1567 root 1 96 0 1348K 940K select 0:01 0.00% script 961 root 1 96 0 1348K 940K select 0:01 0.00% script 5937 root 1 5 0 3900K 2820K ttyin 0:01 0.00% bash 7794 root 1 8 0 3900K 2768K wait 0:01 0.00% bash 7757 root 1 96 0 1348K 944K select 0:01 0.00% script 26596 root 1 127 0 4164K 2984K RUN 0:00 0.00% pkg_versio 5900 root 1 96 0 1348K 944K select 0:00 0.00% script 527 root 1 96 0 1404K 1072K select 0:00 0.00% syslogd 32939 root 1 -8 0 4164K 2984K piperd 0:00 0.00% pkg_versio 694 root 1 96 0 3508K 2932K select 0:00 0.00% sendmail |
# 712 root 1 8 0 1444K 1156K nanslp 0:00 0.00% cron
last pid: 45568; load averages: 2.71, 1.12, 0.49 up 0+06:16:06 13:16:37 52 processes: 3 running, 47 sleeping, 2 stopped CPU states: % user, % nice, % system, % interrupt, % idle Mem: 38M Active, 35M Inact, 85M Wired, 1824K Cache, 111M Buf, 833M Free Swap: 2015M Total, 2015M Free PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 10009 root 1 4 0 11928K 10648K connec 12:19 8.01% perl5.8.8 10048 user 1 4 0 10368K 8960K connec 0:11 0.00% perl5.8.8 654 root 1 120 0 13656K 6356K select 0:06 0.00% gdm-binary 1563 root 1 96 0 6280K 3328K select 0:04 0.00% sshd ... 1567 root 1 96 0 1348K 940K select 0:01 0.00% script 961 root 1 96 0 1348K 940K select 0:01 0.00% script 5937 root 1 5 0 3900K 2820K ttyin 0:01 0.00% bash 7794 root 1 8 0 3900K 2768K wait 0:01 0.00% bash 7757 root 1 96 0 1348K 944K select 0:01 0.00% script 26596 root 1 -8 0 4164K 2984K piperd 0:00 0.00% pkg_versio 5900 root 1 96 0 1348K 944K select 0:00 0.00% script 527 root 1 96 0 1404K 1072K select 0:00 0.00% syslogd 32939 root 1 -8 0 4164K 2984K piperd 0:00 0.00% pkg_versio 694 root 1 96 0 3508K 2932K select 0:00 0.00% sendmail |
# 712 root 1 8 0 1444K 1156K nanslp 0:00 0.00% cron
|
#cd /usr/ports/distfiles/
|
#ls
bash-completion-20060301.tar.gz make-3.81.tar.bz2 cairo-1.4.10.tar.gz screen-4.0.3.tar.gz glitz-0.5.6.tar.gz sed-4.1.5.tar.gz |
#cp screen-4.0.3.tar.gz /usr/src/
|
#cd /usr/src/
|
#ls
COPYRIGHT crypto sbin LOCKS etc screen-4.0.3.tar.gz MAINTAINERS games secure Makefile gnu share Makefile.inc1 include sys ObsoleteFiles.inc kerberos5 tools README lib usr.bin UPDATING libexec usr.sbin bin release contrib rescue |
#tar xvzf screen-4.0.3.tar.gz
x screen-4.0.3/ x screen-4.0.3/FAQ x screen-4.0.3/doc/ x screen-4.0.3/doc/FAQ x screen-4.0.3/doc/make.help x screen-4.0.3/doc/README.DOTSCREEN x screen-4.0.3/doc/screen.texinfo x screen-4.0.3/doc/install.sh x screen-4.0.3/doc/screen.1 x screen-4.0.3/doc/Makefile.in ... x screen-4.0.3/utmp.c x screen-4.0.3/attacher.c x screen-4.0.3/INSTALL x screen-4.0.3/kmapdef.c.dist x screen-4.0.3/image.h x screen-4.0.3/ChangeLog x screen-4.0.3/input.c x screen-4.0.3/COPYING x screen-4.0.3/socket.c õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 14 messages 2 new 14 unread U 1 root@fbsd1.unix.nt Wed Jul 9 06:02 1290/76879 "fbsd1.unix.nt securi" U 2 root@fbsd1.unix.nt Wed Jul 9 06:02 71/2351 "fbsd1.unix.nt daily r" U 3 root@fbsd1.unix.nt Thu Jul 10 06:01 76/3231 "fbsd1.unix.nt securit" U 4 root@fbsd1.unix.nt Thu Jul 10 06:01 76/2502 "fbsd1.unix.nt daily r" U 5 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 6 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 7 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 8 root@fbsd1.unix.nt Thu Jul 10 10:46 24/878 "Cron <root@fbsd1> " ... atk-1.20.0 = up-to-date with port avahi-0.6.21_1 = up-to-date with port avahi-app-0.6.21_1 = up-to-date with port bash-3.2.25 = up-to-date with port bash-completion-20060301_2 = up-to-date with port & At EOF & q Saved 2 messages in mbox Held 12 messages in /var/mail/root |
#cd screen-4.0.3/
|
#ls
COPYRIGHT crypto sbin LOCKS etc screen-4.0.3 MAINTAINERS games screen-4.0.3.tar.gz Makefile gnu secure Makefile.inc1 include share ObsoleteFiles.inc kerberos5 sys README lib tools UPDATING libexec usr.bin bin release usr.sbin contrib rescue |
#cd screen-4.0.3/
|
#ls
COPYING ansi.c encoding.c mark.h search.c ChangeLog ansi.h etc misc.c socket.c FAQ attacher.c extern.h nethack.c teln.c INSTALL braille.c fileio.c os.h term.c Makefile braille.h help.c osdef.h.in term.h.dist Makefile.in braille_tsi.c image.h osdef.sh term.sh NEWS comm.c input.c patchlevel.h termcap.c NEWS.3.5 comm.h.dist install.sh process.c terminfo NEWS.3.6 comm.sh kmapdef.c.dist pty.c tty.c.dist NEWS.3.7 config.h.in layer.c putenv.c tty.sh NEWS.3.9 configure layer.h resize.c utf8encodings README configure.in loadav.c sched.c utmp.c TODO display.c logfile.c sched.h window.c acls.c display.h logfile.h screen.c window.h acls.h doc mark.c screen.h |
#less INSTALL
|
#./configure
this is screen version 4.0.3 checking for prefix by checking for screen... /usr/local/bin/screen checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking for the global screenrc file... "/usr/local/etc/screenrc" checking for the utf8-encodings location... "/usr/local/share/screen/utf8encodings" configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating config.h config.status: executing default commands Now please check the pathnames in the Makefile and in the user configuration section in config.h. Then type 'make' to make screen. Good luck. |
#make
CPP="gcc -E " srcdir=. sh ./osdef.sh AWK=nawk CC="gcc -g -O2" srcdir=. sh ./comm.sh AWK=nawk srcdir=. sh ./term.sh gcc -c -I. -I. -g -O2 screen.c screen.c: In function `Msg': screen.c:1909: warning: passing arg 2 of `strncpy' makes pointer from integer without a cast screen.c: In function `Panic': screen.c:1963: warning: passing arg 2 of `strncpy' makes pointer from integer without a cast gcc -c -I. -I. -g -O2 ansi.c gcc -c -I. -I. -g -O2 fileio.c ... gcc -c -I. -I. -g -O2 braille_tsi.c gcc -c -I. -I. -g -O2 logfile.c gcc -c -I. -I. -g -O2 layer.c layer.c: In function `LMsg': layer.c:1100: warning: passing arg 2 of `strncpy' makes pointer from integer without a cast gcc -c -I. -I. -g -O2 sched.c gcc -c -I. -I. -g -O2 teln.c gcc -c -I. -I. -g -O2 nethack.c gcc -c -I. -I. -g -O2 encoding.c gcc -o screen screen.o ansi.o fileio.o mark.o misc.o resize.o socket.o search.o tty.o term.o window.o utmp.o loadav.o putenv.o help.o termcap.o input.o attacher.o pty.o process.o display.o comm.o kmapdef.o acls.o braille.o braille_tsi.o logfile.o layer.o sched.o teln.o nethack.o encoding.o -lcurses -lutil -lutil -lcrypt |
#echo $?
0 |
#make install
./etc/mkinstalldirs /usr/local/bin `sed < config.h -n -e '/define SCREENENCODINGS/s/^.*"\([^"]*\)"/\1/p'` cd doc ; make installdirs ./../etc/mkinstalldirs /usr/local/man/man1 /usr/local/info if [ -f /usr/local/bin/screen-4.0.3 ] && [ ! -f /usr/local/bin/screen-4.0.3.old ]; then mv /usr/local/bin/screen-4.0.3 /usr/local/bin/screen-4.0.3.old; fi /usr/bin/install -c screen /usr/local/bin/screen-4.0.3 chown root /usr/local/bin/screen-4.0.3 && chmod 4755 /usr/local/bin/screen-4.0.3 if [ -f /usr/local/bin/screen ] && [ ! -f /usr/local/bin/screen.old ]; then mv /usr/local/bin/screen /usr/local/bin/screen.old; fi rm -f /usr/local/bin/screen (cd /usr/local/bin && ln -sf screen-4.0.3 screen) cp ./utf8encodings/?? `sed < config.h -n -e '/define SCREENENCODINGS/s/^.*"\([^"]*\)"/\1/p'` cd doc ; make install ./../etc/mkinstalldirs /usr/local/man/man1 /usr/local/info /usr/bin/install -c -m 644 ./screen.1 /usr/local/man/man1/screen.1 make screen.info `screen.info' is up to date. if test -f screen.info; then d=.; else d=.; fi; if test -f $d/screen.info; then for f in $d/screen.info*; do /usr/bin/install -c -m 644 $f /usr/local/info;done; if /bin/sh -c 'install-info --version' >/dev/null 2>&1; then install-info --info-dir=/usr/local/info $d/screen.info; else true; fi; fi if [ -d /usr/lib/terminfo ]; then PATH="$PATH:/usr/5bin" tic ./terminfo/screeninfo.src; chmod 644 /usr/lib/terminfo/s/screen*; fi termcap entry (./terminfo/screencap) should be installed manually. You may also want to install ./etc/etcscreenrc in /usr/local/etc/screenrc |
#less ./etc/etcscreenrc
|
#whereis mc
mc: /usr/ports/misc/mc |
#cd /usr/ports/misc/mc
|
#ls
Makefile distinfo files pkg-descr pkg-plist |
#vim distinfo
|
#~ MD5 (mc-4.6.1 )
|
#set | grep PACKAGE
|
#set | grep FTP
FTP_PASSIVE_MODE=YES |
#ps aux | grep screen
root 5898 0.0 0.2 2292 1952 ?? Ss 8:54AM 0:01.94 screen root 9982 0.0 0.2 2012 1620 p1 S+ 10:32AM 0:00.03 screen -x root 5986 0.0 0.2 2012 1620 p5 S+ 8:55AM 0:00.04 screen -x |
#vim /home/user/.bashrc
|
#~
|
#ps -U user | grep screen
|
#ps -U root | grep screen
5898 ?? Rs 0:01.95 screen 9982 p1 S+ 0:00.03 screen -x 5986 p5 S+ 0:00.04 screen -x |
#vim /home/user/.bashrc
--- /tmp/l3-saved-7794.6674.19351 2008-07-10 13:55:19.000000000 +0300 +++ /home/user/.bashrc 2008-07-10 13:55:44.000000000 +0300 @@ -1 +1,2 @@ . /home/user/.lilalo/l3bashrc && _l3_start +ps -U root | grep screen |
#echo $
$BASH $HOSTNAME $PWD $BASH_ARGC $HOSTTYPE $RANDOM $BASH_ARGV $IFS $SECONDS $BASH_COMMAND $L3_HOME $SHELL $BASH_COMPLETION $L3_PARENT_TTY $SHELLOPTS $BASH_COMPLETION_DIR $L3_SESSION_ID $SHLVL $BASH_LINENO $L3_TAMPERED_EDITORS $SSH_CLIENT $BASH_SOURCE $LANG $SSH_CONNECTION $BASH_SUBSHELL $LINENO $SSH_TTY $BASH_VERSINFO $LINES $STY ... $COMP_WORDBREAKS $MAILCHECK $UID $DIFFNAME $MM_CHARSET $USER $DIR $OLDPWD $WINDOW $DIRSTACK $OPTERR $_ $EUID $OPTIND $bash205 $FTP_PASSIVE_MODE $OSTYPE $bash205b $GROUPS $PATH $bash3 $HISTCMD $PIPESTATUS $editor_file $HISTFILE $PPID $editor_name $HISTFILESIZE $PS1 $old_file |
#echo $USER
root |
#vim /home/user/.bashrc
--- /tmp/l3-saved-7794.20993.12294 2008-07-10 13:55:58.000000000 +0300 +++ /home/user/.bashrc 2008-07-10 13:56:42.000000000 +0300 @@ -1,2 +1,2 @@ . /home/user/.lilalo/l3bashrc && _l3_start -ps -U root | grep screen +`ps -U $USER | grep screen` |
#^# http://xgu.ru/wiki/screen
bash: :s^# http://xgu.ru/wiki/screen: substitution failed |
#man screen
|
#vim /home/user/.bashrc
|
#ps -u $USER | grep screen
ps: illegal argument: root usage: ps [-aCcefHhjlmrSTuvwXxZ] [-O fmt | -o fmt] [-G gid[,gid...]] [-M core] [-N system] [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]] ps [-L] |
#ps -u `echo $USER` | grep screen
ps: illegal argument: root usage: ps [-aCcefHhjlmrSTuvwXxZ] [-O fmt | -o fmt] [-G gid[,gid...]] [-M core] [-N system] [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]] ps [-L] |
#ps -U `echo $USER` | grep screen
5898 ?? Ss 0:01.99 screen 9982 p1 S+ 0:00.03 screen -x 5986 p5 S+ 0:00.04 screen -x 54869 p7 S+ 0:00.01 grep screen |
#vim /home/user/.bashrc
--- /tmp/l3-saved-7794.6519.15118 2008-07-10 13:58:17.000000000 +0300 +++ /home/user/.bashrc 2008-07-10 14:01:13.000000000 +0300 @@ -1,2 +1,6 @@ . /home/user/.lilalo/l3bashrc && _l3_start -`ps -U $USER | grep screen` +PIDSCREEN="ps -U $USER | grep screen | awk '{print$1}'" +if [ ! -z $PIDSCREEN ] +then screen -x $PIDSCREEN +else screen +fi |
#ssh user@127.0.0.1
bash: [: too many arguments [user@fbsd1:~]$ |
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 12 messages 12 unread >U 1 root@fbsd1.unix.nt Wed Jul 9 06:02 1290/76879 "fbsd1.unix.nt securi" U 2 root@fbsd1.unix.nt Wed Jul 9 06:02 71/2351 "fbsd1.unix.nt daily r" U 3 root@fbsd1.unix.nt Thu Jul 10 06:01 76/3231 "fbsd1.unix.nt securit" U 4 root@fbsd1.unix.nt Thu Jul 10 06:01 76/2502 "fbsd1.unix.nt daily r" U 5 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 6 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 7 root@fbsd1.unix.nt Thu Jul 10 10:45 24/878 "Cron <root@fbsd1> " U 8 root@fbsd1.unix.nt Thu Jul 10 10:46 24/878 "Cron <root@fbsd1> " ... Backup passwd and group files: fbsd1.unix.nt passwd diffs: sed: stdout: No space left on device fbsd1.unix.nt group diffs: diff: standard output: No space left on device Verifying group file syntax: /etc/group is fine & q Saved 5 messages in mbox Held 7 messages in /var/mail/root |
#screen -x
|
#exit
There are stopped jobs. |
#vim /home/user/.bashrc
--- /tmp/l3-saved-58024.22872.19685 2008-07-10 14:03:46.000000000 +0300 +++ /home/user/.bashrc 2008-07-10 14:04:22.000000000 +0300 @@ -1,6 +1,7 @@ . /home/user/.lilalo/l3bashrc && _l3_start PIDSCREEN="ps -U $USER | grep screen | awk '{print$1}'" -if [ ! -z $PIDSCREEN ] -then screen -x $PIDSCREEN -else screen -fi +echo $PIDSCREEN +#if [ ! -z $PIDSCREEN ] +#then screen -x $PIDSCREEN +#else screen +#fi |
#ssh 127.0.0.1 -l user
Password: Last login: Thu Jul 10 14:01:28 2008 from localhost.unix. 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 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. ... been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are 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. l3-agent is already running: pid=10048; pidfile=/home/user/.lilalo/l3-agent.pid ps -U user | grep screen | awk '{print}' |
$exit
exit Connection to 127.0.0.1 closed. |
#vim /home/user/.bashrc
--- /tmp/l3-saved-58024.17353.31151 2008-07-10 14:04:40.000000000 +0300 +++ /home/user/.bashrc 2008-07-10 14:04:49.000000000 +0300 @@ -1,5 +1,5 @@ . /home/user/.lilalo/l3bashrc && _l3_start -PIDSCREEN="ps -U $USER | grep screen | awk '{print$1}'" +PIDSCREEN="`ps -U $USER | grep screen | awk '{print$1}'`" echo $PIDSCREEN #if [ ! -z $PIDSCREEN ] #then screen -x $PIDSCREEN |
#ssh 127.0.0.1 -l user
Password: Last login: Thu Jul 10 14:04:33 2008 from localhost.unix. 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 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. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are 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. l3-agent is already running: pid=10048; pidfile=/home/user/.lilalo/l3-agent.pid |
$. .bashrc
58382 |
$. .bashrc
|
$. .bashrc
|
$. .bashrc
|
$. .bashrc
|
$. .bashrc
|
$. .bashrc
|
$. .bashrc
|
$ps aux | grep screen
root 57985 0.0 0.2 2096 1768 ?? Ss 2:03PM 0:00.03 screen (screen-4. root 57984 0.0 0.2 2008 1620 p1 S+ 2:03PM 0:00.01 screen (screen-4. root 58115 0.0 0.2 2008 1628 p5 S+ 2:03PM 0:00.01 screen -x (screen |
$exit
exit Connection to 127.0.0.1 closed. |
#vim /home/user/.bashrc
--- /tmp/l3-saved-58024.12501.11809 2008-07-10 14:05:15.000000000 +0300 +++ /home/user/.bashrc 2008-07-10 14:05:28.000000000 +0300 @@ -1,5 +1,5 @@ . /home/user/.lilalo/l3bashrc && _l3_start -PIDSCREEN="`ps -U $USER | grep screen | awk '{print$1}'`" +PIDSCREEN="`ps -U $USER | grep screen | grep -v grep | awk '{print$1}'`" echo $PIDSCREEN #if [ ! -z $PIDSCREEN ] #then screen -x $PIDSCREEN |
#ssh 127.0.0.1 -l user
Password: Last login: Thu Jul 10 14:04:52 2008 from localhost.unix. 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 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. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are 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. l3-agent is already running: pid=10048; pidfile=/home/user/.lilalo/l3-agent.pid |
$. .bashrc
|
$. .bashrc
|
$. .bashrc
|
$. .bashrc
|
Время первой команды журнала | 13:10:04 2008- 7-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:05:36 2008- 7-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 6.93 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.93 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.82 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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