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