Linux file command

Linux file command used to display the type of file

Syntax:

file [OPTION…] [FILE…]

[root@localhost k2schools]# file text.txt
text.txt: ASCII text

[root@localhost k2schools]# file error.txt
error.txt: empty

Linux file command

Powered by k2schools
Skip to toolbar