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 directoryAt 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?
(Why) is it bad to use ls -A to list hidden files?
ls;filenames
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).