This quick tip tells you how to show hidden files in Linux with ls and dir commands.
In Linux, if you rename a file and add a dot (.) at the beginning of the file, it becomes a ‘hidden file’.
Actually, the hidden files stay at the same place. They are just not displayed on the screen by default.
If you want to show hidden files in Linux, you can use the -a option with ls command.
You can see the hidden files now in your current directory. It shows the implied directories . and .. You can exclude them from the display with the option -A.
You can also use the dir command to display hidden files. The option remains the same.
I hope this quick Linux tip helped you to show hidden files in Linux terminal.