Article 6J0JP [SOLVED] Bash, maximum file/folder listing, ls -a? Why no /run/5000/?

[SOLVED] Bash, maximum file/folder listing, ls -a? Why no /run/5000/?

by
maybeJosiah
from LinuxQuestions.org on (#6J0JP)
In Bash I have a thing that recursively goes into directories and calls "ls -a" to find all in it until no more are like found. I seem to have something like "/run/5000/" folder with "find" command that I tried saying it exists but it never showed in like my recording with "ls -a" and I know it exists and I ran it as sudo with no errors and according to that program no unfound directories or files. Is there another better way to do this or am I stuck with "ls -a"? Is there some super-root or what? "ls -a" seems like it should work. I know there may be permission denied, with "find" at least. I am on Ubuntu desktop 22.04.3 LTS but trying for on all ext2 to ext4 Linux for like my program set. I just want it to list all files and folders in all directories it is called. If it helps, I was running on / directory like "sudo ./myProgramXE.sh /". Do I maybe need in that "sudo ls -a" inside like my program? Basic problem: no access to "/run/5000/" and inside it even as sudo, "ls -a" seems to not list it and "find" permission denied both as sudo. Like my program records timestamps, inode, and what path. It also displays path in terminal as going. No that directory displayed or recorded. What should I try? This seems like a bug to me so should I report it as such? X E.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments