List and Show hidden File and Hidden Directory using ls Command on Linux Fedora

 

Step by Step List and Show hidden File and Hidden Directory using ls Command on Fedora System

 

   The ls command can be use to show and list all file and directory including hidden file and hidden directory inside Linux system... The command example below use the ls command to show all files and directory including the hidden file and hidden directory on Linux fedora system.  Please note that on Linux/Unix system, hidden files is mark by the dot in front of its file name and hidden directory is mark by the dot in front of its directory name.

 

Example: Show hidden file using ls command:

Show hidden file on Linux Fedora using ls command

               The dot in front of file name indicate hidden file

 

Example: Show hidden directory using ls command:

Show hidden directory on Linux Fedora using ls command

               The dot in front of directory name indicate hidden directory

 

Execute the ls command with -a to show all files and directory include hidden file and hidden directory:

Show all files and directory include hidden file and hidden directory

[root@fedora ~]# ls -a

.                .esd_auth           .lesshst             .ssh

..               .gconf              .local               .tcshrc

anaconda-ks.cfg  .gconfd             mbox                 Templates

.bash_history    .gnome2             .metacity            .text_files.txt.swp

.bash_logout     .gnome2_private     .mozilla             .thumbnails

.bash_profile    .gstreamer-0.10     Music                .tomboy

.bashrc          .gtk-bookmarks      .nautilus            .tomboy.log

.config          .gvfs               Pictures             Videos

.cshrc           .hidden_directory   Public               .wapi

.dbus            .ICEauthority       .pulse               .xsession-errors

Desktop          install.log         .pulse-cookie

Documents        install.log.syslog  .recently-used.xbel

Download         .kde                .redhat

[root@fedora ~]#

 

Execute the ls command with -al to show all files and directory include hidden file and hidden directory in long list view:

Show all files and directory include hidden file and hidden directory in long list view

[root@fedora ~]# ls -al

total 448

drwxr-x--- 30 root root   4096 2009-02-01 02:06 .

drwxr-xr-x 21 root root   4096 2009-02-01 00:26 ..

-rw-------  1 root root   3658 2008-05-20 08:26 anaconda-ks.cfg

-rw-------  1 root root  16329 2009-01-31 06:41 .bash_history

-rw-r--r--  1 root root     24 2006-07-12 20:06 .bash_logout

-rw-r--r--  1 root root    191 2006-07-12 20:06 .bash_profile

-rw-r--r--  1 root root    176 2006-07-12 20:06 .bashrc

drwxr-xr-x  3 root root   4096 2008-11-12 04:33 .config

-rw-r--r--  1 root root    100 2006-07-12 20:06 .cshrc

drwx------  3 root root   4096 2008-05-20 08:55 .dbus

drwxr-xr-x  3 root root   4096 2009-01-21 02:17 Desktop

drwxr-xr-x  2 root root   4096 2008-05-20 08:55 Documents

drwxr-xr-x  2 root root   4096 2008-05-20 08:55 Download

-rw-------  1 root root     16 2008-05-20 08:55 .esd_auth

drwx------  4 root root   4096 2009-02-01 00:41 .gconf

drwx------  2 root root   4096 2009-02-01 01:03 .gconfd

drwx------  9 root root   4096 2009-01-09 16:38 .gnome2

drwx------  2 root root   4096 2008-05-20 08:55 .gnome2_private

drwxr-xr-x  2 root root   4096 2008-05-20 08:55 .gstreamer-0.10

-rw-r--r--  1 root root    106 2009-02-01 00:42 .gtk-bookmarks

dr-x------  2 root root      0 2009-02-01 00:42 .gvfs

drwxr-xr-x  2 root root   4096 2009-02-01 02:06 .hidden_directory

-rw-------  1 root root  28520 2009-02-01 00:41 .ICEauthority

-rw-r--r--  1 root root  72032 2008-05-20 08:25 install.log

-rw-r--r--  1 root root   9766 2008-05-20 08:14 install.log.syslog

drwx------  3 root root   4096 2008-11-12 04:34 .kde

-rw-------  1 root root     85 2008-12-01 05:11 .lesshst

drwxr-xr-x  3 root root   4096 2008-05-20 08:55 .local

-rw-------  1 root root 119241 2008-08-03 05:07 mbox

drwx------  3 root root   4096 2008-05-20 08:55 .metacity

drwx------  4 root root   4096 2008-07-14 00:45 .mozilla

drwxr-xr-x  2 root root   4096 2008-05-20 08:55 Music

drwxr-xr-x  3 root root   4096 2008-08-23 20:06 .nautilus

drwxr-xr-x  2 root root   4096 2008-05-20 08:55 Pictures

drwxr-xr-x  2 root root   4096 2008-05-20 08:55 Public

drwxr-xr-x  2 root root   4096 2008-05-20 08:55 .pulse

-rw-------  1 root root    256 2008-05-20 08:55 .pulse-cookie

-rw-r--r--  1 root root   7102 2009-01-09 18:25 .recently-used.xbel

drwxr-xr-x  3 root root   4096 2008-05-20 08:55 .redhat

drwx------  2 root root   4096 2008-08-03 01:31 .ssh

-rw-r--r--  1 root root    129 2006-07-12 20:06 .tcshrc

drwxr-xr-x  2 root root   4096 2008-05-20 08:55 Templates

-rw-------  1 root root  12288 2008-07-28 05:10 .text_files.txt.swp

drwx------  4 root root   4096 2008-05-20 15:46 .thumbnails

drwxr-xr-x  4 root root   4096 2008-05-20 08:55 .tomboy

-rw-r--r--  1 root root   4877 2009-02-01 00:43 .tomboy.log

drwxr-xr-x  2 root root   4096 2008-05-20 08:55 Videos

drwxr-xr-x  2 root root   4096 2009-01-07 03:09 .wapi

-rw-------  1 root root   1090 2009-02-01 00:43 .xsession-errors

[root@fedora ~]#

 

Keywords: show hidden file, show hidden directory, list hidden file, list hidden directory, view hidden file, view hidden directory

 

aaaaaaaaaaa