Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.



share|improve this question

migrated from Nov 10 '11 at 17:06

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

try this: man sudo – Didier Trosset Nov 10 '11 at 11:46
then that: man touch – Didier Trosset Nov 10 '11 at 11:46
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".

share|improve this answer

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.

share|improve this answer

You must log in to answer this question.