How To See File Type In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To see the file type of a file in Linux, use the ‘file’ command. This command will display the type of file as well as other information related to the file. Syntax:
file <filename>
Example:
file myfile.txt
Output:
myfile.txt: ASCII text