Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 672450c

Browse files
committed
[Linux] Complete files section (file system)
1 parent ab16a6e commit 672450c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/linux/filesys.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
File system and file management
33
*******************************************************************************
44

5+
Files
6+
=====
7+
58
A simple description of the UNIX system, also applicable to Linux, is this:
69

710
"On a UNIX system, everything is a file; if something is not a file,
@@ -40,3 +43,24 @@ generally all devices, are considered to be files, according to the system.
4043
:named pipes:
4144
act more or less like sockets and form a way for processes to communicate
4245
with each other, without using network socket semantic.
46+
47+
The ``-l`` option to ``ls`` display the file type, using the first character
48+
of each input line:
49+
50+
+--------+--------------+
51+
| Symbol | Meaning |
52+
+========+==============+
53+
| ``-`` | Regular file |
54+
+--------+--------------+
55+
| ``d`` | Directory |
56+
+--------+--------------+
57+
| ``l`` | Link |
58+
+--------+--------------+
59+
| ``c`` | Special file |
60+
+--------+--------------+
61+
| ``s`` | Socket |
62+
+--------+--------------+
63+
| ``p`` | Named pipe |
64+
+--------+--------------+
65+
| ``b`` | Block device |
66+
+--------+--------------+

0 commit comments

Comments
 (0)