linux中的文件类型
来源:互联网 发布:软件配置文件编辑 编辑:程序博客网 时间:2024/05/01 01:10
LINUX中的文件类型
d 目录文件。
l 符号链接(指向另一个文件,类似于瘟下的快捷方式)。
s 套接字文件。
b 块设备文件,二进制文件。
c 字符设备文件。
p 命名管道文件。
- 普通文件,或更准确地说,不属于以上几种类型的文件。
d 目录文件。
l 符号链接(指向另一个文件,类似于瘟下的快捷方式)。
s 套接字文件。
b 块设备文件,二进制文件。
c 字符设备文件。
p 命名管道文件。
- 普通文件,或更准确地说,不属于以上几种类型的文件。
重点注意的是普通文件,在查看文件类型的时候使用file命令和ll命令结合来查看文件的类型
设备文件分为Block Device Driver和Character Device Drive两类。Character Device Drive又被称为字符设备或裸设备raw devices; Block Device Driver通常成为块设备。而Block Device Driver是以固定大小长度来传送转移资料 ;Character Device Driver是以不定长度的字元传送资料 。且所连接的Devices也有所不同,Block Device大致是可以随机存取(Random Access)资料的设备,如硬碟机或光碟机;而Character Device刚好相反,依循先後顺序存取资料的设备,如印表机 、终端机等皆是。
1.字符设备只能以字节为最小单位访问,而块设备以块为单位访问,例如512字节,1024字节等
2.块设备可以随机访问,但是字符设备不可以
3.字符和块没有访问量大小的限制,块也可以以字节为单位来访问
The type printed will usually contain one of the words
text (the file contains only printing characters and a few common control characters and is probably safe to read on an ASCII terminal),
executable (the file contains the result of compiling a program in a form understandable to some UNIX kernel or another),
data meaning anything else (data is usually `binary' or non-printable).
Any file that cannot be identified as having been written in any of the character sets listed above is simply said to be ``data''.
text (the file contains only printing characters and a few common control characters and is probably safe to read on an ASCII terminal),
executable (the file contains the result of compiling a program in a form understandable to some UNIX kernel or another),
data meaning anything else (data is usually `binary' or non-printable).
Any file that cannot be identified as having been written in any of the character sets listed above is simply said to be ``data''.
0 0
- LINUX中的文件类型
- LINUX中的文件类型
- linux中的文件类型
- linux中的文件类型
- LINUX中的文件类型
- Linux中的文件类型
- linux中的部分文件类型
- Linux系统中的文件类型
- linux中的文件类型
- linux中的7种文件类型
- Linux中的文件类型以及文件属性
- linux系统中的文件类型和文件扩展名
- linux中的文件类型与目录结构
- linux文件类型
- linux文件类型
- Linux文件类型
- Linux文件类型
- LInux文件类型
- CSS - 三角形
- 字符串的一些算法
- ubuntu无线上网静态ip配置
- poj 1658
- java入门学习(十二)
- linux中的文件类型
- Android开发之实现对闹钟Alarm的控制
- Maven使用教程
- 100条有效学习方法
- linux命令历史和 Tab 自动补全
- java内部类的作用分析
- SP2010开发和VS2010专家"食谱"--第二章节--工作流(1)--创建顺序工作流
- Windows 基础入门(2)
- 一些小知识 零散的C++