retag Linux with lowercase
This commit is contained in:
parent
ee7d7ce00a
commit
af6087fe9b
41 changed files with 78 additions and 91 deletions
|
|
@ -1,41 +1,35 @@
|
|||
---
|
||||
tags:
|
||||
- operating-systems
|
||||
- Linux
|
||||
- linux
|
||||
---
|
||||
|
||||
# Basic model of a nix operating system
|
||||
# Basic model of a \*nix operating system
|
||||
|
||||
We can abstract the Linux OS into three operational levels or tiers, from the
|
||||
bottom up:
|
||||
|
||||
<dl>
|
||||
<dt>User processes: user space</dt>
|
||||
<dd>The running programs that the kernel manages. Also known as the user space which is the memory that the kernal assigns for user processes. Comprising:
|
||||
<ul>
|
||||
<li>Graphical user interface</li>
|
||||
<li>Servers</li>
|
||||
<li>Shell</li>
|
||||
</ul>
|
||||
<dt>Kernel: kernel space</dt>
|
||||
</dd>
|
||||
<dd>The core of the operating system. Software residing in memory that tells the CPU where to look for its next task. Acts as a mediator and primary interface between the hardware and the user processes. Known as kernel space: the memory that the kernel allocates for itself. Comprising:
|
||||
<ul>
|
||||
<li>System calls</li>
|
||||
<li>Process management</li>
|
||||
<li>Memory management</li>
|
||||
<li>Device drivers</li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt>Hardware</dt>
|
||||
<dd>The base: one or more CPUs and RAM memory performing computations and writing to memory. Comprising:
|
||||
<ul>
|
||||
<li>Processor (CPU)</li>
|
||||
<li>Main memory (RAM)</li>
|
||||
<li>Disks</li>
|
||||
<li>Network ports</li>
|
||||
</ul>
|
||||
</dl>
|
||||
- **User processes: user space**
|
||||
- The running programs that the kernel manages. Also known as the user space
|
||||
which is the memory that the kernel assigns for user processes. Comprising:
|
||||
- Graphical user interface
|
||||
- Servers
|
||||
- Shell
|
||||
|
||||
!! Add info on kernel mode and user mode
|
||||
https://www.geeksforgeeks.org/user-mode-and-kernel-mode-switching/
|
||||
- **Kernel: kernel space**
|
||||
- The core of the operating system. Software residing in memory that tells the
|
||||
CPU where to look for its next task. Acts as a mediator and primary
|
||||
interface between the hardware and the user processes. Known as kernel
|
||||
space: the memory that the kernel allocates for itself. Comprising:
|
||||
- System calls
|
||||
- Process management
|
||||
- Memory management
|
||||
- Device drivers
|
||||
|
||||
- **Hardware**
|
||||
- The base: one or more CPUs and RAM memory performing computations and
|
||||
writing to memory. Comprising:
|
||||
- Processor (CPU)
|
||||
- Main memory (RAM)
|
||||
- Disks
|
||||
- Network ports
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ tags:
|
|||
- networks
|
||||
- procedural
|
||||
- bluetooth
|
||||
- Linux
|
||||
- linux
|
||||
---
|
||||
|
||||
# Bluetooth
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
tags: [Linux, procedural]
|
||||
tags: [linux, procedural]
|
||||
---
|
||||
|
||||
# Compile package from source
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
tags: [docker, containerization, Linux]
|
||||
tags: [docker, containerization, linux]
|
||||
---
|
||||
|
||||
# Containerizaton
|
||||
|
|
@ -31,11 +31,11 @@ increased the speed of transport.
|
|||
particular implementation of containerization that simplifies the process and
|
||||
bases it on a standardised specification.
|
||||
|
||||
- Containers are native to the Linux [kernal](The_kernel.md)
|
||||
and are key part of how it works. Thus when you run containers on Linux, you
|
||||
are using native capability. When you use containers on Windows or Mac you
|
||||
have to run a virtual version of Linux in order to exploit the capabilities of
|
||||
that kernel. (Docker provides this)
|
||||
- Containers are native to the Linux [kernal](The_kernel.md) and are key part of
|
||||
how it works. Thus when you run containers on Linux, you are using native
|
||||
capability. When you use containers on Windows or Mac you have to run a
|
||||
virtual version of Linux in order to exploit the capabilities of that kernel.
|
||||
(Docker provides this)
|
||||
|
||||
## How containers work
|
||||
|
||||
|
|
@ -51,11 +51,11 @@ groups).
|
|||
example a container is ignorant of the underlying operating system and
|
||||
network, by default.
|
||||
|
||||
In ordinary [user space](User_Space.md) applications share
|
||||
the _same_ processor, memory and file system resources. This increases the
|
||||
likelihood of resourcing challenges, dependency conflicts and security threats.
|
||||
Without modularisation and the titration of resources, you are opened up to much
|
||||
greater possibility of failure.
|
||||
In ordinary [user space](User_Space.md) applications share the _same_ processor,
|
||||
memory and file system resources. This increases the likelihood of resourcing
|
||||
challenges, dependency conflicts and security threats. Without modularisation
|
||||
and the titration of resources, you are opened up to much greater possibility of
|
||||
failure.
|
||||
|
||||
For example one application could fill up the harddrive preventing other
|
||||
applications from writing to it. One application can "bring down" another
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
tags:
|
||||
- systems-programming
|
||||
- systemd
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
tags:
|
||||
- disks
|
||||
- Linux
|
||||
- linux
|
||||
created: Monday, May 06, 2024
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
tags:
|
||||
- shell
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
tags:
|
||||
- Linux
|
||||
- linux
|
||||
- Debian
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
tags:
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
tags:
|
||||
- computer-architecture
|
||||
- Linux
|
||||
- linux
|
||||
---
|
||||
|
||||
# Devices
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ tags:
|
|||
- systems-programming
|
||||
- disks
|
||||
- procedural
|
||||
- Linux
|
||||
- linux
|
||||
---
|
||||
|
||||
# Disk info routines
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
tags: [Linux, permissions]
|
||||
tags: [linux, permissions]
|
||||
created: Friday, April 11, 2025
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
tags:
|
||||
- Linux
|
||||
- linux
|
||||
---
|
||||
|
||||
## Use `&` to send a process to background
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
id: hb10
|
||||
tags:
|
||||
- networks
|
||||
- Linux
|
||||
- linux
|
||||
- raspberry-pi
|
||||
- procedural
|
||||
created: Wednesday, June 12, 2024
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
tags:
|
||||
- disks
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
tags: [memory, Linux]
|
||||
tags: [memory, linux]
|
||||
created: Monday, July 08, 2024
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
tags:
|
||||
- systems-programming
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
id: ippn
|
||||
tags: [networks, procedural, Linux, dns]
|
||||
tags: [networks, procedural, linux, dns]
|
||||
created: Monday, June 10, 2024
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
tags:
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
- arch-linux
|
||||
---
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
tags: [disks, procedural, Linux]
|
||||
created: Saturday, April 26, 2025
|
||||
tags: [disks, procedural, linux]
|
||||
---
|
||||
|
||||
# Repair disks with fsck
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
tags:
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
id: 2w0e
|
||||
tags: [Linux, networks]
|
||||
tags: [linux, networks]
|
||||
created: Wednesday, June 12, 2024
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
tags:
|
||||
- procedural
|
||||
- curl
|
||||
- Linux
|
||||
- linux
|
||||
---
|
||||
|
||||
# Silence output in `curl`
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
tags:
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
tags:
|
||||
- memory
|
||||
- disks
|
||||
- Linux
|
||||
- linux
|
||||
- operating-systems
|
||||
---
|
||||
|
||||
|
|
@ -38,8 +38,8 @@ To use an existing disk partition as a swap you can run the command
|
|||
### Add to `fstab`
|
||||
|
||||
You will want the swap to be activated every time the OS boots so add the
|
||||
following line to the [fstab](Filesystems.md#fstab),
|
||||
where `/sda3` is used as the example partition:
|
||||
following line to the [fstab](Filesystems.md#fstab), where `/sda3` is used as
|
||||
the example partition:
|
||||
|
||||
```bash
|
||||
/dev/sda3e none swap sw 0 0
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
tags:
|
||||
- shell
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
tags:
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
- systemd
|
||||
---
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
tags:
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
tags:
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
tags: [networks, procedural, Linux]
|
||||
created: Friday, January 10, 2025
|
||||
tags: [networks, procedural, linux]
|
||||
---
|
||||
|
||||
# View IP addresses
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
tags:
|
||||
- memory
|
||||
- Linux
|
||||
- linux
|
||||
- kernel
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
tags: [permissions, Linux]
|
||||
created: Friday, April 11, 2025
|
||||
tags: [permissions, linux]
|
||||
---
|
||||
|
||||
Modify file permissions.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
tags: [permissions, Linux]
|
||||
created: Friday, April 11, 2025
|
||||
tags: [permissions, linux]
|
||||
---
|
||||
|
||||
# chown
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
tags: [Linux, procedural, logs]
|
||||
tags: [linux, procedural, logs]
|
||||
created: Thursday, April 24, 2025
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
tags:
|
||||
- systems-programming
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
tags:
|
||||
- Linux
|
||||
- linux
|
||||
- Debian
|
||||
- mqtt
|
||||
---
|
||||
|
|
|
|||
5
zk/ps.md
5
zk/ps.md
|
|
@ -1,13 +1,12 @@
|
|||
---
|
||||
tags:
|
||||
- shell
|
||||
- Linux
|
||||
- linux
|
||||
---
|
||||
|
||||
# Processes (`ps`)
|
||||
|
||||
`ps` allows us to control [user processes](The_kernel.md)
|
||||
from the shell.
|
||||
`ps` allows us to control [user processes](The_kernel.md) from the shell.
|
||||
|
||||
The command in its most minimal application returns the following
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
tags: [file-transfer, Linux, procedural, disks]
|
||||
created: Saturday, April 26, 2025
|
||||
tags: [file-transfer, linux, procedural, disks]
|
||||
---
|
||||
|
||||
# rsync
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
tags: [file-transfer, Linux, procedural, servers]
|
||||
created: Sunday, April 27, 2025
|
||||
tags: [file-transfer, linux, procedural, servers]
|
||||
---
|
||||
|
||||
# scp
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
tags:
|
||||
- systems-programming
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
- systemd
|
||||
- operating-systems
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ id: v5f6xkdv
|
|||
tags:
|
||||
- systemd
|
||||
- systems-programming
|
||||
- Linux
|
||||
- linux
|
||||
- procedural
|
||||
created: Thursday, February 29, 2024 | 18:19
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue