/l3/users/28-09-2015/NT-Ladm/debian2.net.nt/root :1 :2 :3 :4 :5 :6 :7 |
|
#cat install | egrep 'if (which )?apt-get'
if which apt-get >& /dev/null |
#cat install | egrep 'if (which |locate )?apt-get'
if which apt-get >& /dev/null |
#egrep '([0-9]|[0-9]{2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[0-9]{2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])' /etc
![]() egrep: Непарная ) или \) |
#egrep R '(([0-9]|[0-9]{2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[0-9]{2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])' /etc
![]() egrep: (([0-9]|[0-9]{2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[0-9]{2}|1[0-9]{2}|2[0-4][0-9]|25[0-5]): Нет такого файла или каталога egrep: /etc: Это каталог |
#egrep -R '(([0-9]|[0-9]{2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[0-9]{2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])' /etc
/etc/exim4/conf.d/router/100_exim4-config_domain_literal:# <user@[10.11.12.13]>. The RFCs require this facility, but it is disabled /etc/exim4/conf.d/router/200_exim4-config_primary: ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :\ /etc/exim4/conf.d/router/200_exim4-config_primary: 172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16 :\ /etc/exim4/conf.d/router/200_exim4-config_primary: 255.255.255.255 /etc/exim4/conf.d/main/02_exim4-config_options:# spamd_address = 127.0.0.1 783 /etc/exim4/conf.d/main/02_exim4-config_options:# Allow Exim to recognize addresses of the form "user@[10.11.12.13]", /etc/exim4/exim4.conf.template:# spamd_address = 127.0.0.1 783 /etc/exim4/exim4.conf.template:# Allow Exim to recognize addresses of the form "user@[10.11.12.13]", /etc/exim4/exim4.conf.template:# <user@[10.11.12.13]>. The RFCs require this facility, but it is disabled /etc/exim4/exim4.conf.template: ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :\ ... /etc/networks:loopback 127.0.0.0 /etc/networks:link-local 169.254.0.0 /etc/trafshow:10.0.0.0/8 any Red /etc/trafshow:any 10.0.0.0/8 Red /etc/trafshow:127.0.0.1/8 any Red /etc/trafshow:any 127.0.0.1/8 Red /etc/trafshow:172.16.0.0/16 any Red /etc/trafshow:any 172.16.0.0/16 Red /etc/trafshow:192.168.0.0/16 any Red /etc/trafshow:any 192.168.0.0/16 Red |
#ps lax
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND 4 0 1 0 20 0 10648 828 - Ss ? 0:05 init [2] 1 0 2 0 20 0 0 0 - S ? 0:00 [kthreadd] 1 0 3 2 20 0 0 0 - S ? 0:00 [ksoftirqd/0] 1 0 5 2 20 0 0 0 - S ? 0:00 [kworker/u:0] 1 0 6 2 -100 - 0 0 - S ? 0:00 [migration/0] 5 0 7 2 -100 - 0 0 - S ? 0:03 [watchdog/0] 1 0 8 2 0 -20 0 0 - S< ? 0:00 [cpuset] 1 0 9 2 0 -20 0 0 - S< ? 0:00 [khelper] 5 0 10 2 20 0 0 0 - S ? 0:00 [kdevtmpfs] ... 1 1000 8422 8351 20 0 18168 472 - S+ pts/4 0:00 script -f -c l3script -q /home/user/.lilalo//23268255052826723467-1443508579.scr 0 1000 8423 8422 20 0 24288 2940 - Ss+ pts/5 0:01 l3script 0 0 8484 8090 20 0 18164 844 - S+ pts/0 0:00 script -f -c l3script -q /root/.lilalo//3142712904239407254-1443508637.script 1 0 8515 8484 20 0 18168 472 - S+ pts/0 0:00 script -f -c l3script -q /root/.lilalo//3142712904239407254-1443508637.script 0 0 8516 8515 20 0 24064 2600 - Ss pts/6 0:02 l3script 0 1001 8537 8138 20 0 24264 2912 - S+ pts/2 0:00 l3script 0 1002 8578 8222 20 0 24264 2848 - S+ pts/3 0:00 l3script 0 0 9351 8516 20 0 7728 320 - T pts/6 0:00 cat 1 0 10294 2 20 0 0 0 - S ? 0:00 [kworker/0:1] 4 0 10870 8516 20 0 10536 844 - R+ pts/6 0:00 ps lax |
#ps lax | awk '$11~/?/'
![]() awk: line 1: regular expression compile failed (missing operand) ? |
#ps lax | awk '$11~/\?/'
4 0 1 0 20 0 10648 828 - Ss ? 0:05 init [2] 1 0 2 0 20 0 0 0 - S ? 0:00 [kthreadd] 1 0 3 2 20 0 0 0 - S ? 0:00 [ksoftirqd/0] 1 0 5 2 20 0 0 0 - S ? 0:00 [kworker/u:0] 1 0 6 2 -100 - 0 0 - S ? 0:00 [migration/0] 5 0 7 2 -100 - 0 0 - S ? 0:03 [watchdog/0] 1 0 8 2 0 -20 0 0 - S< ? 0:00 [cpuset] 1 0 9 2 0 -20 0 0 - S< ? 0:00 [khelper] 5 0 10 2 20 0 0 0 - S ? 0:00 [kdevtmpfs] 1 0 11 2 0 -20 0 0 - S< ? 0:00 [netns] ... 1 1000 5136 1 20 0 47736 10356 - Ss ? 4:46 l3-agent 1 0 8073 2 20 0 0 0 - S ? 0:01 [kworker/0:0] 4 0 8088 2258 20 0 71384 3800 - Ss ? 0:01 sshd: root@pts/0 4 0 8135 2258 20 0 71292 3616 - Ss ? 0:00 sshd: ivan [priv] 5 1001 8137 8135 20 0 71292 1864 - S ? 0:00 sshd: ivan@pts/2 4 0 8219 2258 20 0 71292 3624 - Ss ? 0:00 sshd: petr [priv] 5 1002 8221 8219 20 0 71292 1868 - S ? 0:00 sshd: petr@pts/3 4 0 8303 2258 20 0 71292 3620 - Ss ? 0:00 sshd: user [priv] 5 1000 8305 8303 20 0 71292 1876 - S ? 0:00 sshd: user@pts/4 1 0 10294 2 20 0 0 0 - S ? 0:00 [kworker/0:1] |
#ps lax | awk '$11!~/\?/'
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND 4 0 2282 1 20 0 18368 968 - Ss+ tty1 0:00 /sbin/getty 38400 tty1 4 0 2283 1 20 0 18368 976 - Ss+ tty2 0:00 /sbin/getty 38400 tty2 4 0 2284 1 20 0 18368 976 - Ss+ tty3 0:00 /sbin/getty 38400 tty3 4 0 2285 1 20 0 18368 972 - Ss+ tty4 0:00 /sbin/getty 38400 tty4 4 0 2286 1 20 0 18368 972 - Ss+ tty5 0:00 /sbin/getty 38400 tty5 4 0 2287 1 20 0 18368 968 - Ss+ tty6 0:00 /sbin/getty 38400 tty6 4 0 8090 8088 20 0 22168 2832 - Ss pts/0 0:00 -bash 0 1001 8138 8137 20 0 22600 3200 - Ss pts/2 0:00 -bash 0 1002 8222 8221 20 0 22600 3204 - Ss pts/3 0:00 -bash ... 1 1000 8422 8351 20 0 18168 472 - S+ pts/4 0:00 script -f -c l3script -q /home/user/.lilalo//23268255052826723467-1443508579.script 0 1000 8423 8422 20 0 24288 2940 - Ss+ pts/5 0:01 l3script 0 0 8484 8090 20 0 18164 844 - S+ pts/0 0:00 script -f -c l3script -q /root/.lilalo//3142712904239407254-1443508637.script 1 0 8515 8484 20 0 18168 472 - S+ pts/0 0:00 script -f -c l3script -q /root/.lilalo//3142712904239407254-1443508637.script 0 0 8516 8515 20 0 24064 2600 - Ss pts/6 0:02 l3script 0 1001 8537 8138 20 0 24264 2912 - S+ pts/2 0:00 l3script 0 1002 8578 8222 20 0 24264 2848 - S+ pts/3 0:00 l3script 0 0 9351 8516 20 0 7728 320 - T pts/6 0:00 cat 4 0 10896 8516 20 0 10536 844 - R+ pts/6 0:00 ps lax 0 0 10897 8516 20 0 6764 608 - S+ pts/6 0:00 awk $11!~/\?/ |
#cat passwd
![]() cat: passwd: Нет такого файла или каталога |
#cat /etc/passwd
root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:6:12:man:/var/cache/man:/bin/sh lp:x:7:7:lp:/var/spool/lpd:/bin/sh mail:x:8:8:mail:/var/mail:/bin/sh news:x:9:9:news:/var/spool/news:/bin/sh ... list:x:38:38:Mailing List Manager:/var/list:/bin/sh irc:x:39:39:ircd:/var/run/ircd:/bin/sh gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh nobody:x:65534:65534:nobody:/nonexistent:/bin/sh libuuid:x:100:101::/var/lib/libuuid:/bin/sh Debian-exim:x:101:103::/var/spool/exim4:/bin/false user:x:1000:1000:user,,,:/home/user:/bin/bash sshd:x:102:65534::/var/run/sshd:/usr/sbin/nologin ivan:x:1001:1001::/home/ivan:/bin/bash petr:x:1002:1002::/home/petr:/bin/bash |
#vi shell.sh
![]() --- /dev/null 2015-09-25 17:22:43.884000009 +0300 +++ shell.sh 2015-09-29 14:58:12.172969889 +0300 @@ -0,0 +1,3 @@ +#!/bin/bash + +uid=$ (grep '^UID_min' /etc/login.defs | awk '{print $2}') |
#vi shell.sh
--- /tmp/l3-saved-8516.18859.1386 2015-09-29 14:58:33.060969858 +0300 +++ shell.sh 2015-09-29 15:05:14.516969728 +0300 @@ -1,3 +1,5 @@ #!/bin/bash -uid=$ (grep '^UID_min' /etc/login.defs | awk '{print $2}') +uid=$(grep '^UID_min' /etc/login.defs | awk '{print $2}') +users=$(awk -F: '$3>=1000 && $3!=65534 {print $1}' /etc/passwd) +echo $users |
#bash vi shell.sh
![]() /usr/bin/vi: /usr/bin/vi: не могу запустить бинарный файл |
#bash shell.sh
user ivan petr |
#vi shell.sh
--- /tmp/l3-saved-8516.30590.32262 2015-09-29 15:05:49.972969915 +0300 +++ shell.sh 2015-09-29 15:10:45.444969893 +0300 @@ -3,3 +3,7 @@ uid=$(grep '^UID_min' /etc/login.defs | awk '{print $2}') users=$(awk -F: '$3>=1000 && $3!=65534 {print $1}' /etc/passwd) echo $users +for user in $users + do + usermod -s $1 $user + done |
#bash shell.sh
![]() user ivan petr ÐÑполÑзование: usermod [паÑамеÑÑÑ] ÐÐÐ , --comment ÐÐÐÐÐÐТÐÐ ÐРновое знаÑение Ð¿Ð¾Ð»Ñ GECOS -d, --home ÐÐÐ_ÐÐТ новÑй домаÑний каÑалог ÑÑÑÑной запиÑи -e, --expiredate ÐÐТÐ_УСТ ÑÑÑановиÑÑ Ð´Ð°ÑÑ Ð¾ÐºÐ¾Ð½ÑÐ°Ð½Ð¸Ñ Ð´ÐµÐ¹ÑÑÐ²Ð¸Ñ ÑÑÑÑной запиÑи в ÐÐТÐ_УСТ -f, --inactive ÐÐÐÐТÐÐÐÐСТЬ ÑÑÑановиÑÑ Ð¿ÐµÑиод неакÑивноÑÑи паÑÐ¾Ð»Ñ Ð¿Ð¾Ñле ÑÑÑаÑÐµÐ²Ð°Ð½Ð¸Ñ ÑÑÑÑной запиÑи ÑавнÑм ÐÐÐÐТÐÐÐÐСТЬ -g, --gid ÐРУÐÐРпÑинÑдиÑелÑно назнаÑиÑÑ Ð¿ÐµÑвиÑнÑÑ ÐРУÐÐУ -G, --groups ÐРУÐÐЫ ÑпиÑок дополниÑелÑнÑÑ ÐРУÐÐ ... имеÑÑимÑÑ (не ÑникалÑнÑм) UID -p, --password ÐÐÐ ÐÐ¾Ð»Ñ Ð´Ð»Ñ ÑÑÑÑной запиÑи -R, --root ÐÐТ_CHROOT каÑалог, в коÑоÑÑй вÑполнÑеÑÑÑ chroot -s, --shell ÐÐÐолоÑка Ð´Ð»Ñ ÑÑÑÑной запиÑи -u, --uid UID новÑй UID Ð´Ð»Ñ ÑÑÑÑной запиÑи -U, --unlock ÑазблокиÑоваÑÑ ÑÑÑÑнÑÑ Ð·Ð°Ð¿Ð¸ÑÑ -Z, --selinux-user SEUSER новое полÑзоваÑелÑÑкое ÑопоÑÑавление SELinux Ð´Ð»Ñ ÑÑÑÑной запиÑи |
#vi shell.sh
--- /tmp/l3-saved-8516.26292.20704 2015-09-29 15:10:54.064969965 +0300 +++ shell.sh 2015-09-29 15:16:24.140969875 +0300 @@ -1,9 +1,8 @@ #!/bin/bash -uid=$(grep '^UID_min' /etc/login.defs | awk '{print $2}') +uid=$(grep '^UID_MIN' /etc/login.defs | awk '{print $2}') users=$(awk -F: '$3>=1000 && $3!=65534 {print $1}' /etc/passwd) -echo $users for user in $users do - usermod -s $1 $user + grep "^$user.*bash" /etc/passwd &> /dev/null || usermod -s $1 $user done |
#bash shell.sh
|
#vi shell.sh
|
#~
|
#chmod u+x shell.sh
|
#./shell.sh /bin/bash
|
#cat install
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | sed -n '1,10p'
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 |
#cat install | sed '1,10d'
lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" # ############################################################################### lilalo_rc=.l3rc lilalo_home=.lilalo url_lilalo="http://xgu.ru/lilalo" url_l3bashrc="${url_lilalo}"/l3bashrc url_l3agent="${url_lilalo}"/l3-agent ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | sed '//^$d'
![]() sed: -e выражение #1, символ 3: неизвестная команда: `^' |
#cat install | sed '/^$/d'
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | sed '/^$/d'
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | sed 's/step/STEP'
![]() sed: -e выражение #1, символ 11: незавершенная команда `s' |
#cat install | sed 's/step/STEP'
![]() sed: -e выражение #1, символ 11: незавершенная команда `s' |
#cat install | sed 's/step/STEP/'
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... STEP "Downloading l3prompt" ${wget} ${url_l3prompt} STEP "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' STEP "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' STEP "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' STEP "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users STEP "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users STEP "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | sed '1,10s/step/STEP/'
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | sed '1,50s/step/STEP/'
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | sed '157,$s/step/STEP/'
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... STEP "Downloading l3prompt" ${wget} ${url_l3prompt} STEP "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' STEP "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' STEP "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' STEP "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users STEP "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users STEP "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | tr 3 4
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=14-10-2014 lab=NT-LNet install_l4bashrc_for_this_users=${users:-"root user"} # users who will use l4agent and l4script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l4prompt" ${wget} ${url_l4prompt} step "Downloading l4-agent" '${wget} ${url_l4agent}; ${wget} ${url_l4config_pm}; ${wget} ${url_l4config}' step "Downloading perl modules for l4-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l4-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l4bashrc to users home directories" install_to_users_homes $install_l4bashrc_for_this_users step "Adding l4bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l4bashrc_for_this_users step "Adding l4-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l4bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | tr 4 3
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2013 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | tr 3 4
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=14-10-2014 lab=NT-LNet install_l4bashrc_for_this_users=${users:-"root user"} # users who will use l4agent and l4script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l4prompt" ${wget} ${url_l4prompt} step "Downloading l4-agent" '${wget} ${url_l4agent}; ${wget} ${url_l4config_pm}; ${wget} ${url_l4config}' step "Downloading perl modules for l4-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l4-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l4bashrc to users home directories" install_to_users_homes $install_l4bashrc_for_this_users step "Adding l4bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l4bashrc_for_this_users step "Adding l4-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l4bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | tr 123 456
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=46-40-5044 lab=NT-LNet install_l6bashrc_for_this_users=${users:-"root user"} # users who will use l6agent and l6script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l6prompt" ${wget} ${url_l6prompt} step "Downloading l6-agent" '${wget} ${url_l6agent}; ${wget} ${url_l6config_pm}; ${wget} ${url_l6config}' step "Downloading perl modules for l6-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l6-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l6bashrc to users home directories" install_to_users_homes $install_l6bashrc_for_this_users step "Adding l6bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l6bashrc_for_this_users step "Adding l6-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l6bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | tr -s l
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before instalation: lilalo_user=13-10-2014 lab=NT-LNet instal_l3bashrc_for_this_users=${users:-"root user"} # users who wil use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Instaling perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make instal; cd ..; done; }' step "Instaling l3bashrc to users home directories" instal_to_users_homes $instal_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " instal_to_users_bashrc $instal_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " instal_to_users_bash_profile $instal_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | tr -s \n
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | tr -s "\n"
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | tr -d l
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variabes before instaation: iao_user=13-10-2014 ab=NT-LNet insta_3bashrc_for_this_users=${users:-"root user"} # users who wi use 3agent and 3script iao_context="/users/${iao_user}/${ab}/${hostname}" ... step "Downoading 3prompt" ${wget} ${ur_3prompt} step "Downoading 3-agent" '${wget} ${ur_3agent}; ${wget} ${ur_3config_pm}; ${wget} ${ur_3config}' step "Downoading per modues for 3-agent" '{ for i in ${per_modues}; do ${wget} ${ur_per_modues}/$i.tar.gz; done; }' step "Instaing per modues for 3-agent" '{ for i in ${per_modues}; do tar xvfz $i.tar.gz; cd $i*[^z]; per Makefie.PL; make; make insta; cd ..; done; }' step "Instaing 3bashrc to users home directories" insta_to_users_homes $insta_3bashrc_for_this_users step "Adding 3bashrc invocation to ~/.bashrc " insta_to_users_bashrc $insta_3bashrc_for_this_users step "Adding 3-agent invocation to ~/.bash_profie " insta_to_users_bash_profie $insta_3bashrc_for_this_users cd / rm -rf ${temp_dir} show_fina_message |
#cat install | tr -d [:punct:]
binsh hostnamehostname uname a egrep qi freebsddarwin hostnamehostname f Set this variables before installation lilalouser13102014 labNTLNet installl3bashrcforthisusersusersroot user users who will use l3agent and l3script lilalocontextuserslilalouserlabhostname lilalorcl3rc lilalohomelilalo ... step Downloading l3prompt wget urll3prompt step Downloading l3agent wget urll3agent wget urll3configpm wget urll3config step Downloading perl modules for l3agent for i in perlmodules do wget urlperlmodulesitargz done step Installing perl modules for l3agent for i in perlmodules do tar xvfz itargz cd iz perl MakefilePL make make install cd done step Installing l3bashrc to users home directories installtousershomes installl3bashrcforthisusers step Adding l3bashrc invocation to bashrc installtousersbashrc installl3bashrcforthisusers step Adding l3agent invocation to bashprofile installtousersbashprofile installl3bashrcforthisusers cd rm rf tempdir showfinalmessage |
#cat install | tr -c [:punct:]
![]() tr: пропущен операнд после «[:punct:]» При преобразовании необходимо задать две строки. Попробуйте «tr --help» для получения более подробного описания. |
#cat install | tr -cd [:punct:]
|
#cat install | tr -cd [:pune:]
![]() tr: неверный класс символов «spfce» |
#cat install | tr -cd [:punct:][:space:]
#!// =`` - | - '(|)' || =` -` ############################################################################### # # : _=-- =- ____=${:-" "} # _="//${_}/${}/${}" ... " " ${} ${_} " -" '${} ${_}; ${} ${__}; ${} ${_}' " -" '{ ${_}; ${} ${__}/$..; ; }' " -" '{ ${_}; $..; $*[^]; .; ; ; ..; ; }' " " ___ $____ " ~/. " ___ $____ " - ~/._ " ____ $____ / - ${_} __ |
#cat install
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#ls
1 all errors install privet.sh report shadow shell.sh |
#egrep [a-z] /etc/install
![]() egrep: /etc/install: Нет такого файла или каталога |
#egrep [a-z]*
install:# Set this variables before installation: install:install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script install:apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc" install:apt_get_install_deps() install: apt-get install -y $apt_get_install_this install: echo "Please install this dependencies manually:" install: echo $apt_get_install_this install: echo "Have you installed this already (y/n)?" install: echo Please install the dependencies and rerun the script install:install_to_users_homes() install:install_to_users_bashrc() install:install_to_users_bash_profile() install:Installation is successfully completed. install:temp_dir=/tmp/lilalo-install-temp-$$ install:step "Installing dependencies" apt_get_install_deps install:step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' install:step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users install:step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users install:step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users |
#install
![]() install: пропущен операнд, задающий файл Попробуйте «install --help» для получения более подробного описания. |
#cat install
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | egrep [a-z]*
install:# Set this variables before installation: install:install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script install:apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc" install:apt_get_install_deps() install: apt-get install -y $apt_get_install_this install: echo "Please install this dependencies manually:" install: echo $apt_get_install_this install: echo "Have you installed this already (y/n)?" install: echo Please install the dependencies and rerun the script install:install_to_users_homes() install:install_to_users_bashrc() install:install_to_users_bash_profile() install:Installation is successfully completed. install:temp_dir=/tmp/lilalo-install-temp-$$ install:step "Installing dependencies" apt_get_install_deps install:step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' install:step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users install:step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users install:step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users |
#cat install | egrep -v [a-z]*
errors:find: `/proc/9600/task/9600/fd/5': Нет такого файла или каталога errors:find: `/proc/9600/task/9600/fdinfo/5': Нет такого файла или каталога errors:find: `/proc/9600/fd/5': Нет такого файла или каталога errors:find: `/proc/9600/fdinfo/5': Нет такого файла или каталога install:#!/bin/sh install: install:hostname=`hostname` install:uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` install: install:############################################################################### ... shadow:ivan:$6$s2MItv3w$DaqUWGuX0hhkoyyrjsk4AaNTBqaoNtEXhSv5Kb1eweFwhXz7D904ClisTP8QyMGlxNO0BqgRhAxg6ISCj/Yd40:16706:0:99999:7::: shadow:petr:$6$Yc4IPhJI$k9TKWvNdctkI3RVwsO17bIG0BSTPipKfvUsiII/8UAwcd8kfVuQpa7DGE68DvGKy2.aJWWRxcgElPMGxs8pkt0:16706:0:99999:7::: shell.sh:#!/bin/bash shell.sh: shell.sh:uid=$(grep '^UID_MIN' /etc/login.defs | awk '{print $2}') shell.sh:users=$(awk -F: '$3>=1000 && $3!=65534 {print $1}' /etc/passwd) shell.sh:for user in $users shell.sh: do shell.sh: grep "^$user.*bash" /etc/passwd &> /dev/null || usermod -s $1 $user shell.sh: done |
#cat install | egrep ([a-z][A]Z)*
![]() l3script: syntax error near unexpected token `[a-z][A]Z' |
#cat install | egrep ([a-z][A-Z])*
![]() l3script: syntax error near unexpected token `[a-z][A-Z]' |
#cat install | grep '[a-z]'
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" lilalo_rc=.l3rc lilalo_home=.lilalo ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | du -s * |sort -rn | awk '{print$1;}'
8 8 4 4 4 4 4 0 |
#cat install | egrep -s * |sort -rn | awk '{print$1;}'
shell.sh:users=$(awk shell.sh: shadow:www-data:*:16248:0:99999:7::: shadow:uucp:*:16248:0:99999:7::: shadow:user:$6$CkJHVC8E$ykTJUix/7qmcPBJgqnJtCHlWhYfEaImqXcQyeRrwYm6Xi4KaZSfb4FB20ocZ/VlrQzTR2wiEobMxT/OM/FXgd0:16248:0:99999:7::: shadow:sys:*:16248:0:99999:7::: shadow:sync:*:16248:0:99999:7::: shadow:sshd:*:16248:0:99999:7::: shadow:root:$6$ppY7xZxX$CnutMU4XxetHko6DW5K/ckfiA6CFeC0cbV/d6rrWE6F5iszqxAaQTwekH3.vBTQPNCakvqusvPcBecndLcbX8.:16248:0:99999:7::: shadow:proxy:*:16248:0:99999:7::: ... all:/proc/8138/attr/keycreate all:/proc/8138/attr/fscreate all:/proc/8138/attr/exec all:/proc/8138/attr/current all:/home/ivan/d4/d3/d1/users all:/home/ivan/d4/d3/d1/f1 all:find: all:find: all:find: all:find: |
#sed /etc/install
![]() ^[[B^[[A^C |
#sed 's/:.*//' etc/install
![]() sed: невозможно прочитать etc/install: Нет такого файла или каталога |
#sed 's/:.*//' /etc/install
![]() sed: невозможно прочитать /etc/install: Нет такого файла или каталога |
#ls
1 all errors install privet.sh report shadow shell.sh |
#sed 's/:.*//' /root/install
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#sed 's/:.*//' |sort -rn /root/install
Your current lilalo context is ${lilalo_context}/USER whiteC='\033[1;37m' wget=wget users="$@" users="$@" users="$@" user_home=`get_user_home "$user"` user_home=`get_user_home "$user"` user_home=`get_user_home "$user"` Use commands ... { { { { { } || \ } { { ^[[B^[[A^C |
#cat install | tr [[:punct:]] " " | tr [:upper:] [:lower:]
bin sh hostname hostname uname a egrep qi freebsd darwin hostname hostname f set this variables before installation lilalo user 13 10 2014 lab nt lnet install l3bashrc for this users users root user users who will use l3agent and l3script lilalo context users lilalo user lab hostname lilalo rc l3rc lilalo home lilalo ... step downloading l3prompt wget url l3prompt step downloading l3 agent wget url l3agent wget url l3config pm wget url l3config step downloading perl modules for l3 agent for i in perl modules do wget url perl modules i tar gz done step installing perl modules for l3 agent for i in perl modules do tar xvfz i tar gz cd i z perl makefile pl make make install cd done step installing l3bashrc to users home directories install to users homes install l3bashrc for this users step adding l3bashrc invocation to bashrc install to users bashrc install l3bashrc for this users step adding l3 agent invocation to bash profile install to users bash profile install l3bashrc for this users cd rm rf temp dir show final message |
#cat install | tr [[:punct:]] " " | tr [:upper:] [:lower:] | tr -s " "
bin sh hostname hostname uname a egrep qi freebsd darwin hostname hostname f set this variables before installation lilalo user 13 10 2014 lab nt lnet install l3bashrc for this users users root user users who will use l3agent and l3script lilalo context users lilalo user lab hostname lilalo rc l3rc lilalo home lilalo ... step downloading l3prompt wget url l3prompt step downloading l3 agent wget url l3agent wget url l3config pm wget url l3config step downloading perl modules for l3 agent for i in perl modules do wget url perl modules i tar gz done step installing perl modules for l3 agent for i in perl modules do tar xvfz i tar gz cd i z perl makefile pl make make install cd done step installing l3bashrc to users home directories install to users homes install l3bashrc for this users step adding l3bashrc invocation to bashrc install to users bashrc install l3bashrc for this users step adding l3 agent invocation to bash profile install to users bash profile install l3bashrc for this users cd rm rf temp dir show final message |
#| tr " " 'n\'
![]() l3script: syntax error near unexpected token `|' |
#ls ~userlocate gog.jpg
![]() ls: невозможно получить доступ к ~userlocate: Нет такого файла или каталога ls: невозможно получить доступ к gog.jpg: Нет такого файла или каталога |
#locate gog.jpg
![]() |
#locate ogo.jpg
/home/user/ogo.jpg |
#>~user/ogo2.jpg
|
#locate ogo.jpg
/home/user/ogo.jpg |
#locate ogo2.jpg
![]() |
#less /etc/cron.daily/locate
|
#/etc/cron.daily/locate
|
#find / -mmin -2 2> /dev/null
![]() /var/cache/locate /var/cache/locate/locatedb /var/log/auth.log /dev/xconsole /dev/pts/8 /dev/pts/7 /dev/ptmx /home/user/.lilalo/.report.dat /root/.lilalo /root/.lilalo/167576235141433108-1443532954.info ... /proc/12241/stack /proc/12241/cpuset /proc/12241/cgroup /proc/12241/oom_score /proc/12241/oom_adj /proc/12241/oom_score_adj /proc/12241/loginuid /proc/12241/sessionid /proc/12241/coredump_filter /proc/12241/io |
#find / -mmin -2 2> /dev/null | grep -v 'proc'
/tmp /var/log/auth.log /var/log/syslog /dev/xconsole /dev/pts/8 /dev/pts/7 /dev/ptmx /home/user/.lilalo/.report.dat /root/.lilalo /root/.lilalo/167576235141433108-1443532954.info /root/.lilalo/.report.dat /root/.lilalo/167576235141433108-1443532954.script /root/.john/john.rec |
#ls -lh /var/cache/locate/locatedb
-rw-r--r-- 1 root root 323K Сен 29 17:15 /var/cache/locate/locatedb |
#file /var/cache/locate/locatedb
![]() l3script: file: команда не найдена |
#apt-get update
Получено:1 http://ftp.ua.debian.org wheezy Release.gpg [2 373 B] Получено:2 http://security.debian.org wheezy/updates Release.gpg [1 554 B] Получено:3 http://security.debian.org wheezy/updates Release [102 kB] Получено:4 http://ftp.ua.debian.org wheezy-updates Release.gpg [1 554 B] Получено:5 http://ftp.ua.debian.org wheezy Release [191 kB] Получено:6 http://security.debian.org wheezy/updates/main Sources [195 kB] Получено:7 http://ftp.ua.debian.org wheezy-updates Release [136 kB] Получено:8 http://security.debian.org wheezy/updates/contrib Sources [14 B] Получено:9 http://ftp.ua.debian.org wheezy/main Sources [5 982 kB] Получено:10 http://security.debian.org wheezy/updates/non-free Sources [14 B] ... Получено:32 http://ftp.ua.debian.org wheezy-updates/main Translation-en [3 814 B] Получено:33 http://ftp.ua.debian.org wheezy-updates/non-free Translation-en [14 B] Получено 17,2 MБ за 49с (350 kБ/c) Чтение списков пакетов… Готово W: Недоступен открытый ключ для следующих ID ключей: 9D6D8F6BC857C906 W: Недоступен открытый ключ для следующих ID ключей: 7638D0442B90D010 W: Недоступен открытый ключ для следующих ID ключей: 7638D0442B90D010 |
#apt-get install file
Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово Будут установлены следующие дополнительные пакеты: libmagic1 НОВЫЕ пакеты, которые будут установлены: file libmagic1 обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 66 пакетов не обновлено. Необходимо скачать 258 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 2 616 kB. ... Получено:2 http://ftp.ua.debian.org/debian/ wheezy/main file amd64 5.11-2+deb7u8 [53,4 kB] Получено 258 kБ за 0с (572 kБ/c) Выбор ранее не выбранного пакета libmagic1:amd64. (Чтение базы данных … на данный момент установлено 30053 файла и каталога.) Распаковывается пакет libmagic1:amd64 (из файла …/libmagic1_5.11-2+deb7u8_amd64.deb) … Выбор ранее не выбранного пакета file. Распаковывается пакет file (из файла …/file_5.11-2+deb7u8_amd64.deb) … Обрабатываются триггеры для man-db … Настраивается пакет libmagic1:amd64 (5.11-2+deb7u8) … Настраивается пакет file (5.11-2+deb7u8) … |
#file all
all: UTF-8 Unicode text |
#find / -user ivan
![]() /tmp/users /var/mail/ivan /dev/pts/2 /home/ivan /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4 /home/ivan/d4/d3 /home/ivan/d4/d3/d1 /home/ivan/d4/d3/d1/f1 ... /proc/8537/oom_adj /proc/8537/oom_score_adj /proc/8537/loginuid /proc/8537/sessionid /proc/8537/coredump_filter /proc/8537/io find: `/proc/12582/task/12582/fd/5': Нет такого файла или каталога find: `/proc/12582/task/12582/fdinfo/5': Нет такого файла или каталога find: `/proc/12582/fd/5': Нет такого файла или каталога find: `/proc/12582/fdinfo/5': Нет такого файла или каталога |
#find / -user ivan |grep -v proc
/tmp/users /var/mail/ivan /dev/pts/2 /home/ivan /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4 /home/ivan/d4/d3 /home/ivan/d4/d3/d1 /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout find: `/proc/12590/task/12590/fd/5': Нет такого файла или каталога find: `/proc/12590/task/12590/fdinfo/5': Нет такого файла или каталога find: `/proc/12590/fd/5': Нет такого файла или каталога find: `/proc/12590/fdinfo/5': Нет такого файла или каталога |
#find / -user ivan -type f 2> /dev/null|grep -v proc
/tmp/users /var/mail/ivan /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout |
#find / -user ivan -type f -empty2> /dev/null|grep -v proc
![]() find: unknown predicate `-empty2' |
#find / -user ivan -type f -empty 2> /dev/null|grep -v proc
/home/ivan/d4/d3/d1/f1 |
#find / -user ivan -type f -empty 2> /dev/null exec rm -f {} \;
![]() |
#find / -user ivan -type f -empty2> /dev/null|grep -v proc
![]() find: unknown predicate `-empty2' |
#find / -user ivan |grep -v proc
/tmp/users /var/mail/ivan /dev/pts/2 /home/ivan /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4 /home/ivan/d4/d3 /home/ivan/d4/d3/d1 /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout find: `/proc/12652/task/12652/fd/5': Нет такого файла или каталога find: `/proc/12652/task/12652/fdinfo/5': Нет такого файла или каталога find: `/proc/12652/fd/5': Нет такого файла или каталога find: `/proc/12652/fdinfo/5': Нет такого файла или каталога |
#cat .john/john.pot
$6$s2MItv3w$DaqUWGuX0hhkoyyrjsk4AaNTBqaoNtEXhSv5Kb1eweFwhXz7D904ClisTP8QyMGlxNO0BqgRhAxg6ISCj/Yd40:123 $6$CkJHVC8E$ykTJUix/7qmcPBJgqnJtCHlWhYfEaImqXcQyeRrwYm6Xi4KaZSfb4FB20ocZ/VlrQzTR2wiEobMxT/OM/FXgd0:password $6$Yc4IPhJI$k9TKWvNdctkI3RVwsO17bIG0BSTPipKfvUsiII/8UAwcd8kfVuQpa7DGE68DvGKy2.aJWWRxcgElPMGxs8pkt0:123 |
$6$s2MItv3w$DaqUWGuX0hhkoyyrjsk4AaNTBqaoNtEXhSv5Kb1eweFwhXz7D904ClisTP8QyMGlxNO0BqgRhAxg6ISCj/Yd40:123 $6$CkJHVC8E$ykTJUix/7qmcPBJgqnJtCHlWhYfEaImqXcQyeRrwYm6Xi4KaZSfb4FB20ocZ/VlrQzTR2wiEobMxT/OM/FXgd0:password $6$Yc4IPhJI$k9TKWvNdctkI3RVwsO17bIG0BSTPipKfvUsiII/8UAwcd8kfVuQpa7DGE68DvGKy2.aJWWRxcgElPMGxs8pkt0:123
root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:6:12:man:/var/cache/man:/bin/sh lp:x:7:7:lp:/var/spool/lpd:/bin/sh mail:x:8:8:mail:/var/mail:/bin/sh news:x:9:9:news:/var/spool/news:/bin/sh uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh proxy:x:13:13:proxy:/bin:/bin/sh www-data:x:33:33:www-data:/var/www:/bin/sh backup:x:34:34:backup:/var/backups:/bin/sh list:x:38:38:Mailing List Manager:/var/list:/bin/sh irc:x:39:39:ircd:/var/run/ircd:/bin/sh gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh nobody:x:65534:65534:nobody:/nonexistent:/bin/sh libuuid:x:100:101::/var/lib/libuuid:/bin/sh Debian-exim:x:101:103::/var/spool/exim4:/bin/false user:x:1000:1000:user,,,:/home/user:/bin/bash sshd:x:102:65534::/var/run/sshd:/usr/sbin/nologin ivan:x:1001:1001::/home/ivan:/bin/bash petr:x:1002:1002::/home/petr:/bin/bash
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" # ############################################################################### lilalo_rc=.l3rc lilalo_home=.lilalo url_lilalo="http://xgu.ru/lilalo" url_l3bashrc="${url_lilalo}"/l3bashrc url_l3agent="${url_lilalo}"/l3-agent url_l3config_pm="${url_lilalo}"/l3config.pm url_l3config="${url_lilalo}"/l3-config url_l3prompt="${url_lilalo}"/l3prompt url_perl_modules=${url_lilalo}/ perl_modules="Term-VT102 Text-Iconv" apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc" wget=wget uname -a | egrep -qi '(bsd|darwin)' && wget=fetch normC='\033[0;39m' whiteC='\033[1;37m' redC='\033[0;31m' greenC='\033[0;32m' apt_get_install_deps() { return 0 if which apt-get >& /dev/null then apt-get install -y $apt_get_install_this else echo "Please install this dependencies manually:" echo $apt_get_install_this echo "Have you installed this already (y/n)?" echo y | read answer if echo $answer | grep -q ^[yY] then true else echo Please install the dependencies and rerun the script exit 1 fi fi } step() { msg="$1" shift printf "${whiteC}""$msg""...${normC}\n" # eval "$@" 2>&1 | sed 's/^/|\ \ \ /' && printf "Ok\n" || printf "Failed\n" eval "$@" 2>&1 > log 2>&1 && \ { cat log | sed 's/^/|\ \ \ /' printf "${greenC}""Ok\n""${normC}" } || \ { cat log | sed 's/^/|\ \ \ /' printf "${redC}""Failed\n""${normC}" } } get_user_home() { uname -a | egrep -qi '(freebsd|darwin)' && pw user show "$@"| awk -F: '{print $9}' || getent passwd "$@"| awk -F: '{print $6}' } install_to_users_homes() { . l3bashrc users="$@" set -x for user in $users do user_home=`get_user_home "$user"` mkdir -p ${user_home}/${lilalo_home} mkdir /etc/lilalo/ cp l3config.pm /etc/lilalo/ cp l3-agent /usr/local/bin cp l3-config /usr/local/bin ln -s `which bash` /usr/local/bin/l3script chmod 755 /usr/local/bin/l3-{agent,config} cp l3bashrc ${user_home}/${lilalo_home} cp l3prompt ${user_home}/${lilalo_home} chmod 755 ${user_home}/${lilalo_home}/l3prompt chown -R $user ${user_home}/${lilalo_home} echo l3cd=${lilalo_context}/$user > ${user_home}/${lilalo_rc} chown -R $user ${user_home}/${lilalo_rc} done set +x } install_to_users_bashrc() { users="$@" for user in $users do user_home=`get_user_home "$user"` grep -q lilalo ${user_home}/.bashrc 2> /dev/null\ || echo "[ \$0 == l3script ] && . ${user_home}/.lilalo/l3bashrc && _l3_start" >> ${user_home}/.bashrc; chown -R ${user} ${user_home}/.bashrc done } install_to_users_bash_profile() { users="$@" for user in $users do user_home=`get_user_home "$user"` grep -q l3-agent ${user_home}/.bash_profile 2> /dev/null \ || { echo >> ${user_home}/.bash_profile ; cat ${user_home}/.bash_profile | sed '1s/^/l3-agentX/' | tr X '\n' > /tmp/$$$$l3 ; mv /tmp/$$$$l3 ${user_home}/.bash_profile; chown -R ${user} ${user_home}/.bash_profile; } done } show_usage() { cat <<USAGE Usage: $0 USAGE } show_final_message() { cat <<FINAL_MESSAGE Installation is successfully completed. Now restart your shell or relogin to start script writing. Your current lilalo context is ${lilalo_context}/USER If you use xgu.ru backend, your labs will be available at http://xgu.ru/l3/${lilalo_context} Use commands $ l3cd ${lilalo_context%/*/*}/MY-NEW-CONTEXT/${hostname}/USER $ l3pwd to change and to know your current context. For further information see http://xgu.ru/lilalo/ (in Russian). Thank you gor using LiLaLo. Happy Labbing! (don't forget to restart bash or relogin) FINAL_MESSAGE } temp_dir=/tmp/lilalo-install-temp-$$ mkdir -p ${temp_dir} cd ${temp_dir} step "Installing dependencies" apt_get_install_deps step "Downloading l3bashrc" ${wget} ${url_l3bashrc} step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message
Время первой команды журнала | 13:24:50 2015- 9-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:10:28 2015- 9-30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 26.73 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.46 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.68 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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