LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-01-2011, 04:34 AM   #1
Soji Antony
Member
 
Registered: Jul 2010
Posts: 54

Rep: Reputation: 1
What does . & .. in a directory represent


Hi

Command ls -a out put shows two hidden directories . and .. I can see the same in all the directories. Plz can anybody tell me what they represent.
Also using cd command i cant enter to these directories....
 
Old 02-01-2011, 04:36 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,846

Rep: Reputation: 128Reputation: 128
. is the directory you are in i.e. the current directory.

.. is the parent directory, so if you're in /home/soji and you do ls .., that will show the contents of /home.
 
1 members found this post helpful.
Old 02-01-2011, 04:36 AM   #3
jeethu
LQ Newbie
 
Registered: Oct 2009
Posts: 13

Rep: Reputation: 3
Question

Any directory/files whose name starts with "." means its a hidden directory/files. I guess these has the informations about the current directory.
 
1 members found this post helpful.
Old 02-01-2011, 04:44 AM   #4
jeethu
LQ Newbie
 
Registered: Oct 2009
Posts: 13

Rep: Reputation: 3
Similar "-" represents the previous directory. So if you do a "cd - " it will jump to the previous directory. Its like a back button in the explorer
 
2 members found this post helpful.
Old 02-01-2011, 04:50 AM   #5
Soji Antony
Member
 
Registered: Jul 2010
Posts: 54

Original Poster
Rep: Reputation: 1
Thank you so much ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Username & Password Sync Fedora Directory and Microsoft Active Directory karnac01 Fedora 4 07-19-2010 12:51 AM
Restoring usernames & passwords to a protected directory under Debian & Plesk CP ppcw Linux - Newbie 2 02-16-2008 04:11 PM
Autozipping files from 1 directory & dropping them in other directory ??? amitsharma_26 Linux - Networking 5 10-22-2005 06:09 AM
Does anyone know the origin of using "~" to represent the user's home directory? GonzoJohn General 6 10-14-2003 03:42 PM
what does this c represent shanenin Linux - Software 3 10-14-2003 01:45 PM


All times are GMT -5. The time now is 11:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration