Centos file type command

Source: Internet
Author: User
You can use this command to view the basic data of a file, such as an ASCII, data file, or binary file. Usage: & nbs

View the basic data of a file. for example, it is ASCII.This command can be used for data files, binary files, and whether or not information such as the dynamic correspondence library is used.

Usage:

             [Kin @ kin ~] $ FileFilename

Example:

      [Kin @ kin ~] $ File ~ /. Bashrc

/Home/kin/. bashrc: ASCII text

# The displayed information indicates that this is an ascii plain text file.

[Kin @ kin ~] $ File/usr/bin/passwd

/Usr/bin/passwd: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV)

, For GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped

# The execution file contains a large amount of data. The suid permission for this file is compatible with intel's 80386-level hardware platform # linux core 2.6.9 dynamic function library links are used ·

[Kin @ kin ~] $ File/var/lib/mlocate. db

/Var/lib/mlocate. db: data

# This is a data file

--------- Laruence's private dish 187

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.