From 077258d8cd0b8ead4efa2f66c80e7736f2158418 Mon Sep 17 00:00:00 2001 From: tactonbishop Date: Mon, 6 Jun 2022 20:00:04 +0100 Subject: [PATCH] Last Sync: 2022-06-06 20:00:04 --- Operating_Systems/Devices.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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