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

Содержание

Журнал

Среда (09/14/16)

/dev/pts/2
09:45:32
$touch 11.jpeg

09:45:50
$touch 22.tar.gz

09:46:09
$touch 33.tgz

09:46:16
$touch 44.rpm

09:46:25
$ls
11.jpeg  22.tar.gz  33.tgz  44.rpm
09:46:31
$find -E ~ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
find: unknown predicate `-E'
09:46:42
$find ~ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'

09:46:54
$find ~ -path -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
find: paths must precede expression: .*(\.tar\.gz|\.tgz|\.rpm)
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
09:52:00
$find ~ -path '.*(\.tar\.gz|\.tgz|\.rpm)'

09:52:21
$find ~ -path ".*(\.tar\.gz|\.tgz|\.rpm)"

09:56:25
$find / -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
find: `/etc/ssl/private': Отказано в доступе
find: `/lost+found': Отказано в доступе
find: `/var/cache/ldconfig': Отказано в доступе
find: `/var/spool/exim4': Отказано в доступе
find: `/var/spool/cron/crontabs': Отказано в доступе
find: `/var/log/exim4': Отказано в доступе
find: `/var/log/iptraf': Отказано в доступе
find: `/run/exim4': Отказано в доступе
find: `/root': Отказано в доступе
find: `/proc/tty/driver': Отказано в доступе
...
find: `/proc/6717/task/6717/ns': Отказано в доступе
find: `/proc/6717/fd': Отказано в доступе
find: `/proc/6717/fdinfo': Отказано в доступе
find: `/proc/6717/ns': Отказано в доступе
find: `/proc/6726/task/6726/fd': Отказано в доступе
find: `/proc/6726/task/6726/fdinfo': Отказано в доступе
find: `/proc/6726/task/6726/ns': Отказано в доступе
find: `/proc/6726/fd': Отказано в доступе
find: `/proc/6726/fdinfo': Отказано в доступе
find: `/proc/6726/ns': Отказано в доступе
09:56:32
$find repo/ ~ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
find: `repo/': Нет такого файла или каталога
09:56:56
$find ~ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'

09:57:04
$find ~ -name '.*(\.tar\.gz|\.tgz|\.rpm)'

09:58:17
$find ~ -name '.*(\.tar\.gz|\.tgz|\.rpm)'\*

10:04:17
$find ~ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'

10:04:44
$find / -writable
find: `/etc/ssl/private': Отказано в доступе
find: `/lost+found': Отказано в доступе
/tmp
/tmp/dirlist
/tmp/etccopy
/tmp/etccopy/console-cyrillic
/tmp/etccopy/sysctl.conf
/tmp/etccopy/screenrc
/tmp/etccopy/logrotate.conf
/tmp/etccopy/hosts.deny
...
/proc/6856/clear_refs
/proc/6856/attr/current
/proc/6856/attr/exec
/proc/6856/attr/fscreate
/proc/6856/attr/keycreate
/proc/6856/attr/sockcreate
/proc/6856/oom_adj
/proc/6856/oom_score_adj
/proc/6856/loginuid
/proc/6856/coredump_filter
10:10:04
$find \ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
find: ` -regex': Нет такого файла или каталога
find: `.*(\\.tar\\.gz|\\.tgz|\\.rpm)': Нет такого файла или каталога
10:10:16
$find ~ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'

10:10:37
$find ~ -name /.jpeg\;
find: warning: Unix filenames usually don't contain slashes (though pathnames do).  That means that '-name `/.jpeg;'' will probably evaluate to false all the time on this system.  You might find the '-wholename' test more useful, or perhaps '-samefile'.  Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ `/.jpeg;''.
10:11:48
$find ~ -name /.jpeg\*
find: warning: Unix filenames usually don't contain slashes (though pathnames do).  That means that '-name `/.jpeg*'' will probably evaluate to false all the time on this system.  You might find the '-wholename' test more useful, or perhaps '-samefile'.  Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ `/.jpeg*''.
10:12:04