I created a empty directories, and executed the following in the terminal
mael@mael-HP:~/repertoireVide$ mkdir -p a/b/c
mael@mael-HP:~/repertoireVide$ mkdir -p a/a/b
mael@mael-HP:~/repertoireVide$ mkdir -p b/a
mael@mael-HP:~/repertoireVide$ echo "c" > a/c
mael@mael-HP:~/repertoireVide$ echo "c" > c
Tree shows the following mael@mael-HP:~/repertoireVide$ tree
.
├── a
│ ├── a
│ │ └── b
│ ├── b
│ │ └── c
│ └── c
├── b
│ └── a
└── c
7 directories, 2 files
Why does the following find command output this
mael@mael-HP:~/repertoireVide$ find .
.
./a
./a/a
./a/a/b
./a/c
./a/b
./a/b/c
./c
./b
./b/a
Isn't find only suppose the look for FILES inside the specified directories, as per the man find:
find - search for files in a directory hierarchy
Why are all the sub-directories listed with the files ?
Thanks.