File (command)

From Linuxintro
Revision as of 07:31, 27 February 2009 by imported>ThorstenStaerk (New page: file is a command to find out the type of a given file. Because for Linux, "everything is a file", it can distinguish a lot: # file /dev/sda1 /dev/sda1: block special (8/1) # file /tmp ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

file is a command to find out the type of a given file. Because for Linux, "everything is a file", it can distinguish a lot:

# file /dev/sda1
/dev/sda1: block special (8/1)
# file /tmp
/tmp: sticky directory
# file /lib64/libkeyutils.so.1
/lib64/libkeyutils.so.1: symbolic link to `libkeyutils-1.2.so'
# file /lib64/libkeyutils-1.2.so
/lib64/libkeyutils-1.2.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), stripped