How to check file type?

You can check the file type by using following command from your shell.

root@gunjan#file index.php

It will show following output.

index.php: PHP script text

root@gunjan#file demo_scoredsep.pl

It will show following output.

demo_scoredsep.pl: perl script text

The above commands mostly used while we are not sure about files format.

delicious | digg | reddit | facebook | technorati | stumbleupon | savetheurl
You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.