字体就是空气,没人想在呼吸的时候被迫分辨空气的味道。所以,字体老老实实地选用默认的无衬线体(苹方、Inter、Noto Sans),要是想模拟英语课本你就用 Times New Roman。
下面的一些小短文使用了 <div> 标签结合内联样式展示不同的字体,从上往下依次是 Times New Roman、宋体(SimSun)和楷体(KaiTi)。为了避免太乱它们已经被折叠起来。
展开
Intro to ls
The ls command is one of the most essential tools in Linux and Unix-like systems. It lists the contents of directories, allowing you to see files, subdirectories, and their details at a glance. Whether you’re navigating the file system or checking permissions, ls is the first step.
Running ls by itself shows the contents of the current directory. You can also specify a path, like ls /home/user/Documents. To reveal more information, add options: -l provides a long listing with permissions, owner, size, and modification time; -a includes hidden files (those starting with a dot); and -h makes sizes human-readable when used with -l, showing values like 1K, 234M, or 2G.
Other useful flags include -t to sort by modification time, -r to reverse the order, and -R to list directories recursively. For instance, ls -ltr shows files sorted by time with the newest at the bottom, which is handy for finding recent changes. Many systems alias ll to ls -l for convenience. With color-coded output enabled by default on most distributions, ls instantly distinguishes files, directories, and executables. Simple yet powerful, mastering ls is the foundation of working confidently on the command line.
Simple use of Cron
Cron is a built-in time-based job scheduler in Linux and other Unix-like systems. It runs commands or scripts automatically at specified times or intervals, making it ideal for backups, system updates, and routine maintenance.
Each user can manage their own scheduled tasks using the crontab command. To create or edit your jobs, run crontab -e. To view existing entries, use crontab -l, and crontab -r removes all your cron jobs. A crontab line contains five time fields followed by the command to execute. The fields represent minute (0–59), hour (0–23), day of month (1–31), month (1–12), and day of week (0–7, where 0 and 7 both mean Sunday). An asterisk (*) matches every possible value.
For example, 0 2 * * * /home/user/backup.sh executes the backup script daily at 2:00 AM. You can also use commas for lists, hyphens for ranges, and slashes for steps (e.g., */5 * * * * runs every five minutes). System-wide jobs are often stored in /etc/crontab or the /etc/cron.* directories. Cron logs can be checked via /var/log/syslog or journalctl. With its straightforward syntax, cron makes task automation simple and dependable.
在 Vim 的发展中,有一段格外温暖的插曲。布莱姆是 ICCF 荷兰(一家乌干达儿童救助机构)的长期志愿者,他决定将 Vim 以“慈善软件”的形式发布,鼓励用户向乌干达儿童捐款,而不是向他付费。这个传统延续了几十年,直到 2023 年布莱姆因病去世,社区继续维护 Vim,且至今仍保留着对乌干达儿童的捐款提示。
此外,由于 Vim 代码库年久臃肿,2014 年部分开发者分叉出 Neovim,着力重构架构、引入现代化的异步与嵌入接口,如今已成为 Vim 生态中最活跃的分支。但在无数系统管理员、开发者和极客的心中,在终端里敲下 vim 的瞬间,仍是通向那个高效、纯粹编辑宇宙的大门。
评论
支持两套评论系统,按需切换加载。