fileコマンドの説明します。
説明
fileはファイルの種類を表示するコマンドです。
使い方:file [ ファイル名 ]
読み方:ファイル
略:なし
具体例
# ■■■ 1.準備
[root@CE08PRD101 ~]# mkdir -p /work/file;cd /work/file;pwd
/work/file
# テストファイル作成
[root@CE08PRD101 file]# echo hello > test.txt
# ■■■ 2.事前確認
[root@CE08PRD101 file]# ll
合計 0
-rw-r--r--. 1 root root 0 9月 24 20:16 test.txt
# ■■■ 3.ファイルの種類確認
[root@CE08PRD101 file]# file test.txt
test.txt: ASCII text
# テストファイル削除
[root@CE08PRD101 file]# cd ../;rm -fr file