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

Re: The ls command



On Thu, Oct 30, 2025 at 03:18:59PM +0000, 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 suspect that you have a strangely named PDF file. Try this:

ls -- *.pdf

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  https://www.phcomp.co.uk/
Parliament Hill Computers. Registration Information: https://www.phcomp.co.uk/Contact.html
#include <std_disclaimer.h>


Reply to: