Linux Scroll

Just another WordPress.com site

file command

file – determine file type

Determine file type:

$ file text.txt 
text.txt: ASCII text, with CRLF line terminators

Determine compress file type:

$ file crm.tar.gz 
crm.tar.gz: gzip compressed data, from Unix, last modified:

$ file -z crm.tar.gz 
crm.tar.gz: POSIX tar archive (GNU) (gzip compressed data, from Unix, last modified:)

Determine symbolic links path:

$ file Music
Music: symbolic link to `/data/Music'

Determine symbolic links file type:

$ file -L Music
Music: directory
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: