Filesystem
-
Filesystem hierarchy
man hier
File descriptor (opens in a new tab)
-
Standard streams and its file descriptors
stdin: 0stdout: 1stderr: 2
-
>by default redirectsstdout, therefore>is equivalent to1> -
>&<FILE_DESCRIPTOR>redirectsstdoutto another stream.echo "An error occurred" >&2 # Redirect stdout to stderr -
&>, To redirect to eitherstdoutorstderr, depending on the runtime outcomeif cmp a b &> /dev/null # Suppress output whether it's from stdout or stderr
Partition management
- CINUC11 - Fedora
| Mount Point | UUID | Size | Partition Type | FS Type | Label |
|---|---|---|---|---|---|
| /dev/nvme0n1p1 | 8017-039C | 629MB | EFI System | FAT32 | |
| /dev/nvme0n1p2 | e962ae35-fee4-4f35-9a33-0995c4cea9e7 | 1.1GB | /boot | Ext4 | |
| /dev/nvme0n1p3 | dce36504-d2fa-4016-b7e2-41e1ad785856 | 525GB | /home | Ext4 | |
| /dev/nvme0n1p5 | 1e4ce292-7d3c-44ee-be6d-e82edba14980 | 300GB | /var | Ext4 | |
| /dev/nvme0n1p6 | b98df302-e2dc-4921-aec5-e60f2af98652 | 74GB | / | Ext4 | |
| /dev/nvme0n1p7 | 565efedc-19ec-4f20-965e-115a13099839 | 300GB | Ext4 | Backup | |
| /dev/nvme0n1p4 | 262a48c4-b1a6-412e-89ca-f386891b784d | 12GB | Linux Swap | Swap |
Partition Scheme
-
/swap-
What's the right amount of swap space for a modern Linux system? (opens in a new tab)
-
Usage
- Hibernation
- Memory overflow
-
-
/var-
Could assign
500GBif possible -
Usage
-
Application installation
/var/lib/flatpak/var/lib/snapd
-
Docker storage, cache, volumes, etc
/var/lib/docker
-
-
-
The order of partitions matters, and partitions should be created from the least possible to be resized to the most possible to be resized.
-
Resources
Red Hat family
Fedora
Upgrading Fedora Linux Using DNF System Plugin
Install application and add desktop shortcut
RHEL
RHEL - Subscription Management
-
Use username/password to register a system
subscription-manager register --username $username --password $password --auto-attachIf doesn't work, use activation key and organization ID
subscription-manager register --org $organization_id --activationkey $activation_key -
Red Hat Customer Portal - Creating Red Hat Customer Portal Activation Keys (opens in a new tab)
RHEL - Flatpak
Package management - EPEL
-
Extra Packages for Enterprise Linux (EPEL) (opens in a new tab)
-
Oracle Linux
-
dnfi oracle-epel-release-el9Oracle Linux 9
-