Find пути должны быть перед выражением

Обновлено: 30.06.2024


Было бы неплохо, а ещё желательно ip-адрес и версии запущеных сервисов.

Дух лор'а даёт о себе знать.

ezrou ( 11.03.07 08:19:44 )

$ find . -type d -depth 2 -not -path "\./\.*" | sort | sed 's/^\.\///g'
find: warning: you have specified the -depth option after a non-option argument -type, but options are not positional (-depth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

find: paths must precede expression
Usage: find [-H] [-L] [-P] [path. ] [expression]
$

schumen ★★ ( 11.03.07 08:51:20 )

$ sudo cat /etc/shadow
Password:
Sorry, try again.
Password:
root:$1$VX8U0xub$nkpoJbOVDfAmG6nofuMrj1:13467:0:99999:7.
daemon:*:13458:0:99999:7.
bin:*:13458:0:99999:7.
sys:*:13458:0:99999:7.
sync:*:13458:0:99999:7.
games:*:13458:0:99999:7.
man:*:13458:0:99999:7.
lp:*:13458:0:99999:7.
mail:*:13458:0:99999:7.
news:*:13458:0:99999:7.
uucp:*:13458:0:99999:7.
proxy:*:13458:0:99999:7.
www-data:*:13458:0:99999:7.
backup:*:13458:0:99999:7.
list:*:13458:0:99999:7.
irc:*:13458:0:99999:7.
gnats:*:13458:0:99999:7.
nobody:*:13458:0:99999:7.
dhcp. 13458:0:99999:7.
syslog. 13458:0:99999:7.
klog. 13458:0:99999:7.
wieker:$1$3e9jssQE$hkGFSzfxxJPwOqe5qKXlA0:13458:0:99999:7.
cupsys. 13458:0:99999:7.
fetchmail. 13458:0:99999:7.
messagebus. 13458:0:99999:7.
hal. 13458:0:99999:7.
saned. 13458:0:99999:7.
hplip. 13458:0:99999:7.
kostya:$1$JvkLADKA$mrWx3nUM3Rz95ciAsixb20:13458:0:99999:7.
postfix. 13483:0:99999:7.
mysql. 13517:0:99999:7.
wieker@darkstar:

wieker ★★ ( 11.03.07 08:52:16 )

$ find . -type d -depth 2 -not -path "\./\.*" | sort | sed 's/^\.\///g'
find: warning: you have specified the -depth option after a non-option argument -type, but options are not positional (-depth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

find: пути должны быть перед выражением
Usage: find [-H] [-L] [-P] [path. ] [expression]
wieker@darkstar:

wieker ★★ ( 11.03.07 08:53:39 )

>а ещё желательно ip-адрес и версии запущеных сервисов.

Uptime: 0.541 days (since Sat Mar 10 23:13:48 2007)
Network Distance: 0 hops

Читайте также: