Results 1 to 9 of 9

Thread: /.

  1. #1
    Senior Member
    Join Date
    Apr 2002


    ok what does /. do?

    does that just mean execute?

    as in /.mybinary

    or is there some other significance?


  2. #2


    i think you mean ./ - it specifys the location of a file you which to execute, /. would mean run a program called . at the root directory

  3. #3


    it executes a file or executable script. If the file has the execute flag set (chmod +x to make it executable), ./ will run the file

  4. #4


    Rule 1:
    /. is a nerdish way of referring to the SlashDot website

    Rule 2:
    Per default, Linux does not allow you to run executables in the present dir (it will pref. one in your PATH) thus we need to tell the OS that we need to run the executables in this dir (thus the . meaning this dir).

    So ./ and /. are not the same.

  5. #5


    When working on the command line (CLI), a period means current directory. If you could print the contents of the period, it would be the same as the output of the 'pwd' command.
    If this was valid: 'echo .' (or) 'echo $.' it would have the same output as 'pwd'.

    When you type something on the CLI, it looks through your path variable to see if it can find a folder in the path which contains the executable name. If it cannot then it will spout command not found or whatever. If you type:

    echo $PATH then you will see all the folders that are searched when looking for an executable program/script. If you would like to add to this (say you have a folder of perl scripts you wrote and you want to access them from any folder) you can do this:

    export PATH=$PATH:/another/folder/to/search

    This will wear off when you log out of your shell however. If you would like this new path to be in your shell when you login, then you need to put it in your .bashrc (if you're using bash).

    Don't export the period to your path, it could have security implications.

    Note - Instead of doing ./configre or whatever you can always type out the whole path.... eg:

    $ pwd
    (above command is same as)
    $ ./

    Note 2 - If (using the example above) you do this:

    export PATH=$PATH:/home/bob/bobsscripts

    you can then call from any folder

  6. #6


    On a similar topic. What does /. as in the slashdot website stand for?

  7. #7
    Senior Member
    Join Date
    Sep 2002


    [quote author=pwrhouse link=board=1;threadid=6258;start=0#59203 date=1044309397]
    On a similar topic. What does /. as in the slashdot website stand for?

  8. #8
    Senior Member
    Join Date
    Apr 2002


    I think pwrhouse asked the question I should have asked and saved everyone the trouble. That is where I originally say slashdot but then I saw it on a coffee mug.

  9. #9


    Thanks demian. I guess I should have taken a look at the FAQ.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts