Linux file and directory permissions configuration --2

Linux file types and file extensions

In the first column of ten characters we use ls -l] [observed, the first character of the file type. So, all those files do?

  • Regular archives (regular flie): The first character is [-]
    • Plain text (ASCII): This is a linux system up to a file type, known as a plain text file because the contents of the information we humans can read directly, such as numbers, letters and so on. Almost as long as we are used to this kind of file type as a file set.
    • Binary files (binary): Linux executable files (scripts, batch-type character when not) this is the format, for example, cat This directive is a binary file.
    • Data format file (data): Some programs operate in the process reads some files in a specific format, those specific file format can be called a data file (data file). For example: when we log on linux, the login information will be recorded in the / var / log / wtmp that file, the file is a data file, he can last the instruction read out. However, when using cat, it will read out the garbage, because he belongs to a particular file format.

hare
2020.2.24

Guess you like

Origin www.cnblogs.com/hare1925/p/12356421.html