check the file type
September 23rd, 2006 mysurface Posted in backquote, Common, file, which | Hits: 24963 | 2 Comments »
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.







October 6th, 2007 at 1:24 pm
[...] To check out the type of a file, you can use file, Check the file type [...]
February 26th, 2012 at 6:55 am
Informative..