I want to list every file, including hidden files, in the current directory. I don't want to include the parent (..) and current (.) directory.
I found this:
how to glob every hidden file except current and parent directory
At the end, someone states ls -A
is the way to go, but it's downvoted. However, it seems to work. What's wrong with ls -A
?
ls -A
is the correct answer to your question, but not to the question you linked to (that question was about listing only hidden files and directories). – angus Oct 25 '14 at 12:57ls -A
is an officially specified option. – mikeserv Oct 25 '14 at 15:16