CozyDev

Stay curious

X Window System

LPI (subject 106)

Linux 系統的標準GUI是 X Window System,通常簡稱為X。目前發行的版本通常為 X Version 11 Release 7,這版本通常稱為X11R7.4或X11。以GNU Public License 條款發

Linux System Files

/etc/fstab Filesystem Table, default in 644 mode Structure # <file system> <mount point> <type> <options> <dump> <pass> fstab 主要有六個欄位: File System: 需要掛載的裝置(硬碟、Partitions、外接光碟機等等)。 Mount Poin

Linux Kernal

Deep dive into the largest open source program

What is Linux Kernal The kernal is a program Often with a name like vmlinuz- Loaded a run by a noot loader, like GRUB(linux) GRUB GRUB: Load the Kernal program from disk to memory, and transfer the control to kernal GRUB comes after Power-On-self-Test(POST) The Kernal is an API System calls Virtual file system entries (not really a directory) proc sys debugfs Device files(standard system calls, read, write, open,…etc) The

Shell Display Forwarding

Where to display the GUI?

在Shell環境中,DISPLAY環境變數用於指定X Server的位置,以便圖形應用程序知道在哪裡顯示它們的視窗。通常,DISPLAY環境變

Shell commands

What are the differences

set -euo pipefail 在Shell script中,set -euo pipefail 是設置script的選項,它們影響script的行為。逐個解釋這些選項: -e 這個選項使得scrip

Shell script: 特殊語法解析

冒號、加號、減號、問號、括號的意義用法

在 Shell 腳本中,:-, :=, :?, :+, :n 是一些用於參數擴展和變量替換的特殊語法。這些語法有助於在不同情況下處理變量的值。以下是這些語法的詳細解釋: :- (Default value) 用

Processes and jobs

What are the differencess

In Linux systems, “process” and “job” are two distinct concepts representing different units of execution. Here’s the difference between them along with some common examples: Process: A process is an instance of a program running in the operating system. Each process has its own memory space, code, data, open files, resources, and state. Processes are independent of each other and cannot directly access the memory space of other processes. A