Quantcast
Channel: Linux by Examples » which
Viewing all articles
Browse latest Browse all 7

check the file type

$
0
0

A command file is a good tool to help you determine what file type of a file. To check for a file type simply do this

file filename

Let say i want to check the file type of command line update-rc.d, i can do this

file `which update-rc.d`

output:

/usr/sbin/update-rc.d: perl script text executable

Uses which to returns the full path of the filename and back quote is to return result to command file.


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images