I'm trying to list all files in /etc that has only 2 characters before the first period, and not include sub-directories and their content.
ls -d ??.*
and it is working just as I want, but when I try to do it from another directory I can't get it to work. I have tried
ls -d /etc ??.*
ls -d ??.* /etc
But I get the same error
ls: cannot access ??.*: No such file or directory
This is for a school assignment, so using find or anything other than ls is not an option. Thanks in advance!