/l3/users/12-9-2016/NT-Ladm/debian2.net.nt/user :1 :2 :3 :4 |
|
$touch 22.tar.gz
|
$touch 33.tgz
|
$touch 44.rpm
|
$ls
11.jpeg 22.tar.gz 33.tgz 44.rpm |
$find -E ~ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
![]() find: unknown predicate `-E' |
$find ~ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
|
$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] |
$find ~ -path '.*(\.tar\.gz|\.tgz|\.rpm)'
|
$find ~ -path ".*(\.tar\.gz|\.tgz|\.rpm)"
|
$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': Отказано в доступе |
$find repo/ ~ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
![]() find: `repo/': Нет такого файла или каталога |
$find ~ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
|
$find ~ -name '.*(\.tar\.gz|\.tgz|\.rpm)'
|
$find ~ -name '.*(\.tar\.gz|\.tgz|\.rpm)'\*
|
$find ~ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
|
$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 |
$find \ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
![]() find: ` -regex': Нет такого файла или каталога find: `.*(\\.tar\\.gz|\\.tgz|\\.rpm)': Нет такого файла или каталога |
$find ~ -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
|
$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;''. |
$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*''. |
|