CentOS Linux Server Guide

Centos Linux Files and Directories

Dealing hidden files

 

Hidden files are files not listed with list command (without specifiy -a options). This files are normally start with "."

 
 ls
A.txt


ls -a
. .. A.txt .hiddenfile

 

Above example shows that in order to see the hidden files, you must use ls -a (all) option. Please take note that . and .. is not a file is a directory. The "." represent the current directory while ".." represent the parent directory.

 

 
ls .
A.txt


ls ..
bin boot demo dev dvd etc home lib lost+found media misc mnt net opt proc root sbin selinux srv sys tmp usr var

 

Above example clearly shows you that "ls ." is to list the current directory you are in. Meanwhile "ls .." is to list parent directory.

 

Back to Files and Directories



Copyright 2011 http://www.1a-centosserver.com All Rights Reserved

All trademarks are the property of their respective owners.

Contact Us | Terms of Use | Privacy Policy