/l3/users/eb/2009/linux13/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 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 :72 :73 :74 :75 :76 |
|
#ls /etc/rc2.d
README S12dbus S20lpd S21aumix S89anacron S99monit S99stop-bootlogd S10rsyslog S16ssh S20openbsd-inetd S24hal S89atd S99rc.local S10syslog-ng S20exim4 S20rsync S30gdm S89cron S99rmnologin |
#ls /etc/rc2.d
README S12dbus S20lpd S21aumix S89anacron S99monit S99stop-bootlogd S10rsyslog S16ssh S20openbsd-inetd S24hal S89atd S99rc.local S10syslog-ng S20exim4 S20rsync S30gdm S89cron S99rmnologin |
#ls /etc/rc6.d
K01gdm K19aumix K20rsync README S31umountnfs.sh S40umountfs K10monit K20exim4 K25hwclock.sh S20sendsigs S32portmap S60umountroot K11anacron K20lpd K63mountoverflowtmp S30rsyslog S35networking S90reboot K11atd K20openbsd-inetd K90syslog-ng S30urandom S36ifupdown |
#ls /etc/rc6.d
K01gdm K19aumix K20rsync README S31umountnfs.sh S40umountfs K10monit K20exim4 K25hwclock.sh S20sendsigs S32portmap S60umountroot K11anacron K20lpd K63mountoverflowtmp S30rsyslog S35networking S90reboot K11atd K20openbsd-inetd K90syslog-ng S30urandom S36ifupdown |
#ls -l /etc/rc6.d
total 4 lrwxrwxrwx 1 root root 13 2009-05-25 03:55 K01gdm -> ../init.d/gdm lrwxrwxrwx 1 root root 15 2009-05-27 16:23 K10monit -> ../init.d/monit lrwxrwxrwx 1 root root 17 2009-05-27 14:34 K11anacron -> ../init.d/anacron lrwxrwxrwx 1 root root 13 2009-05-27 14:37 K11atd -> ../init.d/atd lrwxrwxrwx 1 root root 15 2009-05-25 03:20 K19aumix -> ../init.d/aumix lrwxrwxrwx 1 root root 15 2009-05-27 14:33 K20exim4 -> ../init.d/exim4 lrwxrwxrwx 1 root root 13 2009-05-25 03:20 K20lpd -> ../init.d/lpd lrwxrwxrwx 1 root root 23 2009-05-26 11:47 K20openbsd-inetd -> ../init.d/openbsd-inetd lrwxrwxrwx 1 root root 15 2009-05-29 09:18 K20rsync -> ../init.d/rsync ... lrwxrwxrwx 1 root root 18 2009-05-24 18:18 S20sendsigs -> ../init.d/sendsigs lrwxrwxrwx 1 root root 17 2009-05-24 18:18 S30rsyslog -> ../init.d/rsyslog lrwxrwxrwx 1 root root 17 2009-05-24 18:18 S30urandom -> ../init.d/urandom lrwxrwxrwx 1 root root 22 2009-05-24 18:18 S31umountnfs.sh -> ../init.d/umountnfs.sh lrwxrwxrwx 1 root root 17 2009-05-25 03:20 S32portmap -> ../init.d/portmap lrwxrwxrwx 1 root root 20 2009-05-24 18:18 S35networking -> ../init.d/networking lrwxrwxrwx 1 root root 18 2009-05-24 18:18 S36ifupdown -> ../init.d/ifupdown lrwxrwxrwx 1 root root 18 2009-05-24 18:18 S40umountfs -> ../init.d/umountfs lrwxrwxrwx 1 root root 20 2009-05-24 18:18 S60umountroot -> ../init.d/umountroot lrwxrwxrwx 1 root root 16 2009-05-24 18:18 S90reboot -> ../init.d/reboot |
#ls -l /etc/rc6.d
total 4 lrwxrwxrwx 1 root root 13 2009-05-25 03:55 K01gdm -> ../init.d/gdm lrwxrwxrwx 1 root root 15 2009-05-27 16:23 K10monit -> ../init.d/monit lrwxrwxrwx 1 root root 17 2009-05-27 14:34 K11anacron -> ../init.d/anacron lrwxrwxrwx 1 root root 13 2009-05-27 14:37 K11atd -> ../init.d/atd lrwxrwxrwx 1 root root 15 2009-05-25 03:20 K19aumix -> ../init.d/aumix lrwxrwxrwx 1 root root 15 2009-05-27 14:33 K20exim4 -> ../init.d/exim4 lrwxrwxrwx 1 root root 13 2009-05-25 03:20 K20lpd -> ../init.d/lpd lrwxrwxrwx 1 root root 23 2009-05-26 11:47 K20openbsd-inetd -> ../init.d/openbsd-inetd lrwxrwxrwx 1 root root 15 2009-05-29 09:18 K20rsync -> ../init.d/rsync ... lrwxrwxrwx 1 root root 18 2009-05-24 18:18 S20sendsigs -> ../init.d/sendsigs lrwxrwxrwx 1 root root 17 2009-05-24 18:18 S30rsyslog -> ../init.d/rsyslog lrwxrwxrwx 1 root root 17 2009-05-24 18:18 S30urandom -> ../init.d/urandom lrwxrwxrwx 1 root root 22 2009-05-24 18:18 S31umountnfs.sh -> ../init.d/umountnfs.sh lrwxrwxrwx 1 root root 17 2009-05-25 03:20 S32portmap -> ../init.d/portmap lrwxrwxrwx 1 root root 20 2009-05-24 18:18 S35networking -> ../init.d/networking lrwxrwxrwx 1 root root 18 2009-05-24 18:18 S36ifupdown -> ../init.d/ifupdown lrwxrwxrwx 1 root root 18 2009-05-24 18:18 S40umountfs -> ../init.d/umountfs lrwxrwxrwx 1 root root 20 2009-05-24 18:18 S60umountroot -> ../init.d/umountroot lrwxrwxrwx 1 root root 16 2009-05-24 18:18 S90reboot -> ../init.d/reboot |
#ls /var/lock/subsys
ls: cannot access /var/lock/subsys: No such file or directory |
#ls /var/lock/subsys
ls: cannot access /var/lock/subsys: No such file or directory |
#apt-get install cowsay
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. Suggested packages: filters The following NEW packages will be installed: cowsay 0 upgraded, 1 newly installed, 0 to remove and 22 not upgraded. Need to get 19.8kB of archives. After this operation, 295kB of additional disk space will be used. Get:1 http://192.168.15.13 sid/main cowsay 3.03-9.2 [19.8kB] Fetched 19.8kB in 0s (116kB/s) Selecting previously deselected package cowsay. (Reading database ... 46185 files and directories currently installed.) Unpacking cowsay (from .../cowsay_3.03-9.2_all.deb) ... Processing triggers for man-db ... Setting up cowsay (3.03-9.2) ... |
#apt-get install cowsay
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. Suggested packages: filters The following NEW packages will be installed: cowsay 0 upgraded, 1 newly installed, 0 to remove and 22 not upgraded. Need to get 19.8kB of archives. After this operation, 295kB of additional disk space will be used. Get:1 http://192.168.15.13 sid/main cowsay 3.03-9.2 [19.8kB] Fetched 19.8kB in 0s (116kB/s) Selecting previously deselected package cowsay. (Reading database ... 46185 files and directories currently installed.) Unpacking cowsay (from .../cowsay_3.03-9.2_all.deb) ... Processing triggers for man-db ... Setting up cowsay (3.03-9.2) ... |
#echo hello | cowsay -f /usr/share/cowsay/cows/stegosaurus.cow
bash: cowsay: command not found |
#echo hello | cowsay -f /usr/share/cowsay/cows/stegosaurus.cow
bash: cowsay: command not found |
#vi shtdown
--- /dev/null 2009-05-29 16:30:26.503365860 +0300 +++ shtdown 2009-05-29 17:19:13.000000000 +0300 @@ -0,0 +1,2 @@ +if [ "$1" = "start" ] +then |
#echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow
_______ < hello > ------- \ . . \ / `. .' " \ .---. < > < > .---. \ | \ \ - ~ ~ - / / | _____ ..-~ ~-..-~ | | \~~~\.' `./~~~/ --------- \__/ \__/ .' O \ / / \ " (_____, `._.' | } \/~~~/ `----. / } | / \__/ `-. | / | / `. ,~~| ~-.__| /_ - ~ ^| /- _ `..-' | / | / ~-. `-. _ _ _ |_____| |_____| ~ - . _ _ _ _ _> |
#echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow
_______ < hello > ------- \ . . \ / `. .' " \ .---. < > < > .---. \ | \ \ - ~ ~ - / / | _____ ..-~ ~-..-~ | | \~~~\.' `./~~~/ --------- \__/ \__/ .' O \ / / \ " (_____, `._.' | } \/~~~/ `----. / } | / \__/ `-. | / | / `. ,~~| ~-.__| /_ - ~ ^| /- _ `..-' | / | / ~-. `-. _ _ _ |_____| |_____| ~ - . _ _ _ _ _> |
#./shtdown start
./shtdown: line 5: syntax error near unexpected token `then' ./shtdown: line 5: `then' |
#./shtdown start
./shtdown: line 5: syntax error near unexpected token `then' ./shtdown: line 5: `then' |
#vi shtdown
--- /tmp/l3-saved-7057.27364.10972 2009-05-29 17:26:51.000000000 +0300 +++ shtdown 2009-05-29 17:27:32.000000000 +0300 @@ -1,8 +1,8 @@ if [ "$1" = "start" ] then -echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow +echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow elsif [ "$1" = "stop"] then -echo good bye | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow +echo good bye | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow else echo $0 "start|stop" |
#./shtdown start
./shtdown: line 5: syntax error near unexpected token `then' ./shtdown: line 5: `then' |
#./shtdown start
./shtdown: line 5: syntax error near unexpected token `then' ./shtdown: line 5: `then' |
#vi shtdown
--- /tmp/l3-saved-7057.27809.946 2009-05-29 17:27:36.000000000 +0300 +++ shtdown 2009-05-29 17:27:55.000000000 +0300 @@ -1,7 +1,7 @@ if [ "$1" = "start" ] then echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow -elsif [ "$1" = "stop"] +elsif [ "$1" = "stop" ] then echo good bye | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow else |
#./shtdown start
./shtdown: line 5: syntax error near unexpected token `then' ./shtdown: line 5: `then' |
#./shtdown start
./shtdown: line 5: syntax error near unexpected token `then' ./shtdown: line 5: `then' |
#vi shtdown
--- /tmp/l3-saved-7057.18182.12891 2009-05-29 17:27:57.000000000 +0300 +++ shtdown 2009-05-29 17:28:13.000000000 +0300 @@ -3,6 +3,6 @@ echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow elsif [ "$1" = "stop" ] then -echo good bye | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow +echo 'good bye' | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow else echo $0 "start|stop" |
#./shtdown start
./shtdown: line 5: syntax error near unexpected token `then' ./shtdown: line 5: `then' |
#./shtdown start
./shtdown: line 5: syntax error near unexpected token `then' ./shtdown: line 5: `then' |
#vi shtdown
--- /tmp/l3-saved-7057.9611.30626 2009-05-29 17:28:19.000000000 +0300 +++ shtdown 2009-05-29 17:29:08.000000000 +0300 @@ -6,3 +6,4 @@ echo 'good bye' | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow else echo $0 "start|stop" +fi |
#./shtdown start
./shtdown: line 5: syntax error near unexpected token `then' ./shtdown: line 5: `then' |
#./shtdown start
./shtdown: line 5: syntax error near unexpected token `then' ./shtdown: line 5: `then' |
#vi shtdown
--- /tmp/l3-saved-7057.828.2681 2009-05-29 17:29:10.000000000 +0300 +++ shtdown 2009-05-29 17:29:25.000000000 +0300 @@ -1,7 +1,7 @@ if [ "$1" = "start" ] then echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow -elsif [ "$1" = "stop" ] +elif [ "$1" = "stop" ] then echo 'good bye' | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow else |
#./shtdown start
_______ < hello > ------- \ . . \ / `. .' " \ .---. < > < > .---. \ | \ \ - ~ ~ - / / | _____ ..-~ ~-..-~ | | \~~~\.' `./~~~/ --------- \__/ \__/ .' O \ / / \ " (_____, `._.' | } \/~~~/ `----. / } | / \__/ `-. | / | / `. ,~~| ~-.__| /_ - ~ ^| /- _ `..-' | / | / ~-. `-. _ _ _ |_____| |_____| ~ - . _ _ _ _ _> |
#./shtdown start
_______ < hello > ------- \ . . \ / `. .' " \ .---. < > < > .---. \ | \ \ - ~ ~ - / / | _____ ..-~ ~-..-~ | | \~~~\.' `./~~~/ --------- \__/ \__/ .' O \ / / \ " (_____, `._.' | } \/~~~/ `----. / } | / \__/ `-. | / | / `. ,~~| ~-.__| /_ - ~ ^| /- _ `..-' | / | / ~-. `-. _ _ _ |_____| |_____| ~ - . _ _ _ _ _> |
#./shtdown stop
__________ < good bye > ---------- \ \ (__) (\/) /-------\/ / | 666 || * ||----|| ~~ ~~ |
#./shtdown stop
__________ < good bye > ---------- \ \ (__) (\/) /-------\/ / | 666 || * ||----|| ~~ ~~ |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
./shtdown start|stop |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
./shtdown start|stop |
#ls -l
total 312 -rwxr-xr-x 1 root root 1301 2008-03-09 21:58 anacron -rwxr-xr-x 1 root root 946 2008-10-20 08:34 atd -rwxr-xr-x 1 root root 4021 2009-05-14 22:50 aumix -rwxr-xr-x 1 root root 2155 2008-01-05 01:05 bootlogd -rwxr-xr-x 1 root root 1988 2008-07-16 20:45 bootmisc.sh -rwxr-xr-x 1 root root 3004 2008-08-12 15:50 checkfs.sh -rwxr-xr-x 1 root root 9831 2007-12-30 17:45 checkroot.sh -rwxr-xr-x 1 root root 682 2008-08-17 16:59 console-cyrillic -rwxr-xr-x 1 root root 7651 2009-02-20 20:00 console-screen.kbd.sh ... -rwxr-xr-x 1 root root 1096 2008-01-02 02:27 stop-bootlogd-single -rwxr-xr-x 1 root root 515 2009-03-28 23:16 sudo -rwxr-xr-x 1 sys user 2809 2008-11-23 23:04 syslog-ng -rwxr-xr-x 1 root root 7345 2009-04-18 04:44 udev -rwxr-xr-x 1 root root 1001 2008-07-11 16:34 udev-mtab -rwxr-xr-x 1 root root 3175 2008-03-02 01:14 umountfs -rwxr-xr-x 1 root root 2140 2007-12-30 11:19 umountnfs.sh -rwxr-xr-x 1 root root 1456 2008-05-29 20:50 umountroot -rwxr-xr-x 1 root root 1815 2006-09-13 00:30 urandom -rwxr-xr-x 1 root root 1777 2009-02-02 14:29 x11-common |
#ls -l
total 312 -rwxr-xr-x 1 root root 1301 2008-03-09 21:58 anacron -rwxr-xr-x 1 root root 946 2008-10-20 08:34 atd -rwxr-xr-x 1 root root 4021 2009-05-14 22:50 aumix -rwxr-xr-x 1 root root 2155 2008-01-05 01:05 bootlogd -rwxr-xr-x 1 root root 1988 2008-07-16 20:45 bootmisc.sh -rwxr-xr-x 1 root root 3004 2008-08-12 15:50 checkfs.sh -rwxr-xr-x 1 root root 9831 2007-12-30 17:45 checkroot.sh -rwxr-xr-x 1 root root 682 2008-08-17 16:59 console-cyrillic -rwxr-xr-x 1 root root 7651 2009-02-20 20:00 console-screen.kbd.sh ... -rwxr-xr-x 1 root root 1096 2008-01-02 02:27 stop-bootlogd-single -rwxr-xr-x 1 root root 515 2009-03-28 23:16 sudo -rwxr-xr-x 1 sys user 2809 2008-11-23 23:04 syslog-ng -rwxr-xr-x 1 root root 7345 2009-04-18 04:44 udev -rwxr-xr-x 1 root root 1001 2008-07-11 16:34 udev-mtab -rwxr-xr-x 1 root root 3175 2008-03-02 01:14 umountfs -rwxr-xr-x 1 root root 2140 2007-12-30 11:19 umountnfs.sh -rwxr-xr-x 1 root root 1456 2008-05-29 20:50 umountroot -rwxr-xr-x 1 root root 1815 2006-09-13 00:30 urandom -rwxr-xr-x 1 root root 1777 2009-02-02 14:29 x11-common |
#cat shtdown
if [ "$1" = "start" ] then echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow elif [ "$1" = "stop" ] then echo 'good bye' | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow else echo $0 "start|stop" fi |
#cat shtdown
if [ "$1" = "start" ] then echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow elif [ "$1" = "stop" ] then echo 'good bye' | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow else echo $0 "start|stop" fi |
#./shtdown start
_______ < hello > ------- \ . . \ / `. .' " \ .---. < > < > .---. \ | \ \ - ~ ~ - / / | _____ ..-~ ~-..-~ | | \~~~\.' `./~~~/ --------- \__/ \__/ .' O \ / / \ " (_____, `._.' | } \/~~~/ `----. / } | / \__/ `-. | / | / `. ,~~| ~-.__| /_ - ~ ^| /- _ `..-' | / | / ~-. `-. _ _ _ |_____| |_____| ~ - . _ _ _ _ _> |
#./shtdown start
_______ < hello > ------- \ . . \ / `. .' " \ .---. < > < > .---. \ | \ \ - ~ ~ - / / | _____ ..-~ ~-..-~ | | \~~~\.' `./~~~/ --------- \__/ \__/ .' O \ / / \ " (_____, `._.' | } \/~~~/ `----. / } | / \__/ `-. | / | / `. ,~~| ~-.__| /_ - ~ ^| /- _ `..-' | / | / ~-. `-. _ _ _ |_____| |_____| ~ - . _ _ _ _ _> |
#./shtdown stop
__________ < good bye > ---------- \ \ (__) (\/) /-------\/ / | 666 || * ||----|| ~~ ~~ |
#./shtdown stop
__________ < good bye > ---------- \ \ (__) (\/) /-------\/ / | 666 || * ||----|| ~~ ~~ |
#cat shtdown
if [ "$1" = "start" ] then echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow elif [ "$1" = "stop" ] then echo 'good bye' | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow else echo $0 "start|stop" fi |
#cat shtdown
if [ "$1" = "start" ] then echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow elif [ "$1" = "stop" ] then echo 'good bye' | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow else echo $0 "start|stop" fi |
#ls -l
total 4 -rw-r--r-- 1 root root 556 2008-08-12 17:09 README lrwxrwxrwx 1 root root 17 2009-05-24 18:18 S10rsyslog -> ../init.d/rsyslog lrwxrwxrwx 1 root root 19 2009-05-27 15:21 S10syslog-ng -> ../init.d/syslog-ng lrwxrwxrwx 1 root root 14 2009-05-25 03:20 S12dbus -> ../init.d/dbus lrwxrwxrwx 1 root root 13 2009-05-24 18:18 S16ssh -> ../init.d/ssh lrwxrwxrwx 1 root root 15 2009-05-27 14:33 S20exim4 -> ../init.d/exim4 lrwxrwxrwx 1 root root 13 2009-05-25 03:20 S20lpd -> ../init.d/lpd lrwxrwxrwx 1 root root 23 2009-05-26 11:47 S20openbsd-inetd -> ../init.d/openbsd-inetd lrwxrwxrwx 1 root root 15 2009-05-29 09:18 S20rsync -> ../init.d/rsync lrwxrwxrwx 1 root root 15 2009-05-25 03:20 S21aumix -> ../init.d/aumix lrwxrwxrwx 1 root root 13 2009-05-25 03:20 S24hal -> ../init.d/hal lrwxrwxrwx 1 root root 13 2009-05-25 03:55 S30gdm -> ../init.d/gdm lrwxrwxrwx 1 root root 17 2009-05-27 14:34 S89anacron -> ../init.d/anacron lrwxrwxrwx 1 root root 13 2009-05-27 14:37 S89atd -> ../init.d/atd lrwxrwxrwx 1 root root 14 2009-05-24 18:18 S89cron -> ../init.d/cron lrwxrwxrwx 1 root root 15 2009-05-27 16:23 S99monit -> ../init.d/monit lrwxrwxrwx 1 root root 18 2009-05-24 18:18 S99rc.local -> ../init.d/rc.local lrwxrwxrwx 1 root root 19 2009-05-24 18:18 S99rmnologin -> ../init.d/rmnologin lrwxrwxrwx 1 root root 23 2009-05-24 18:18 S99stop-bootlogd -> ../init.d/stop-bootlogd lrwxrwxrwx 1 root root 19 2009-05-29 17:33 S99zshtdown -> /etc/init.d/shtdown |
#ssh 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri May 29 18:01:49 2009 from linux12.unix.nt l3-agent is already running: pid=1683; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri May 29 18:01:49 2009 from linux12.unix.nt l3-agent is already running: pid=1683; pidfile=/root/.lilalo/l3-agent.pid |
#cat shtdown
if [ "$1" = "start" ] then echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow elif [ "$1" = "stop" ] then echo 'good bye' | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow else echo $0 "start|stop" fi |
#cat shtdown
if [ "$1" = "start" ] then echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow elif [ "$1" = "stop" ] then echo 'good bye' | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow else echo $0 "start|stop" fi |
#учexit
exit Connection to 10.0.35.100 closed. |
#apt-get install sysvconfig
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: dialog The following NEW packages will be installed: dialog sysvconfig ... Selecting previously deselected package dialog. (Reading database ... 46250 files and directories currently installed.) Unpacking dialog (from .../dialog_1.1-20080819-1_i386.deb) ... Selecting previously deselected package sysvconfig. Unpacking sysvconfig (from .../sysvconfig_0.81_all.deb) ... Processing triggers for man-db ... Processing triggers for menu ... Setting up dialog (1.1-20080819-1) ... Setting up sysvconfig (0.81) ... Processing triggers for menu ... |
#apt-get install sysvconfig
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: dialog The following NEW packages will be installed: dialog sysvconfig ... Selecting previously deselected package dialog. (Reading database ... 46250 files and directories currently installed.) Unpacking dialog (from .../dialog_1.1-20080819-1_i386.deb) ... Selecting previously deselected package sysvconfig. Unpacking sysvconfig (from .../sysvconfig_0.81_all.deb) ... Processing triggers for man-db ... Processing triggers for menu ... Setting up dialog (1.1-20080819-1) ... Setting up sysvconfig (0.81) ... Processing triggers for menu ... |
#sysvconfig
"Debian Sysv lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqMain Menuqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk |
#sysvconfig
"Debian Sysv lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqMain Menuqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk |
# qqqqqqqqqqqqqx This is the sysvinit runlevel editor. Use the up and down arrow keys to xqqqqqqqqqqqqqqq
usbip usb-modeswitch usbprog usbutils usbip-source usbmount usbprog-gui usbview |
#apt-get install usbutils
Reading package lists... Done Building dependency tree Reading state information... Done usbutils is already the newest version. usbutils set to manually installed. The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded. |
# qqqqqqqqqqqqqx This is the sysvinit runlevel editor. Use the up and down arrow keys to xqqqqqqqqqqqqqqq
usbip usb-modeswitch usbprog usbutils usbip-source usbmount usbprog-gui usbview |
#apt-get install usbutils
Reading package lists... Done Building dependency tree Reading state information... Done usbutils is already the newest version. usbutils set to manually installed. The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded. |
#lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2) 00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02) 01:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller 02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0) |
#lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2) 00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02) 01:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller 02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0) |
1
if [ "$1" = "start" ] then echo hello | /usr/games/cowsay -f /usr/share/cowsay/cows/stegosaurus.cow elif [ "$1" = "stop" ] then echo 'good bye' | /usr/games/cowsay -f /usr/share/cowsay/cows/satanic.cow else echo $0 "start|stop" fi
Время первой команды журнала | 17:02:49 2009- 5-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 18:08:18 2009- 5-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 9.90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.09 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.54 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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