The easiest way to find absolute path of file from root on a linux web-server is to use php.
- Create a file in the directory that you want to find the absolute path, name it apath.php
- Put the following code in that file.
<?php
echo 'The absolute path to this directory is <br><b>'.realpath(".").'</b>';
?>
- Direct your browser to the file. The absolute path should appear!
If you are too lazy to create the file, download the attachement of this question, place it in the directory you need absolute path for and run it from your browser.
Would you like to...
Subscribe me (Subscribe to receive notification when this article is updated.)
