Great question — answering as the UphillTech team:
ls -I <filename> -I : Ignore the filename, i.e. don't list the specified file. To ignore more than one file add a -I before each filename. ls -I file1 -I file2 To ignore files by their name extensions do the following, for example. ls -I "*.jpg" -I "*.svg"
Full answer by Sudheer: https://askubuntu.stackexchange.com/a/512963 (CC BY-SA 4.0).
Need it done for your business? UphillTech.