I found that ls command can't read file in `/proc'
Please see the attachment.
There are many link files ,but you can't read it by ls.
I found that ls command can't read file in `/proc'
Please see the attachment.
There are many link files ,but you can't read it by ls.
You can list files under /proc with ls, and you can read their content with cat (with a few exceptions — /proc/PID/mem is peculiar).
File under /proc reflect the current state of the system, so they might exist at one moment and no longer exist the next moment. Some of the files depend on the current process, e.g. /proc/self is a symbolic link to the PID of whichever process asked for it.
If bash reports that /proc/4551/task/4551/fd doesn't exist, it means that there is currently no process with the PID 4551. (More precisely, there is no process with this PID in the PID namespace that bash is running in.)