How to use ls command to show all the files including hidden files, but not showing the files named '.' and '..'

Viewed 5

The working directories contains several subdirectories, and each subdirectories contains some hidden file starts with '.'. How could I use the ls command to display all the files including the hidden file, but I want to exclude the files name as '.' and '..'? I tried ls -a | grep -v '^\.' but it does not show the files in the subdirectories. And the option -ignore does not work, too. Thanks in advance

0 Answers
Related