From 3a495ab8bc65865088ca6a27d6eb030ccae32f59 Mon Sep 17 00:00:00 2001 From: tactonbishop Date: Sat, 4 Jun 2022 13:00:04 +0100 Subject: [PATCH] Last Sync: 2022-06-04 13:00:04 --- Linux/Devices.md | 27 +++++++++++++++++++ Linux/{ => Procedural}/Bluetooth.md | 0 Linux/{ => Procedural}/Compile_from_source.md | 0 Linux/{ => Procedural}/User_management.md | 0 markdown-styles.css | 16 +++++++++-- 5 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 Linux/Devices.md rename Linux/{ => Procedural}/Bluetooth.md (100%) rename Linux/{ => Procedural}/Compile_from_source.md (100%) rename Linux/{ => Procedural}/User_management.md (100%) diff --git a/Linux/Devices.md b/Linux/Devices.md new file mode 100644 index 0000000..1b1523d --- /dev/null +++ b/Linux/Devices.md @@ -0,0 +1,27 @@ +--- +tags: + - Linux + - Operating_Systems +--- + +# Devices + +Devices pertain to disks and drives that either exist on the motherboard or that are plugged-in. + +Devices are files but they are different from ordinary files. There are two types: **block** and **stream**. Device files reside in the `/dev/` directory. + +Some of the most important device files are: +* `hda` : a harddisk on a port +* `sda` : a harddisk on another port + +> Device files are an interface to a driver which accesses the hardware. A driver is therefore part of the Linux kernel. + +So when you see `sda` listed for example, this isn't the harddisk itself, it is a file that communicates with a driver that controls how the kernel can interact with it. This is why when you add a new piece of hardware (such as a mouse for example) you have to install drivers (typically provided by the manufacturer) so that your kernel is able to interact with it and provide it with access to the CPU. + +## `/dev/` + +``` +brw-rw---- 1 root disk 259, 1 Jun 4 11:00 nvme0n1p1 +brw-rw---- 1 root disk 259, 2 Jun 4 11:00 nvme0n1p2 +brw-rw---- 1 root disk 259, 3 Jun 4 11:00 nvme0n1p3 +``` \ No newline at end of file diff --git a/Linux/Bluetooth.md b/Linux/Procedural/Bluetooth.md similarity index 100% rename from Linux/Bluetooth.md rename to Linux/Procedural/Bluetooth.md diff --git a/Linux/Compile_from_source.md b/Linux/Procedural/Compile_from_source.md similarity index 100% rename from Linux/Compile_from_source.md rename to Linux/Procedural/Compile_from_source.md diff --git a/Linux/User_management.md b/Linux/Procedural/User_management.md similarity index 100% rename from Linux/User_management.md rename to Linux/Procedural/User_management.md diff --git a/markdown-styles.css b/markdown-styles.css index 205cf15..0fd441e 100644 --- a/markdown-styles.css +++ b/markdown-styles.css @@ -1,3 +1,15 @@ -h1, body { - font-family: 'Liberation'; +h1, h2, h3, h4, h5, h6, p { + font-family: 'Inter'; +} + +h1 { + font-size: 18px; +} + +p, ul, li { + font-size: 14px; +} + +pre, code { + font-family: 'LigaLiberationMono'; } \ No newline at end of file