Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: System Administration >> what is dot (.) and double dot (..) in linux, when we use ls -a

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: what is dot (.) and double dot (..) in linux, when we use ls -a
 Monu  Posted: May 21, 2008 12:53:11 AM

 Total Post: 26
 Joined: Jan, 2008






 hi all,
what is dot (.) and double dot (..) in linux, when we use ls -a
could any one explain it in brief?
Thanks.

 MSB
Posted: May 21, 2008 01:59:30 AM  

 Total Post: 30
 Joined: May, 2008






 
$ ls -a
Shows you all files, even files that are hidden (these files begin with a dot "."). Those hidden files are normally system files.


And the double dot (..) indicates the parent directory.

/home/oracle $ pwd
/home/oracle
/home/oracle $ cd ..
/home $ pwd
/home


 fozturk
Posted: May 21, 2008 02:01:39 AM  

 Total Post: 69
 Joined: Sep, 2007






 
i am not an expert on linux but as far as i know two dots(..) is the parent folder of your current folder.

 Murtuja
Posted: May 21, 2008 02:02:56 AM  

 Total Post: 857
 Joined: Jan, 2006






 
The single dot represent the current directory, and double dot directory is the upper current directory.

Read from below site for more info
http://www.labtestproject.com/linuxcmd/cd_command.html

 positive
Posted: Jun 27, 2008 02:17:12 PM  

 Total Post: 615
 Joined: Jun, 2008






 
Hi

. - present working directory/current working directory - the directory in which the user is at present

.. - one directory before the current directory

ls -a - listing of hidden files in the current directory.Hidden files start with '.'prefix like .xauthority.

ls command doesn't list those files.So we can use ls -a command instead.

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  menon srivalsala kumar639
  positive fanatic615
  Gitesh Trivedi580
  Jayanta Sur480
  Vinoth Kumar436
  Vishant Sanghavi409
  Vigyan Kaushik403
  Gopu Gopi367






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor