Журнал лабораторных работ

Содержание

Журнал

Вторник (09/29/15)

/dev/pts/0
14:14:10
#bash shell.sh /bin/bash

14:14:11
#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
14:14:33
#bash shell.sh /bin/bash

14:14:35
#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
14:16:28
#bash shell.sh /bin/bash
awk: line 1: syntax error at or near >=
14:16:59
#bash shell.sh /bin/bash
awk: 0: unexpected character '\'
awk: line 1: syntax error at or near >
awk: 1: unexpected character '\'
awk: 1: unexpected character '\'
14:17:21
#bash shell.sh /bin/bash
awk: line 1: syntax error at or near >=
14:17:38
#bash shell.sh /bin/bash

14:21:39
#chmod u+x shell.sh

14:21:50
#./shell.sh /bin/bash

14:23:10
#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
14:23:40
#cat install | sed -n '1,10d'

14:23:52
#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}"
locate
potop
#
###############################################################################
rotor
xguaru
lilalo_rc=.l3rc
...
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
14:23:55
#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}"
locate
potop
#
###############################################################################
rotor
xguaru
lilalo_rc=.l3rc
...
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
14:24:21
#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
14:25:28
#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
14:25:36
#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
14:27:11
#cat install | sed '1,10s/step/STEP/' | more
14:27:27
#cat install | sed '1,50s/step/STEP/' | more
14:27:39
#cat install | sed '50,$s/step/STEP/' | more
14:28:04
#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
14:28:22
#cat install | sed '157,158s/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
14:28:49
#cat install | sed '157,160s/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
14:28:58
#cat install | sed '%s/step/STEP/'
sed: -e выражение #1, символ 1: неизвестная команда: `%'
14:29:05
#cat install | sed 's/user/USERS/'
#!/bin/sh
hostname=`hostname`
uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f`
###############################################################################
#
# Set this variables before installation:
lilalo_USERS=13-10-2014
lab=NT-LNet
install_l3bashrc_for_this_USERSs=${users:-"root user"}  # users who will use l3agent and l3script
lilalo_context="/USERSs/${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 USERSs home directories" install_to_users_homes $install_l3bashrc_for_this_users
step "Adding l3bashrc invocation to ~/.bashrc " install_to_USERSs_bashrc $install_l3bashrc_for_this_users
step "Adding l3-agent invocation to ~/.bash_profile " install_to_USERSs_bash_profile $install_l3bashrc_for_this_users
cd /
rm -rf ${temp_dir}
show_final_message
14:29:25
#cat install | sed 's/users/USERS/'
#!/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
14:29:31
#cat install | sed 's/users/USERS/g'
#!/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
14:30:14
#cat install | sed 's/users$/USERS/g'
#!/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
14:30:26
#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
14:31:22
#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
14:31:41
#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
14:32:14
#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
14:32:52
#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
14:33:14
#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
14:33:21
#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
14:33:42
#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
locate
potop
...
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
14:34:00
#cat install | tr -cd [:punct:]

14:34:29
#cat install | tr -cd [:punct:][:space:]
#!//
=``
 - |  - '(|)' || =` -`
###############################################################################
#
#     :
_=--
=-
____=${:-" "}  #
_="//${_}/${}/${}"
...
 " " ${} ${_}
 " -" '${} ${_}; ${} ${__}; ${} ${_}'
 "    -" '{    ${_};  ${} ${__}/$..; ; }'
 "    -" '{    ${_};    $..;  $*[^];  .; ;  ;  ..; ; }'
 "     " ___ $____
 "    ~/. " ___ $____
 " -   ~/._ " ____ $____
 /
 - ${_}
__
прошла 41 минута
15:15:54
#ls /root/
23423     234235232252352435  234g23        all     install    report  shell.sh
23423523  234235325           234g23hgfdfh  errors  privet.sh  shadow  wetwet
15:18:47
#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
прошло 33 минуты
15:52:13
#cat install | tr "_" " "
#!/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
15:52:33
#cat install | tr [[:punct:]] " "
   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
locate
potop
...
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
15:52:58
#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
locate
potop
...
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
прошло 14 минут
16:07:35
#locate ogo.jpg
/home/user/ogo.jpg
16:07:48
#> ~user/ogo2.jpg

16:08:11
#locate ogo.jpg
/home/user/ogo.jpg
16:08:12
#locate ogo2.jpg

16:08:14
#ls /etc/cron.daily/
apt       bsdmainutils  exim4-base  logrotate  passwd
aptitude  dpkg          locate      man-db
16:09:54
#ls /etc/cron.weekly/
man-db
16:09:57
#ls /etc/cron.monthly/

16:10:00
#cat /etc/cron.daily/locate
#! /bin/sh
set -e
# cron script to update the `locatedb' database.
#
# Written by Ian A. Murdock <imurdock@debian.org> and
#            Kevin Dalley <kevin@aimnet.com>
# Please consult updatedb(1) and /usr/share/doc/locate/README.Debian
[ -e /usr/bin/updatedb.findutils ] || exit 0
if [ "$(id -u)" != "0" ]; then
        echo "You must be root."
...
                ionice -c $IONICE_CLASS $priority -p $$ > /dev/null 2>&1 || true
                ;;
        esac
fi
if getent passwd $LOCALUSER > /dev/null ; then
  cd / && nice -n ${NICE:-10} updatedb.findutils 2>/dev/null
else
  echo "User $LOCALUSER does not exist."
  exit 1
fi
16:12:46
#ls
23423     234235232252352435  234g23        all     install    report  shell.sh
23423523  234235325           234g23hgfdfh  errors  privet.sh  shadow  wetwet
16:12:48
#locate install
/sbin/discover-pkginstall
/sbin/installkernel
/usr/bin/dh_installxmlcatalogs
/usr/bin/ginstall-info
/usr/bin/install
/usr/bin/install-info
/usr/lib/dpkg/methods/apt/install
/usr/lib/grub/i386-pc/grub-install
/usr/lib/python2.7/distutils/command/install_data.py
/usr/lib/python2.7/distutils/command/install_data.pyc
...
/var/lib/dpkg/info/libsub-install-perl.md5sums
/var/log/installer
/var/log/installer/cdebconf
/var/log/installer/cdebconf/questions.dat
/var/log/installer/cdebconf/templates.dat
/var/log/installer/hardware-summary
/var/log/installer/lsb-release
/var/log/installer/partman
/var/log/installer/status
/var/log/installer/syslog
16:14:23
#/etc/cron.daily/locate

16:14:49
#find / -mmin -2 2> /dev/null
/dev/pts/4
/dev/pts/0
/dev/ptmx
/root/.lilalo
/root/.lilalo/.report.dat
/root/.lilalo/3214919816900022178-1443510370.info
/root/.lilalo/3214919816900022178-1443510370.script
/proc/asound
/proc/asound/pcm
/proc/asound/timers
...
/proc/11650/stack
/proc/11650/cpuset
/proc/11650/cgroup
/proc/11650/oom_score
/proc/11650/oom_adj
/proc/11650/oom_score_adj
/proc/11650/loginuid
/proc/11650/sessionid
/proc/11650/coredump_filter
/proc/11650/io
16:16:39
#find / -mmin -3 2> /dev/null | grep -v 'proc'
/tmp
/var/cache/locate
/var/cache/locate/locatedb
/var/log/auth.log
/var/log/syslog
/dev/xconsole
/dev/pts/4
/dev/pts/0
/dev/ptmx
/root/.lilalo
/root/.lilalo/.report.dat
/root/.lilalo/3214919816900022178-1443510370.info
/root/.lilalo/3214919816900022178-1443510370.script
/root/.john/john.rec
16:17:09
#ls -lh /var/cache/locate/locatedb
-rw-r--r-- 1 root root 322K Сен 29 17:14 /var/cache/locate/locatedb
16:18:59
#apt-get install file
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Будут установлены следующие дополнительные пакеты:
  libmagic1
НОВЫЕ пакеты, которые будут установлены:
  file libmagic1
обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 256 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 2 616 kB.
Хотите продолжить [Д/н]? y
Ош  http://security.debian.org/ wheezy/updates/main libmagic1 amd64 5.11-2+deb7u5
  404  Not Found [IP: 195.20.242.89 80]
Ош  http://security.debian.org/ wheezy/updates/main file amd64 5.11-2+deb7u5
  404  Not Found [IP: 195.20.242.89 80]
Не удалось получить http://security.debian.org/pool/updates/main/f/file/libmagic1_5.11-2+deb7u5_amd64.deb  404  Not Found [IP: 195.20.242.89 80]
Не удалось получить http://security.debian.org/pool/updates/main/f/file/file_5.11-2+deb7u5_amd64.deb  404  Not Found [IP: 195.20.242.89 80]
E: Невозможно получить некоторые архивы, вероятно надо запустить apt-get update или попытаться повторить запуск с ключом --fix-missing
16:19:51
#apt-get update
Получено:1 http://security.debian.org wheezy/updates Release.gpg [1 554 B]
Получено:2 http://security.debian.org wheezy/updates Release [102 kB]
Получено:3 http://ftp.ua.debian.org wheezy Release.gpg [2 373 B]
Получено: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://security.debian.org wheezy/updates/contrib Sources [14 B]
Получено:8 http://security.debian.org wheezy/updates/non-free Sources [14 B]
Получено:9 http://security.debian.org wheezy/updates/main amd64 Packages [320 kB]
Получено:10 http://ftp.ua.debian.org wheezy-updates Release [136 kB]
...
Получено: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Б за 41с (417 kБ/c)
Чтение списков пакетов… Готово
W: Недоступен открытый ключ для следующих ID ключей:
9D6D8F6BC857C906
W: Недоступен открытый ключ для следующих ID ключей:
7638D0442B90D010
W: Недоступен открытый ключ для следующих ID ключей:
7638D0442B90D010
16:21:05
#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с (278 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) …
16:21:39
#ls
23423     234235232252352435  234g23        all     install    report  shell.sh
23423523  234235325           234g23hgfdfh  errors  privet.sh  shadow  wetwet
16:22:18
#file all
all: UTF-8 Unicode text
16:22:23
#file privet.sh
privet.sh: Bourne-Again shell script, ASCII text executable
16:22:29
#file /boot/vmlinuz-3.2.0-4-amd64
/boot/vmlinuz-3.2.0-4-amd64: Linux kernel x86 boot executable bzImage, version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) #1 SMP Debian 3., RO-rootFS, swap_dev 0x2, Normal VGA
16:23:57
#find / -user ivan 2> /dev/null
/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/7474/stack
/proc/7474/cpuset
/proc/7474/cgroup
/proc/7474/oom_score
/proc/7474/oom_adj
/proc/7474/oom_score_adj
/proc/7474/loginuid
/proc/7474/sessionid
/proc/7474/coredump_filter
/proc/7474/io
16:24:02
#find / -user ivan 2> /dev/null | 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
16:24:14
#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
16:24:58
#find / -user ivan -type f -empty 2> /dev/null | grep -v proc
/home/ivan/d4/d3/d1/f1
16:27:46
#| grep -v proc
/proc/7474/task/7474/fdinfo/0
/proc/7474/task/7474/fdinfo/1
/proc/7474/task/7474/fdinfo/2
/proc/7474/task/7474/fdinfo/255
/proc/7474/task/7474/ns/net
/proc/7474/task/7474/ns/uts
/proc/7474/task/7474/ns/ipc
/proc/7474/task/7474/environ
/proc/7474/task/7474/auxv
/proc/7474/task/7474/status
...
/proc/7474/stack
/proc/7474/cpuset
/proc/7474/cgroup
/proc/7474/oom_score
/proc/7474/oom_adj
/proc/7474/oom_score_adj
/proc/7474/loginuid
/proc/7474/sessionid
/proc/7474/coredump_filter
/proc/7474/io
16:27:55
#| grep -v proc
                                            -empty
16:30:32
#find / -user ivan -type f -empty 2> /dev/null
/proc/7474/task/7474/fdinfo/0
/proc/7474/task/7474/fdinfo/1
/proc/7474/task/7474/fdinfo/2
/proc/7474/task/7474/fdinfo/255
/proc/7474/task/7474/ns/net
/proc/7474/task/7474/ns/uts
/proc/7474/task/7474/ns/ipc
/proc/7474/task/7474/environ
/proc/7474/task/7474/auxv
/proc/7474/task/7474/status
...
/proc/7474/stack
/proc/7474/cpuset
/proc/7474/cgroup
/proc/7474/oom_score
/proc/7474/oom_adj
/proc/7474/oom_score_adj
/proc/7474/loginuid
/proc/7474/sessionid
/proc/7474/coredump_filter
/proc/7474/io
16:30:39
#find / -user ivan -type f -empty 2> /dev/null | grep -v proc
/home/ivan/f2
16:30:51
#find / -user ivan -type f -empty 2> /dev/null | xargs rm -f
rm: невозможно удалить «/proc/7474/task/7474/fdinfo/0»: Операция не позволяется
rm: невозможно удалить «/proc/7474/task/7474/fdinfo/1»: Операция не позволяется
rm: невозможно удалить «/proc/7474/task/7474/fdinfo/2»: Операция не позволяется
rm: невозможно удалить «/proc/7474/task/7474/fdinfo/255»: Операция не позволяется
rm: невозможно удалить «/proc/7474/task/7474/ns/net»: Операция не позволяется
rm: невозможно удалить «/proc/7474/task/7474/ns/uts»: Операция не позволяется
rm: невозможно удалить «/proc/7474/task/7474/ns/ipc»: Операция не позволяется
rm: невозможно удалить «/proc/7474/task/7474/environ»: Отказано в доступе
rm: невозможно удалить «/proc/7474/task/7474/auxv»: Отказано в доступе
rm: невозможно удалить «/proc/7474/task/7474/status»: Отказано в доступе
...
rm: невозможно удалить «/proc/7474/stack»: Отказано в доступе
rm: невозможно удалить «/proc/7474/cpuset»: Отказано в доступе
rm: невозможно удалить «/proc/7474/cgroup»: Отказано в доступе
rm: невозможно удалить «/proc/7474/oom_score»: Отказано в доступе
rm: невозможно удалить «/proc/7474/oom_adj»: Отказано в доступе
rm: невозможно удалить «/proc/7474/oom_score_adj»: Отказано в доступе
rm: невозможно удалить «/proc/7474/loginuid»: Отказано в доступе
rm: невозможно удалить «/proc/7474/sessionid»: Отказано в доступе
rm: невозможно удалить «/proc/7474/coredump_filter»: Отказано в доступе
rm: невозможно удалить «/proc/7474/io»: Отказано в доступе
16:31:13
#xargs rm -f
                                                                | grep -v proc
16:31:18
#man find
прошло 32 минуты
17:03:45
#help declare
declare: declare [-aAfFgilrtux] [-p] [name[=value] ...]
    Set variable values and attributes.
    Declare variables and give them attributes.  If no NAMEs are given,
    display the attributes and values of all variables.
    Options:
      -f        restrict action or display to function names and definitions
      -F        restrict display to function names only (plus line number and
        source file when debugging)
      -g        create global variables when used in a shell function; otherwise
        ignored
...
      -t        to make NAMEs have the `trace' attribute
      -u        to convert NAMEs to upper case on assignment
      -x        to make NAMEs export
    Using `+' instead of `-' turns off the given attribute.
    Variables with the integer attribute have arithmetic evaluation (see
    the `let' command) performed when the variable is assigned a value.
    When used in a function, `declare' makes NAMEs local, as with the `local'
    command.  The `-g' option suppresses this behavior.
    Exit Status:
    Returns success unless an invalid option is supplied or an error occurs.

Среда (09/30/15)

08:36:50
#declare -r a=1

08:37:24
#echo $a
1
08:37:32
#a=9
l3script: a: доступная только на чтение переменная
08:37:35
#unset a
l3script: unset: a: не могу сбросить: доступно только для чтения variable
08:37:41
#unset a
l3script: unset: a: не могу сбросить: доступно только для чтения variable
08:38:48
#unset a
l3script: unset: a: не могу сбросить: доступно только для чтения variable
08:39:08
#help declare
declare: declare [-aAfFgilrtux] [-p] [name[=value] ...]
    Set variable values and attributes.
    Declare variables and give them attributes.  If no NAMEs are given,
    display the attributes and values of all variables.
    Options:
      -f        restrict action or display to function names and definitions
      -F        restrict display to function names only (plus line number and
        source file when debugging)
      -g        create global variables when used in a shell function; otherwise
        ignored
...
      -t        to make NAMEs have the `trace' attribute
      -u        to convert NAMEs to upper case on assignment
      -x        to make NAMEs export
    Using `+' instead of `-' turns off the given attribute.
    Variables with the integer attribute have arithmetic evaluation (see
    the `let' command) performed when the variable is assigned a value.
    When used in a function, `declare' makes NAMEs local, as with the `local'
    command.  The `-g' option suppresses this behavior.
    Exit Status:
    Returns success unless an invalid option is supplied or an error occurs.
08:39:17
#declare
BASH=/usr/local/bin/l3script
BASHOPTS=checkwinsize:cmdhist:expand_aliases:extglob:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="4" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu")
BASH_VERSION='4.2.37(1)-release'
...
MACHTYPE=x86_64-pc-linux-gnu
MAIL=/var/mail/root
MAILCHECK=60
OLDPWD=/bin
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PIPESTATUS=([0]="0")
PPID=7670
08:39:32
#unset a
l3script: unset: a: не могу сбросить: доступно только для чтения variable
08:39:51
#help declare
declare: declare [-aAfFgilrtux] [-p] [name[=value] ...]
    Set variable values and attributes.
    Declare variables and give them attributes.  If no NAMEs are given,
    display the attributes and values of all variables.
    Options:
      -f        restrict action or display to function names and definitions
      -F        restrict display to function names only (plus line number and
        source file when debugging)
      -g        create global variables when used in a shell function; otherwise
        ignored
...
      -t        to make NAMEs have the `trace' attribute
      -u        to convert NAMEs to upper case on assignment
      -x        to make NAMEs export
    Using `+' instead of `-' turns off the given attribute.
    Variables with the integer attribute have arithmetic evaluation (see
    the `let' command) performed when the variable is assigned a value.
    When used in a function, `declare' makes NAMEs local, as with the `local'
    command.  The `-g' option suppresses this behavior.
    Exit Status:
    Returns success unless an invalid option is supplied or an error occurs.
08:41:06
#declare +r a=1
l3script: declare: a: доступная только на чтение переменная
08:47:48
#declare +r a
l3script: declare: a: доступная только на чтение переменная
08:48:00
#declare -p a
declare -r a="1"
08:48:13
#declare +r a
l3script: declare: a: доступная только на чтение переменная
08:48:32
#declare -i b

08:56:27
#echo $b

08:56:33
#b="we"

08:56:38
#echo $b
0
08:56:41
#c=10

прошла 31 минута
09:28:12
#echo $c
10
09:28:27
#bash
root@debian5:~# echo $c
root@debian5:~# exit
exit
09:29:29
#echo $c
10
09:29:37
#set
BASH=/usr/local/bin/l3script
BASHOPTS=checkwinsize:cmdhist:expand_aliases:extglob:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="4" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu")
BASH_VERSION='4.2.37(1)-release'
...
MACHTYPE=x86_64-pc-linux-gnu
MAIL=/var/mail/root
MAILCHECK=60
OLDPWD=/bin
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PIPESTATUS=([0]="0")
PPID=7670
09:29:50
#set | grep c
BASH=/usr/local/bin/l3script
BASHOPTS=checkwinsize:cmdhist:expand_aliases:extglob:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_VERSINFO=([0]="4" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu")
L3_TAMPERED_EDITORS=' vi vim pico nano'
MACHTYPE=x86_64-pc-linux-gnu
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
c=10
editor_file=/usr/local/bin/vim
    eval $(cat "$@" | sed 's/"/\\\\"/g' | while read line; do echo history -s \"$line\"\;; done)
...
pico ()
        /usr/bin/pico "$1";
        DIFFNAME="${L3_SESSION_ID}_${TIME}`echo $DIR$1| sed s@_@__@ | sed 's@/@_@g'`.diff";
        /bin/cp -- "$1" "$old_file" 2> /dev/null;
        /usr/bin/pico "$@" || ERR=$?;
    [ -n "$L3_PARENT_TTY" ] && echo $L3_PARENT_TTY || /usr/bin/tty
        DIFFNAME="${L3_SESSION_ID}_${TIME}`echo $DIR$1| sed s@_@__@ | sed 's@/@_@g'`.diff";
        /bin/cp -- "$1" "$old_file" 2> /dev/null;
        DIFFNAME="${L3_SESSION_ID}_${TIME}`echo $DIR$1| sed s@_@__@ | sed 's@/@_@g'`.diff";
        /bin/cp -- "$1" "$old_file" 2> /dev/null;
09:30:16
#set | grep ^c
c=10

Файлы

  • /etc/cron.daily/locate
  • /etc/passwd
  • install
  • /etc/cron.daily/locate
    >
    #! /bin/sh
    set -e
    # cron script to update the `locatedb' database.
    #
    # Written by Ian A. Murdock <imurdock@debian.org> and
    #            Kevin Dalley <kevin@aimnet.com>
    # Please consult updatedb(1) and /usr/share/doc/locate/README.Debian
    [ -e /usr/bin/updatedb.findutils ] || exit 0
    if [ "$(id -u)" != "0" ]; then
            echo "You must be root."
            exit 1
    fi
    # Global options for invocations of find(1)
    FINDOPTIONS='-ignore_readdir_race'
    # filesystems which are pruned from updatedb database
    PRUNEFS="NFS nfs nfs4 afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite tmpfs usbfs udf ocfs2"
    # paths which are pruned from updatedb database
    PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /alex /var/spool /sfs /media /var/lib/schroot/mount"
    # netpaths which are added
    NETPATHS=""
    # run find as this user
    LOCALUSER="nobody"
    # cron.daily/find: run at this priority -- higher number means lower priority
    # (this is relative to the default which cron sets, which is usually +5)
    NICE=10
    # I/O priority
    # 1 for real time, 2 for best-effort, 3 for idle ("3" only allowed for root)
    IONICE_CLASS=3
    # 0-7 (only valid for IONICE_CLASS 1 and 2), 0=highest, 7=lowest
    IONICE_PRIORITY=7
    # allow keeping local customizations in a separate file
    if [ -r /etc/updatedb.findutils.cron.local ] ; then
            . /etc/updatedb.findutils.cron.local
    fi
    export FINDOPTIONS PRUNEFS PRUNEPATHS NETPATHS LOCALUSER
    # Set the task to run with desired I/O priority if possible
    # Linux supports io scheduling priorities and classes since
    # 2.6.13 with the CFQ io scheduler
    if [ -x /usr/bin/ionice ] && [ "${UPDATDB_NO_IONICE}" = "" ]; then
            # don't run ionice if kernel version < 2.6.13
            KVER=$(uname -r)
            case "$KVER" in
                    2.[012345]*) ;;
                    2.6.[0-9]) ;;
                    2.6.[0-9].*) ;;
                    2.6.1[012]*) ;;
                    *)
                    # Avoid providing "-n" when IONICE_CLASS isn't 1 or 2
                    case "$IONICE_CLASS" in
                            1|2) priority="-n ${IONICE_PRIORITY:-7}" ;;
                            *) priority="" ;;
                    esac
                    ionice -c $IONICE_CLASS $priority -p $$ > /dev/null 2>&1 || true
                    ;;
            esac
    fi
    if getent passwd $LOCALUSER > /dev/null ; then
      cd / && nice -n ${NICE:-10} updatedb.findutils 2>/dev/null
    else
      echo "User $LOCALUSER does not exist."
      exit 1
    fi
    
    /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
    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
    
    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}"
    locate
    potop
    #
    ###############################################################################
    rotor
    xguaru
    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"
    fdgdsrg
    wetw
    w
    wheh
    w4w4y
    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
        if locate apt-get >& /dev/null
        if 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
    

    Статистика

    Время первой команды журнала14:14:10 2015- 9-29
    Время последней команды журнала09:30:16 2015- 9-30
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %16.83
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 1.40
    Количество командных строк в единицу времени, команда/мин 1.20
    Частота использования команд
    cat35|=======================| 23.03%
    sed18|===========| 11.84%
    tr12|=======| 7.89%
    null9|=====| 5.92%
    grep9|=====| 5.92%
    find9|=====| 5.92%
    declare7|====| 4.61%
    bash7|====| 4.61%
    ls7|====| 4.61%
    echo5|===| 3.29%
    unset4|==| 2.63%
    locate4|==| 2.63%
    more3|=| 1.97%
    set3|=| 1.97%
    help3|=| 1.97%
    apt-get3|=| 1.97%
    file3|=| 1.97%
    xargs2|=| 1.32%
    /etc/cron.daily/locate1|| 0.66%
    ogo2.jpg1|| 0.66%
    man1|| 0.66%
    a=91|| 0.66%
    chmod1|| 0.66%
    shell.sh1|| 0.66%
    >1|| 0.66%
    c=101|| 0.66%
    b="we"1|| 0.66%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$