Display Hidden Files in UNIX & Linux

1. To show hidden files in UNIX & Linux operating system,  execute the following command.

# ls -a
.                                 .bash_profile
..                                test.txt
.bash_log
.bash_login

Additional note:
File that started with the dot (.) is a hidden file. Example, .bash_log, .bash_login

2. To show only hidden files in UNIX & Linux operating system, execute the following command. The command will only display files that started with the dot (.).

# ls -a | egrep '^\.'
.bash_log
.bash_login

You May Also Like

Leave a Reply?