Introduction to the File command for identifying File types in Linux
Source: Internet
Author: User
Description of the File command used to identify the File type in Linux-general Linux technology-Linux technology and application information. The following is a detailed description. We know that the Linux File System is one of the basic functions supported by the Linux kernel, and the hierarchical structure of the inverted tree is formed from the root/start.
Files And Directories are two basic elements of the Linux File System. (in a broad sense) files are divided into common files, directory files, connection files, and special files. You can use the file command to identify different file types.
Example:
[Root] # file ~ /. Bashrc
/Home/B/j/console/. bashrc: ASCII text
[Root] # file/usr/bin/passwd
/Usr/bin/passwd: setuid ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs ), for GNU/Linux 2.6.9, stripped
[Root] # file/usr/lib/python2.4/test/185test. db
/Usr/lib/python2.4/test/185test. db: Berkeley DB 1.85 (Hash, version 2, big-endian)
The file command can be used through file? Help or file online help man for more details.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.