LinuxMoz

Linux Stuff && Coffee

Linux Show Hidden Files

| Comments

Linux hidden files are prefixed with a . for example .htaccess would make this a hidden file, by default when you list a directories contents in Linux they are not displayed.

Linux Show Hidden Files Command

Change to the directory you wish to list the hidden files and enter the ls command with the following options:

1
ls -la

ls -la (the Linux show hidden files command) should give you an output similar to the following:

1
2
3
4
5
6
7
8
9
[root@thor html]# ls -la
total 200
drwxr-xr-x  5 root   root    4096 Feb 13  2012 .
drwxr-xr-x  6 root   root    4096 Sep 21 15:32 ..
-rw-r--r--  1 apache apache  7016 Sep 19 15:39 .htaccess
-rw-r--r--  1 apache apache   395 Aug 29 18:33 index.php
-rw-r--r--  1 apache apache 19929 Aug 29 18:31 license.txt
-rw-r--r--  1 apache apache  9177 Sep  8 18:30 readme.html
-rw-r--r--  1 apache apache  3729 Oct 30 18:37 sitemap.xml

Comments