- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What is the purpose of . and .. in every directory...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2004 03:47 PM
12-28-2004 03:47 PM
What is the purpose of . and .. in every directory?
I noted that when you do a ls -l under a particular directory, you will get 2 funny directories which are . and .. . What is the purpose of these 2 files? HOw should be the permission be like?
Thank you.
regards
Yen Nee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2004 04:16 PM
12-28-2004 04:16 PM
Re: What is the purpose of . and .. in every directory?
. means the current directory.
.. means the parent directory.
One can use $cd .. to jump to the parent directory of the current directory.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2004 04:55 PM
12-28-2004 04:55 PM
Re: What is the purpose of . and .. in every directory?
You surely mean "ls -al", don't you? :-)
As Sanjay already said, . is current and .. is the
previous directory unless your current directory
is '/', in which case . and .. point to the current
root directory.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2004 05:08 PM
12-28-2004 05:08 PM
Re: What is the purpose of . and .. in every directory?
. is current directory
.. is parent directory
these two will be hidden and craeted by defualt whenever you craete a directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2004 05:15 PM
12-28-2004 05:15 PM
Re: What is the purpose of . and .. in every directory?
http://www.seas.upenn.edu/~cse120/resources/primers/unix/lesson5.shtml
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2004 06:45 PM
12-29-2004 06:45 PM
Re: What is the purpose of . and .. in every directory?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2004 09:15 PM
12-29-2004 09:15 PM
Re: What is the purpose of . and .. in every directory?
The only way I know to check is to run 'swverify \*' which will then do a check of ALL system files.
Regards,
Trond