At Thu, 30 Oct 2025 15:18:59 +0000 Michael <[email protected]> wrote:
> > I have a Debian 12 setup running on a desktop PC. > > I am trying to list my PDF files using the ls command. > > I ran > > ls *.pdf > > and received the error message > > Invalid option '--K' > > No files were listed. > > I subsequently ran other ls commands such as > > ls *.doc > > ls *.txt > > and those commands ran as expected. > > Why are my PDF files not listed ? Most likely because your PDF files include "bad" filenames (eg starting with '--K'). Try: ls -- *.pdf > > -- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364 Deepwoods Software -- Custom Software Services http://www.deepsoft.com/ -- Linux Administration Services [email protected] -- Webhosting Services

