Omit “.DS_Store” from “ls -a” results
MacOS puts “.DS_Store” files in directories. How do you omit them from all “ls -a” results?
ls -a
specifically tells ls
to list all files/directories and especially those starting with .
, there is no direct way to suppress them. Of course there is always
ls -a | fgrep -v .DS_Store
but this may be rather cumbersome.