restructure

This commit is contained in:
JMARyA 2024-01-17 09:00:45 +01:00
parent ef7661245b
commit 598a10bc28
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
182 changed files with 342 additions and 336 deletions

View file

@ -4,7 +4,7 @@ obj: os
---
# Alpine Linux
Alpine Linux is a lightweight and secure [Linux](Linux.md) operating system designed for security, simplicity, and resource efficiency. It is particularly popular for use in containerized environments and embedded systems. Alpine does not use [Systemd](Systemd.md), instead it uses [openrc](openrc.md).
Alpine Linux is a lightweight and secure [Linux](Linux.md) operating system designed for security, simplicity, and resource efficiency. It is particularly popular for use in containerized environments and embedded systems. Alpine does not use [Systemd](systemd/Systemd.md), instead it uses [openrc](openrc.md).
Here are some of the features of Alpine Linux:
- Lightweight: Alpine Linux is designed to be as small and simple as possible, with a small footprint and minimal dependencies. The base image is typically around 5 MB in size.

View file

@ -4,7 +4,7 @@ obj: os
---
# Arch Linux
Arch is a very minimal [Linux](Linux.md) Distribution. It features many [packages](https://archlinux.org/packages/) installable with [Pacman](../applications/package%20managers/Pacman.md) and a useful [wiki](https://wiki.archlinux.org/). Additional software support is based on the [AUR](https://aur.archlinux.org/)
Arch is a very minimal [Linux](Linux.md) Distribution. It features many [packages](https://archlinux.org/packages/) installable with [Pacman](../applications/package%20managers/arch-linux/Pacman.md) and a useful [wiki](https://wiki.archlinux.org/). Additional software support is based on the [AUR](https://aur.archlinux.org/)
Installation of Arch Linux is typically done manually following the Wiki. Additionally there are install scripts like this one:
```shell

View file

@ -7,7 +7,7 @@ wiki: https://en.wikipedia.org/wiki/Kali_Linux
# Kali Linux
Kali Linux is an open-source Linux distribution geared towards various information security tasks, such as Penetration Testing, Security Research, Computer Forensics and Reverse Engineering.
It includes many common applications used for hacking and penetration testing, such as [nmap](../applications/cli/nmap.md) or [smbmap](../applications/cli/smbmap.md).
It includes many common applications used for hacking and penetration testing, such as [nmap](../applications/cli/network/nmap.md) or [smbmap](../applications/cli/smbmap.md).
![Wallpaper][Wallpaper]

View file

@ -7,7 +7,7 @@ website: https://www.kernel.org
# Linux
Linux is a kernel and computing platform.
It support virtually every [filesystem](filesystems/Filesystems.md). Linux has many distributions, such as [Arch Linux](Arch%20Linux.md) or [Alpine Linux](Alpine%20Linux.md), [Proxmox](Proxmox.md), etc.
The default init system is [Systemd](Systemd.md). See [mkinitcpio](mkinitcpio.md) for other boot time configuration.
The default init system is [Systemd](systemd/Systemd.md). See [mkinitcpio](mkinitcpio.md) for other boot time configuration.
Linux has GUIs but is generally used with the [Shell](../applications/cli/Shell.md). The kernel development can be tracked [here](https://kernel.org)
## Filesystem Structure
@ -39,7 +39,7 @@ A typical Linux system has, among others, the following directories:
| `/usr/lib` | Object libraries, including dynamic libraries, plus some executables which usually are not invoked directly. More complicated programs may have whole subdirectories there. |
| `/usr/share` | This directory contains subdirectories with specific application data, that can be shared among different architectures of the same OS. |
| `/usr/share/doc` | Documentation about installed programs (optional). |
| `/usr/share/man` | [Manual pages](../applications/cli/man.md) go here in subdirectories according to the man page sections. |
| `/usr/share/man` | [Manual pages](../applications/cli/system/man.md) go here in subdirectories according to the man page sections. |
| `/var` | This directory contains files which may change in size, such as spool and log files. |
| `/var/cache` | Data cached for programs. |
| `/var/log` | Miscellaneous log files. |

View file

@ -5,4 +5,4 @@ wiki: https://en.wikipedia.org/wiki/Loop_device
# Loop Device
In Unix-like operating systems, a loop device is a pseudo-device that makes a computer file accessible as a block device. Thus, if the file contains an entire file system, the file may then be mounted as if it were a disk device.
In [Linux](Linux.md) loop devices can be managed with the [losetup](../applications/cli/losetup.md) command.
In [Linux](Linux.md) loop devices can be managed with the [losetup](../applications/cli/system/losetup.md) command.

View file

@ -5,7 +5,7 @@ arch-wiki: https://wiki.archlinux.org/title/Cron
---
# Cron
Cron is a time-based job scheduler in Unix-like operating systems. It allows users to schedule tasks (commands or scripts) to run periodically at fixed intervals, providing automation and simplifying repetitive tasks. Cron is an essential tool for system administrators, developers, and anyone who needs to automate routine activities. A modern replacement for cron are [Systemd-Timers](Systemd-Timers.md).
Cron is a time-based job scheduler in Unix-like operating systems. It allows users to schedule tasks (commands or scripts) to run periodically at fixed intervals, providing automation and simplifying repetitive tasks. Cron is an essential tool for system administrators, developers, and anyone who needs to automate routine activities. A modern replacement for cron are [Systemd-Timers](systemd/Systemd-Timers.md).
## Syntax
The syntax for a cron expression consists of five fields, representing the minute, hour, day of the month, month, and day of the week. Additionally, an optional sixth field allows for a specific user context. See [this website](https://crontab.guru) for help creating crontabs.

View file

@ -31,7 +31,7 @@ mergerfs -o cache.files=partial,dropcacheonclose=true,category.create=mfs /mnt/h
/mnt/hdd0:/mnt/hdd1 /media fuse.mergerfs cache.files=partial,dropcacheonclose=true,category.create=mfs 0 0
```
[Systemd](../Systemd.md):
[Systemd](../systemd/Systemd.md):
```toml
[Unit]
Description=mergerfs service

View file

@ -3,7 +3,7 @@ arch-wiki: https://wiki.archlinux.org/title/SSHFS
obj: filesystem
---
# SSHFS
SSHFS is a FUSE Filesystem based on the [SSH](../../applications/SSH.md) and SFTP Protocol.
SSHFS is a FUSE Filesystem based on the [SSH](../../applications/network/SSH.md) and SFTP Protocol.
## Mounting
```shell

View file

@ -45,7 +45,7 @@ The default `HOOKS` setting should be sufficient for most simple, single disk se
#### Common Hooks
| Hook | Feature |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **base** | Sets up all initial directories and installs base utilities and libraries. Always keep this hook as the first hook unless you know what you are doing, as it provides critical busybox init when not using **[systemd](Systemd.md)** hook. Optional when using the **[systemd](Systemd.md)** hook as it only provides a busybox recovery shell. |
| **base** | Sets up all initial directories and installs base utilities and libraries. Always keep this hook as the first hook unless you know what you are doing, as it provides critical busybox init when not using **[systemd](systemd/Systemd.md)** hook. Optional when using the **[systemd](systemd/Systemd.md)** hook as it only provides a busybox recovery shell. |
| **udev** | Adds udevd, udevadm, and a small subset of udev rules to your image. |
| **usr** | Adds support for /usr on a separate partition. |
| **resume** | Tries to resume from the "suspend to disk" state. |

View file

@ -243,7 +243,7 @@ pidfile="/var/run/${RC_SVCNAME}.pid"
guarantees that your PID file has a unique name.
## Upstream your service scripts (for packagers)
The ideal place for an OpenRC service script is **upstream**. Much like [systemd](Systemd.md) services, a well-crafted OpenRC service script should be distribution-agnostic, and the best place for it is upstream. Why? For two reasons. First, having it upstream means that there's a single authoritative source for improvements. Second, a few paths in every service script are dependent upon flags passed to the build system. For example,
The ideal place for an OpenRC service script is **upstream**. Much like [systemd](systemd/Systemd.md) services, a well-crafted OpenRC service script should be distribution-agnostic, and the best place for it is upstream. Why? For two reasons. First, having it upstream means that there's a single authoritative source for improvements. Second, a few paths in every service script are dependent upon flags passed to the build system. For example,
```sh
command=/usr/bin/foo
```

View file

@ -4,9 +4,9 @@ arch-wiki: https://wiki.archlinux.org/title/Systemd-boot
---
# Systemd Boot
systemd-boot is a simple UEFI boot manager which executes configured EFI images. The default entry is selected by a configured pattern (glob) or an on-screen menu to be navigated via arrow keys. It is included with [systemd](Systemd.md), which is installed on an Arch system by default.
systemd-boot is a simple UEFI boot manager which executes configured EFI images. The default entry is selected by a configured pattern (glob) or an on-screen menu to be navigated via arrow keys. It is included with [systemd](systemd/Systemd.md), which is installed on an Arch system by default.
It is simple to configure but can only start EFI executables such as the [Linux](Linux.md) kernel EFISTUB, UEFI shell, GRUB, or the [Windows](../windows/Windows.md) Boot Manager.
It is simple to configure but can only start EFI executables such as the [Linux](Linux.md) kernel EFISTUB, UEFI shell, GRUB, or the [Windows](../../windows/Windows.md) Boot Manager.
## Install
Install: