how to get only hidden files in UNIX?
In unix/Linux hidden files typically starts with a period i.e. namely dot ('.') In order to get hidden files we need to use the " -a " option with -d as well and with regular expression ".*" . If you want only files starts with dot (".")i.e. we have to use grep command as grep "^-" as below. Hidden Files and directories: [root@www ~]# ls -lad .* dr-xr-x---. 29 root root 4096 Apr 22 05:38 . dr-xr-xr-x. 24 root root 4096 Apr 22 05:15 .. -rw-------. 1 root root 15327 Apr 18 23:14 .bash_history -rw-r--r--. 1 root root 18 May 20 2009 .bash_logout -rw-r--r--. 1 root root 176 May 20 2009 .bash_profile -rw-r--r--. 1 root root 176 Sep 22 2004 .bashrc drwxr-xr-x. 2 root root 4096 Apr 18 22:04 .cache drwxr-xr-x. 5 root root 4096 Apr 18 22:05 .config -rw-r--r--. 1 root root 100 Sep 22 2004 .cshrc drwx------. 3 root root 4...