I need to display all hidden files in the current directory but I dont want to see hidden files in the parent directory. I used echo command for it but so far I cant get rid of hidden files in parent directory.
My code is:
echo $(ls .* --ignore='*')
The output is:
.bash_history
.bash_logout
.bashrc .profile
.:
..:
.cache:
.config:
.gnupg:
.loc
al: