What does “./” (dot forward slash) mean in linux?

I’ve just been reading Apache - The Definitive Guide and on page 29 it tells us to type the following into the Linux command line:

% ./Configure

I had no idea what significance the dot and the forward slash (./) have in relation to this command. I have attempted to look it up but my search came to nothing.

When I work it out - I’ll let you know. :o)
Feel free to comment with an answer!

See comments below for the answer –>

Very short answer: It’s equivalent to path to current directory.

7 Responses to “What does “./” (dot forward slash) mean in linux?”

  1. Sally Payne Says:

    In windows the dot and forward slash mean a directory path so just i guess they are the same in linux. but not sure!

  2. William Says:

    The quick and easy explanation is that Unix/Linux command shells don’t search the current directory for commands, unless the current directory is listed in the $path variable. So, unless the command is built-in like ‘grep’, ‘type’, or ‘ls’, or the command’s path is listed in the $path variable, the command shell won’t find the command. Unless you specify the current directory as the path by typing “./[command]” at the command line. For more reading on the subject visit
    http://www.kingcomputerservices.com/unix_101/traveling_down_the_unix_$PATH.htm. Hope that cleared things up a bit.

  3. admin Says:

    Thanks for that William. Its a really difficult phrase to search for, so that article is really useful.

  4. Nesta Imms Says:

    That means a directory path in both linux and windows.

  5. linux commands Says:

    Excellent post. I was checking constantly this blog and I am impressed! Extremely useful info particularly the last part :) I care for such info a lot. I was seeking this particular information for a long time. Thank you and good luck.

  6. Todd Says:

    Thanks, William! I was having trouble finding results for that search as well.

    To add to what you’ve said: In Windows, if you call a directory listing (dir) from a command prompt, you’ll always see two odd entries - “.” and “..”. That’s a single dot and two dots. The double dot stands for the parent directory. Hence, if you type “cd ..” it will take you “up” to the parent folder. The single dot stands for the current directory. So when you type “./cool_prog” the OS knows to run “cool_prog” from the current directory.

    Thanks again!

  7. Uma Says:

    Hi William
    Your explanation is to the point and very useful for beginners like me. Thanks for the details

Leave a Reply