Why is it that when I pass certain directory names to `ls`, sometimes it does not list their contents?

23 Views Asked by At

An example with trying to run ls bin and ls etc from /

I'm running macOS Sonoma 14.2.1. I use OhMyZSH as well as tmux. I don't understand why when I run ls bin and ls etc from /, the contents of the bin directory are printed but the contents of the etc directory are not. My ls is aliased to ls -G but I don't think this should matter.

I simply was expecting both directory contents to be listed. All I have tried is a simple ls of both directories from /.

0

There are 0 best solutions below