diff --git a/Operating_Systems/Devices.md b/Operating_Systems/Devices.md index d2da47e..65a1097 100644 --- a/Operating_Systems/Devices.md +++ b/Operating_Systems/Devices.md @@ -36,9 +36,13 @@ The [mode](../Programming_Languages/Shell_Scripting/File_permissions_and_executi
character
Character devices transfer data one character at a time.The data is not in discrete chunks, it is a continuous stream of characters. An example of a stream device file is a printer however many character devices (such as `/dev/null`) are not physically connected to the machine.
pipe
-
+
Pipe devices allow two or more processes to communicate with each other. They work in the same way as character devices (transferring data as a stream) but instead of the output being sent to a device, it is sent to another process.
socket
-
+
The same as pipe devices, facilitating communication between processes however they can communicate with many processes at once, not just a single process.
-TODO: Add details on pipes and sockets once I understand them. + +## /dev/null + +`/dev/null` is a virtual device: it doesn't actually exist as a piece of hardware on the system. +Base on : https://linuxhint.com/what_is_dev_null/ \ No newline at end of file