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

Содержание

Журнал

Среда (04/10/13)

/dev/pts/7
12:39:55
#echo $a

12:39:58
#echo $
$_                           $L3_TAMPERED_EDITORS
$BASH                        $LANG
$BASH_ALIASES                $LANGUAGE
$BASH_ARGC                   $LINENO
$BASH_ARGV                   $LINES
$BASH_CMDS                   $LOGNAME
$BASH_COMMAND                $MACHTYPE
$BASH_COMPLETION             $MAIL
$BASH_COMPLETION_COMPAT_DIR  $MAILCHECK
$BASH_COMPLETION_DIR         $OPTERR
...
$HISTFILE                    $SSH_CLIENT
$HISTFILESIZE                $SSH_CONNECTION
$HISTSIZE                    $SSH_TTY
$HOME                        $STY
$HOSTNAME                    $TERM
$HOSTTYPE                    $TERMCAP
$IFS                         $UID
$L3_HOME                     $USER
$L3_PARENT_TTY               $WINDOW
$L3_SESSION_ID
12:39:58
#set
BASH=/usr/local/bin/l3script
BASHOPTS=checkwinsize:cmdhist:expand_aliases:extglob:extquote:force_fignore:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_COMPLETION=/etc/bash_completion
BASH_COMPLETION_COMPAT_DIR=/etc/bash_completion.d
BASH_COMPLETION_DIR=/etc/bash_completion.d
BASH_LINENO=()
...
LOGNAME=root
MACHTYPE=i486-pc-linux-gnu
MAIL=/var/mail/root
MAILCHECK=60
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PIPESTATUS=([0]="0")
PPID=21613
12:44:17
#set |less
12:48:43
#echo $*

12:49:39
#echo $@

12:49:49
#echo $#
0
12:50:22
#echo $-
himBH
12:51:15
#bash -himBH
root@debian7:~# exit
exit
12:51:33
#echo $$
21614
12:52:19
#ls /etc
acpi                    fstab             logrotate.d     rc3.d
adduser.conf            gai.conf          lsb-base        rc4.d
adjtime                 groff             lynx-cur        rc5.d
aliases                 group             magic           rc6.d
alternatives            group-            magic.mime      rc.local
anacrontab              grub.d            mailcap         rcS.d
apm                     gshadow           mailcap.order   reportbug.conf
apt                     gshadow-          mailname        resolv.conf
at.deny                 gssapi_mech.conf  mail.rc         rmt
bash.bashrc             host.conf         manpath.config  rpc
...
dhcp                    ld.so.cache       perl            trafshow
dictionaries-common     ld.so.conf        ppp             ucf.conf
discover.conf.d         ld.so.conf.d      profile         udev
discover-modprobe.conf  lilalo            profile.d       ufw
dpkg                    locale.alias      protocols       updatedb.conf
emacs                   locale.gen        python          vim
email-addresses         localtime         python2.6       w3m
environment             logcheck          rc0.d           wgetrc
exim4                   login.defs        rc1.d           X11
fonts                   logrotate.conf    rc2.d           xml
12:53:40
#echo $?
0
12:54:01
#ls 123
123
12:54:05
#ls 1234
ls: невозможно получить доступ к 1234: Нет такого файла или каталога
12:54:08
#echo $?
2
12:54:20
#crontab -e
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
                            [ Прочитано 22 строки ]
No modification made
12:56:16
#EDITOR=vim

12:56:27
#crontab -e
x# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
Сохранить измененный буфер (Ответ "Нет" УНИЧТОЖИТ ВСЕ ИЗМЕНЕНИЯ) ?
No modification made
12:56:36
#\
> \
> ^C
12:56:38
#export EDITOR=vim

12:56:44
#crontab -e
"/tmp/crontab.hNnuGV/crontab" 22L, 888C
 13 # Output of the crontab jobs (including errors) is sent through
 14 # email to the user the crontab file belongs to (unless redirected).
 15 #
 16 # For example, you can run a backup of all your user accounts
 17 # at 5 a.m every week with:
 18 # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
 19 #
 20 # For more information see the manual pages of crontab(5) and cron(8)
 21 #
 22 # m h  dom mon dow   command
No modification made
12:56:50
#w3m bash.org.ru
Коля: минут за 5 не выходит :)
Коля: может биос ему перешить?
кnжется :)
Вова: если,что-Ðо бол¾Ñ‚±- отрезать нафик
+ 1208 – [:||||:] Поделиться 2013-04-10 10:44 #422057
SSS: хочется фруктов  ли  вощей...
AAA: в вигиторианцы хочешь подать я?
итоге друг теперьÐкирпич. что делать?» :)
SSS: Нет. Мн] пÐосто не хва1ает ви4аминов, а "виги-торианец" - это
местах.
...
Она тут медсестрой работает.
+ 431 – [:||||:] Поделиться 2013-04-10 10:12 #422055
С хабра (обсужде¾Ð¸Ðµ новости о Вояджерах):
+ естах.
ВчераÐдиа»Ð¾Ð³ двух качков око о БСМП:
≪ ↑ ↓ Viewing <Цитатник Рунета>
+ 1159 – [:||||:] Поделиться°2013-04-10 10:44 #422056
+ 997 – [:||||:] Поделиться 2013-04-10 12:13 #422064
Стою сегодня в аптеке в очереди. Передо мной девушка (Д) советуется с
аптекаршей (А), какое лекарство выбрать.
12:58:39
#amarao: Накатывать апдей на аппарат на расстоянии в 10-20 ае... У меня бы рука

12:58:39
##links bash.org.ru

12:58:53
#lynx bash.org.ru
13:01:26
#echo $OLDPWD

13:01:34
#cd /etc/

13:01:39
#echo $OLDPWD
/root
13:01:40
#echo $PWD
/etc
13:01:43
#cd $OLDPWD

13:01:55
#pwd
/root
13:01:57
#vim file
--- /tmp/l3-saved-21614.15149.12018	2013-04-10 14:07:59.000000000 +0300
+++ file	2013-04-10 14:08:14.000000000 +0300
@@ -1,8 +1 @@
-lnux
-widows
-macos
-andoid
-freebsd
-unix
-qnx
-os2
+echo 'hello world'
13:08:14
#bash file
hello world
13:08:17
#test -d /etc/123

13:10:08
#echo $?
1
13:10:40