No manual :
-I pattern,--ignore=patternIn directories, ignore files whose names match the shell pattern (not regular expression) pattern. As in the shell, an initial
.in a file name does not match a wildcard at the start of pattern. Sometimes it is useful to give this option several times. For example,$ ls --ignore='.??*' --ignore='.[^.]' --ignore='#*'The first option ignores names of length 3 or more that start with
., the second ignores all two-character names that start with.except.., and the third ignores names that start with#.
Você pode usar somente padrões de glob de shell: * corresponde a qualquer número de caracteres, ? corresponde a qualquer caractere, […] corresponde aos caracteres entre colchetes e \ cita o próximo caractere. O caractere $ significa ele mesmo (verifique se ele está entre aspas simples ou precedido por \ para protegê-lo da expansão do shell).