List files with . .. but without hidden files

filesls

Is there a way to list all files and directories including . and .. but without listing hidden files in this folder?

Best Answer

First ensure that dotglob is off:

shopt -u dotglob

Then just ask ls for those two directories and everything else:

ls -ld . .. *