-1

我正在解决有线强盗。我查看了解决方案,但没有任何解释。例如,当我使用find .find it on bandit 5->6

bandit5@bandit:~/inhere$ find . -type f -readable ! -executable -size 1033c
**./maybehere07/.file2**

bandit5@bandit:~/inhere$ cat ./maybehere07/.file2
**DXjZPULLxYr17uwoI01bNLQbtFemEgo7**

find .在 bandit6->7 上使用过,我在他们解决的解决方案中没有得到任何输出find /

bandit6@bandit:~$ find /  -user bandit7 -group bandit6 -size 33c 2>/dev/null
/var/lib/dpkg/info/bandit7.password

两者都是ASCII文本所以有什么区别

4

2 回答 2

1

path参数告诉在find哪里搜索。如果使用.,它只会在当前目录的子目录中搜索,而/表示根目录,即到处搜索。而且,确实,如您所见,/var/lib/dpkg/info/它不是~/inhere.

于 2020-10-16T11:30:12.633 回答
1

如果您在谈论 linuxfind命令:

find . [other expressions]表示您要根据当前目录查找文件。

Whilefind / [other expressions]表示您要根据根 ( /) 目录查找文件。

于 2020-10-16T11:30:20.330 回答