[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: The ls command



On Thu, 30 Oct 2025, Michael 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 ?

maybe you have a pdf file whose name starts with --K

try ls *.pdf --


Reply to: