20. Programming/Tools - 4Linux
[Linux] Linux File types
x미소
2019. 9. 25. 16:21
- - : regular file
- d : directory
- c : character device file
- b : block device file
- s : local socket file
- p : named pipe
- l : symbolic link
Character device
Character and block device files allow users and programs to communicate with hardware peripheral devices.
For example:
$ ls -ld /dev/vmmon crw------- 1 root root 10, 165 Jan 4 10:13 /dev/vmmon |
In this case the character device is the vmware module device.
Block Device
Block devices are similar to character devices. They mostly govern hardware as hard drives, memory, etc.
$ ls -ld /dev/sda brw-rw---- 1 root disk 8, 0 Jan 4 10:12 /dev/sda |
ref. https://linuxconfig.org/identifying-file-types-in-linux
Identifying File types in Linux - LinuxConfig.org
Details Lubos Rendek System Administration 09 June 2016 Introduction When navigating the Linux file system you are sure to encounter different file types. The most used and obvious file types are regular files and directories. However, the Linux operating
linuxconfig.org
character device file 의 사용