Linux file types

Source: Internet
Author: User

Linux file types

Small mirror of the App Store

We have just mentioned using "ls-l" to observe the first column of the 10 characters, the first character is the type of the file. In addition to the common General profile (-) (d), what kinds of file types are there?

· Positive yingying file (regular file): is the type of file that we generally access in import line, the first character is [-], for example [despair], which is the-rwxrwxrwx aspect shown by Ls-al. In addition, according to the contents of the file, but also can be divided into:

o Plain text file (ASCII): This is the most common type of file in a Linux system. This is called plain text because the content is data that we humans can read directly, such as numbers, letters, and so on. Almost as long as we can use it as a OU. This file type is two. Bowl example, you can release "Cat ~/.BASHRC" to see the contents of the file. (Cat is an instruction to read the contents of an archive.)

o binary file (binary): Remember that we have in the past in the operation of the software program, our system in fact only obituary hideaway can execute the import file (binary files) it? Yes ~ your Linux executable (scripts, text-type batch file does not count) This is the format of the ~ Bowl example, just issued the instruction cat is a binary file.

MORE: http://www.561.cn

o Data format file: Some programs read files in certain formats during operation, and those files in a particular format can be referred to as data files. Bowl example, our Linux in the user login, will be logged login data login in/var/log/wtmp that file, the file is a data file, he can read it through the last command! But when using cat, it will read garbled ~ because he is a file in 21 special formats. You understand?

Here

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.