You are not logged in.

#1 2024-03-09 20:03:29

xerxes_
Member
Registered: 2018-04-29
Posts: 676

[Solved ]Why tree /proc display contents of whole root directory?

Run command 'tree -fil /proc/ | less' and search for "self" by pressing '/' key and writing "self" and press Enter. Next press 'n' key to search next. Notice how directories are changing... Why there are /dev...,  /etc..., /usr/lib/... directories displayed???

Last edited by xerxes_ (2024-03-10 16:34:48)

Offline

#2 2024-03-09 20:46:56

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: [Solved ]Why tree /proc display contents of whole root directory?

tree(1) wrote:

       -l     Follows symbolic links if they point to directories, as if they were directories. Symbolic links that will result in recursion are avoided when detected.

Observe the output after the first process' cwd entry.


pkgshackscfgblag

Offline

Board footer

Powered by FluxBB