Linux common commands-38: file

The file command is used to identify the file type and also the encoding format of some files. It obtains the file type by looking at the header information of the file.

Syntax format: file [parameter] [file]

Common parameters:

Example

 # 显示文件类型file cuda_10.1.243_418.87.00_linux.run

If it is an executable file

This article is reprinted from https://xugaoxiang.com/2022/06/11/linux-cmds-38-file/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.