Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com 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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.