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

Содержание

Журнал

Вторник (10/21/14)

/dev/pts/0
10:33:11
# 42 it does work with, such as OpenSSL, is optional. As Wget uses the GNU
l3script: 192.168.13.4:tty3/pts/0: Нет такого файла или каталога
10:33:41
#echo hi > 192.168.13.4:tty3/dev/pts/0
l3script: 192.168.13.4:tty3/dev/pts/0: Нет такого файла или каталога
10:33:48
#echo hi > 192.168.13.4:tty3/dev/0
l3script: 192.168.13.4:tty3/dev/0: Нет такого файла или каталога
10:33:56
#echo hi > 192.168.13.3:tty3/dev/0
l3script: 192.168.13.3:tty3/dev/0: Нет такого файла или каталога
10:34:23
#echo hi > 192.168.13.3:tty3/dev/pts/0
l3script: 192.168.13.3:tty3/dev/pts/0: Нет такого файла или каталога
10:34:56
#vim wget.txt
прошло 15 минут
10:50:51
#wget.txt [+] 11,1 14%
l3script: cd: /var/test: Нет такого файла или каталога
10:52:02
#ls /var/
backups  cache  lib  local  lock  log  mail  opt  run  spool  tmp
10:52:09
#vi
11:01:42
#alias
alias vi='vim'
11:01:44
#alias --help
l3script: alias: --: неправильная опция
alias: usage: alias [-p] [name[=value] ... ]
11:01:56
#man alias
11:02:02
#help alias
alias: alias [-p] [name[=value] ... ]
    Define or display aliases.
    Without arguments, `alias' prints the list of aliases in the reusable
    form `alias NAME=VALUE' on standard output.
    Otherwise, an alias is defined for each NAME whose VALUE is given.
    A trailing space in VALUE causes the next word to be checked for
    alias substitution when the alias is expanded.
    Options:
      -p        Print all defined aliases in a reusable format
    Exit Status:
    alias returns true unless a NAME is supplied for which no alias has been
    defined.
11:02:07
#alias vi=''

11:02:34
#alias
alias vi=''
11:02:36
#unalias vi

11:05:15
#alias

11:05:16
#vi
11:05:54
#GNU Wget
1.txt  2.txt  3.txt  backup  d1  d2  f6  f7  install  proj  student_con  tty3  wget.txt
11:05:57
#cd tty3
l3script: cd: tty3: Это не каталог
11:06:07
#tty3
l3script: tty3: команда не найдена
11:06:11
#cat tty3
hi
11:06:17
#rm tty3

11:06:34
#ls
1.txt  2.txt  3.txt  backup  d1  d2  f6  f7  install  proj  student_con  wget.txt
11:06:36
#vim wget.txt
11:12:00
#it does work with, such as OpenSSL, is optional. As Wget uses the GNU
Использование: diff [КÐ
 ompare FILES line by line.
Mandatory arguments to long options are mandatory for short options too.
      --normal                  output a normal diff (the default)
  -q, --brief                   report only when files differ
  -s, --report-identical-files  report when two files are the same
  -c, -C NUM, --context[=NUM]   output NUM (default 3) lines of copied context
  -u, -U NUM, --unified[=NUM]   output NUM (default 3) lines of unified context
  -e, --ed                      output an ed script
  -n, --rcs                     output an RCS format diff
...
      %c'C'  the single character C
      %c'\OOO'  the character with octal code OOO
      C    the character C (other characters represent themselves)
  -d, --minimal            try hard to find a smaller set of changes
      --horizon-lines=NUM  keep NUM lines of the common prefix and suffix
      --speed-large-files  assume large files and many scattered small changes
      --help               display this help and exit
  -v, --version            output version information and exit
КАТАÐ
ФАЙÐ
11:12:08
#["x] --help
>
>
>
> ^C
11:13:07
#man ["x]
11:13:56
#ls
1.txt  2.txt  3.txt  backup  d1  d2  f6  f7  install  proj  student_con  wget.txt
прошло >2 часов
/dev/pts/2
13:18:57
#echo $S
$SECONDS         $SHELL           $SHELLOPTS       $SHLVL           $SSH_CLIENT      $SSH_CONNECTION  $SSH_TTY
13:18:57
#echo $S
$SECONDS         $SHELL           $SHELLOPTS       $SHLVL           $SSH_CLIENT      $SSH_CONNECTION  $SSH_TTY
13:18:57
#echo $SH
$SHELL      $SHELLOPTS  $SHLVL
13:18:57
#echo $SHELL
/bin/bash
13:21:54
#pstree
init─┬─acpid
     ├─cron
     ├─exim4
     ├─6*[getty]
     ├─l3-agent
     ├─rsyslogd───3*[{rsyslogd}]
     ├─script───l3script───l3script───vim
     ├─sshd───sshd───bash─┬─script───script───l3script───pstree
     │                    └─2*[vim]
     └─udevd
13:24:41
#ls ~
1.txt  2.txt  3.txt  backup  d1  d2  f6  f7  install  proj  student_con  wget.txt
13:27:54
#ls /home
student  user
13:28:00
#ls /home/user
bigfile      granata.jpg                            lpi 2         names         press_any_key_to_continue.jpg  text
bin          Light_Alloy_4.4.784_RC2_by_FAFNIR.exe  man_smb_conf  ogo.jpg       proj                           touchlist
freebsd.jpg  lpi 1                                  matrix.jpg    pamyatka.pdf  sh
13:28:10
#vi /etc/bash.bashrc
--- /tmp/l3-saved-10696.31016.24660	2014-10-21 14:31:03.996968809 +0300
+++ /etc/bash.bashrc	2014-10-21 14:32:32.573066337 +0300
@@ -53,3 +53,4 @@
 		fi
 	}
 fi
+alias vi='vim'
13:32:32
#> -r

13:37:59
#> \*

13:38:32
#rm '*'

13:38:43
#rm '-'rm