Search code examples
macosls

ls cmd in Mac, showing weird behaviour


As screenshot attached, when I do a 'ls' cmd I don't see the project1 folder. And 'ls -a' also doesn't reveal it. I also ensured the file is not marked hidden in Mac.

I am not sure why the folder project1 is only shown if I do a 'ls -l', could you please help to explain?

Thank you very much

link to screenshot


Solution

  • Oh, you're gonna kick yourself.

    It's right there; it's just separated from "official_tut" by one space.

    You can use ls -F to add a directory flag, just to help locate it.