How to show hidden files/folders by ls command (Linux)

In Linux, files/directories which begin with a dot (e.g. “.svn”, “.hg”) are hidden. Is command does not show them as it is; you need to specify options as suggested below.

Commands

Shows a list of all files/directories (including hidden ones).

$ ls [directory] -a

Shows a list (detailed information) of all files/directories (including hidden ones).

$ ls [directory] -la

Shows only hidden files/directories

$ ls [directory] -d .*

Shows only hidden files/directories (with the contents of directories also shown).

$ ls [directory] .*