I am working on a c program which displays all the directories and files under each directory.
I want to know what kind of file each is. Like, is the file an ascii text file or english text or a c file.
if it is an executable, is it an binary file or a shell script.
I was told to look inside the file to achieve this.How should I do this.Man pages are difficult to understand and quite confusing.Any help is appreciated.
Thanks in advance.