The working directories contains several subdirectories, and each subdirectory contains some hidden files that start 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 files in the subdirectories. And the option -ignore
does not work, too.