1 For System with Graphical User Interface (GUI) (Usually means we boot into an interface where we can see and use cursor)
1.1 Open the “Files” program (Like File Explorer in Windows)
1.2 For most of Linux distros use Ctrl + H key combination to show all hidden files and folders/directories (Use Ctrl + H again to hide them)
(In Linux folders and Files begin with the dot “.” hence the dotfile/dot file are hidden)
2 For Terminal
List all files and folders/directories (Including non-hidden and hidden)
-a: do not ignore entries starting with the dot “.”
-h: with -l and -s, print sizes like 1K 234M 2G etc.
-l: use a long listing format
-p: append / indicator to directories
List only hidden files
ls -ap | grep -v / | grep "^." ls -ap | grep -v / | egrep "^."
-v: select non-matching lines
-v /: Inverse match everything with a slash “/”, so that only files are shwon
^. : Anything start with the dot “.”
List only hidden folders/directories
ls -ap | grep "^\..*/$" ls -ap | egrep "^\..*/$"
List only hidden folders/directories without showing “./” and “../”
ls -Ap | grep "^\..*/$" ls -Ap | egrep "^\..*/$"
grep (Global Regular Expressions Print) and egrep (Extended Global Regular Expressions Print) have same function but different ways to interpret regular expression patterns.