I am installing a LAMP install on Debian GNU/Linux and have been asked to enter the following command

sudo touch /var/www/info.php

I was just wondering if anyone could explain what it does.

Thanks

Jack

link|improve this question
try this: man sudo – Didier Trosset Nov 10 '11 at 11:46
then that: man touch – Didier Trosset Nov 10 '11 at 11:46
feedback

migrated from stackoverflow.com Nov 10 '11 at 17:06

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 3 down vote accepted

That command creates an empty file called "info.php". The next step is probably to edit the file, and add something like this to it:

<?php phpinfo();

What this does is allow you to see all information about your Apache/PHP installation through your browser, usually to see if you have all the PHP libraries you need.

When you have done installing, you should delete "info.php".

link|improve this answer
feedback

sudo raises the privilege level of the following command to superuser level (root). In this case the following command is touch, and touch creates the file that is passed as parameter, in this case /var/www/info.php.

The best you can do is read the man pages of sudo and touch.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown