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