Translated message

A translation of this page exists in English.

grep と file コマンドがファイルタイプをバイナリーまたはテキストと判断する方法

Solution Verified - Updated -

Issue

  • grep と file コマンドは、どのようにしてファイルタイプを binary または text と判断しますか?
  • 特定のサーバーで grep を使用すると、Binary file (standard input) matches というエラーが発生します。

Environment

  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content