Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You refering to the "." and ".." that are shown if you do an ls -la yeah? If so its simply that "." represent your current directory, and ".." is the parent of your current directory. So say you did[code]cd /home/username/publc_html[/b]Then "." would be /home/username/public_html and ".." would be /home/username, and "../.." would be /home.
The only place this gets a little odd in the root directory ( / ) as the parent of / is / - so "." and ".." are in fact the same.
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
This is actually a great question, because it helps to illustrate a basic point of the *nix file structure.
"." referes to the current directory. This is important, for example, when you are compiling software. Very often there is a configure script to configure how the software should be built. You would enter the command './configure' from within the source directory of the new software, and the "." indicates to the OS that the particular configure script you want to use is in the current directory.
".." points to the directory directly above working directory you are in at the time. So, if you drop down into your bin directory to edit one of your scripts and then want to go back to the next directory higher, you can type the command 'cd ..' to go there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.