{eval=Array;=+count(Array);}

问答专栏Q & A COLUMN

linux怎么判断一个文件是2进制?

changfeng1050changfeng1050 回答0 收藏1
收藏问题

1条回答

Clect

Clect

回答于2022-06-28 11:23

使用file命令加文件名

会显示文件属性

man file

---------------------------------------

NAME

file — determine file type

SYNOPSIS

file [-bchiklLNnprsvz0] [--apple] [--mime-encoding] [--mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...

file -C [-m magicfiles]

file [--help]

DESCRIPTION

This manual page documents version 5.11 of the file command.

file tests each argument in an attempt to classify it. There are three sets of tests, performed in this order: filesystem tests, magic tests, and language tests. The first test

that succeeds causes the file type to be printed.

评论0 赞同0
  •  加载中...

相关问题

最新活动

您已邀请0人回答 查看邀请

我的邀请列表

  • 擅长该话题
  • 回答过该话题
  • 我关注的人
向帮助了您的网友说句感谢的话吧!
付费偷看金额在0.1-10元之间
<