<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Linux on Edward&#39;s Blog</title>
    <link>https://example.org/tags/linux/</link>
    <description>Recent content from Edward&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    
    <managingEditor>xxx@example.com (D-Sketon)</managingEditor>
    <webMaster>xxx@example.com (D-Sketon)</webMaster>
    
    <copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright>
    
    <lastBuildDate>Mon, 07 Sep 2026 10:45:09 +0800</lastBuildDate>
    
    
    <atom:link href="https://example.org/tags/linux/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>Tmux 使用指南</title>
      <link>https://example.org/post/tmux-%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/</link>
      <pubDate>Mon, 07 Sep 2026 10:45:09 &#43;0800</pubDate>
      <author>xxx@example.com (D-Sketon)</author>
      <guid>https://example.org/post/tmux-%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/</guid>
      <description>
        <![CDATA[<h1>Tmux 使用指南</h1><p>作者：D-Sketon（xxx@example.com）</p>
        
          <blockquote>
<p>会话保持、多窗格管理、远程协作的终端复用解决方案</p>
</blockquote>
<h2 id="一tmux-的价值">
<a class="header-anchor" href="#%e4%b8%80tmux-%e7%9a%84%e4%bb%b7%e5%80%bc"></a>
一、Tmux 的价值
</h2><p>Tmux 是一个终端复用器（terminal multiplexer），主要解决以下三类问题：</p>
<ul>
<li><strong>会话持久化</strong>：SSH 连接断开后，运行中的进程不受影响，重新连接可恢复原会话。</li>
<li><strong>多窗格布局</strong>：单个终端窗口内可分割为多个面板，同时查看日志、编辑文件、运行命令。</li>
<li><strong>多人共享</strong>：多个用户可同时附加（attach）到同一会话，实现实时协作调试。</li>
</ul>
<p>终端模拟器（如 iTerm、GNOME Terminal）虽支持多标签页，但其作用域仅限于本地，无法在远程服务器上保持会话状态。Tmux 则运行于服务端，网络中断不影响任务执行。</p>
<h2 id="二核心概念">
<a class="header-anchor" href="#%e4%ba%8c%e6%a0%b8%e5%bf%83%e6%a6%82%e5%bf%b5"></a>
二、核心概念
</h2><p>Tmux 采用三层架构（由大到小）：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-txt" data-lang="txt"><span style="display:flex;"><span>Session（会话）          ← 一个独立的工作环境，可包含多个窗口
</span></span><span style="display:flex;"><span>  └── Window（窗口）     ← 会话中的标签页，可包含多个面板
</span></span><span style="display:flex;"><span>        └── Pane（面板） ← 窗口中被分割出的一个终端区域
</span></span></code></pre></div><table>
	<thead>
			<tr>
					<th>概念</th>
					<th>说明</th>
					<th>类比</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>Session</td>
					<td>一个独立的 Tmux 工作空间</td>
					<td>浏览器窗口</td>
			</tr>
			<tr>
					<td>Window</td>
					<td>会话内的全屏终端</td>
					<td>浏览器标签页</td>
			</tr>
			<tr>
					<td>Pane</td>
					<td>窗口内划分的终端区域</td>
					<td>标签页中的分屏</td>
			</tr>
	</tbody>
</table>
<h2 id="三安装">
<a class="header-anchor" href="#%e4%b8%89%e5%ae%89%e8%a3%85"></a>
三、安装
</h2><p>各主流操作系统下的安装命令：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#75715e"># Ubuntu / Debian</span>
</span></span><span style="display:flex;"><span>sudo apt update <span style="color:#f92672">&amp;&amp;</span> sudo apt install tmux
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># CentOS / RHEL / Fedora</span>
</span></span><span style="display:flex;"><span>sudo yum install tmux
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># macOS（Homebrew）</span>
</span></span><span style="display:flex;"><span>brew install tmux
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Arch Linux</span>
</span></span><span style="display:flex;"><span>sudo pacman -S tmux
</span></span></code></pre></div><p>安装完成后，验证版本：</p>
        
        <hr><p>本文2026-09-07首发于<a href='https://example.org/'>Edward's Blog</a>，最后修改于2026-09-07</p>]]>
      </description>
      
    </item>
    
    

    <item>
      <title>Zsh &#43; Oh My Zsh 完整配置指南：让你的终端焕然一新</title>
      <link>https://example.org/post/zsh-oh-my-zsh-%E5%AE%8C%E6%95%B4%E9%85%8D%E7%BD%AE%E6%8C%87%E5%8D%97%E8%AE%A9%E4%BD%A0%E7%9A%84%E7%BB%88%E7%AB%AF%E7%84%95%E7%84%B6%E4%B8%80%E6%96%B0/</link>
      <pubDate>Tue, 01 Sep 2026 11:23:29 &#43;0800</pubDate>
      <author>xxx@example.com (D-Sketon)</author>
      <guid>https://example.org/post/zsh-oh-my-zsh-%E5%AE%8C%E6%95%B4%E9%85%8D%E7%BD%AE%E6%8C%87%E5%8D%97%E8%AE%A9%E4%BD%A0%E7%9A%84%E7%BB%88%E7%AB%AF%E7%84%95%E7%84%B6%E4%B8%80%E6%96%B0/</guid>
      <description>
        <![CDATA[<h1>Zsh + Oh My Zsh 完整配置指南：让你的终端焕然一新</h1><p>作者：D-Sketon（xxx@example.com）</p>
        
          <blockquote>
<p>如果你还在使用默认的 Bash 终端，那可能错过了许多提升生产力的神器。本文将手把手带你安装、配置 Zsh 及 Oh My Zsh，并集成美观的主题和实用的插件，让你的终端焕然一新。</p>
</blockquote>
<hr>
<h2 id="前言">
<a class="header-anchor" href="#%e5%89%8d%e8%a8%80"></a>
前言
</h2><p>Zsh（Z Shell）是 Bash 的现代替代品，拥有更丰富的自动补全、拼写纠正、主题定制等功能。而 <strong>Oh My Zsh</strong> 则是社区最受欢迎的 Zsh 配置管理框架，提供了海量插件和主题，让配置变得极其简单。本文将面向 Linux 用户（Ubuntu/Debian/Fedora/Arch）提供完整步骤。</p>
<hr>
<h2 id="安装-zsh">
<a class="header-anchor" href="#%e5%ae%89%e8%a3%85-zsh"></a>
安装 Zsh
</h2><h3 id="系统要求">
<a class="header-anchor" href="#%e7%b3%bb%e7%bb%9f%e8%a6%81%e6%b1%82"></a>
系统要求
</h3><ul>
<li>Linux 操作系统（本文以 Ubuntu 20.04/22.04 为例，其他发行版类似）</li>
<li>拥有 <code>sudo</code> 权限</li>
<li>稳定的网络连接（用于下载插件和字体）</li>
</ul>
<h3 id="安装命令">
<a class="header-anchor" href="#%e5%ae%89%e8%a3%85%e5%91%bd%e4%bb%a4"></a>
安装命令
</h3><h4 id="ubuntu--debian">
<a class="header-anchor" href="#ubuntu--debian"></a>
Ubuntu / Debian
</h4><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo apt update <span style="color:#f92672">&amp;&amp;</span> sudo apt upgrade -y
</span></span><span style="display:flex;"><span>sudo apt install zsh git curl wget fontconfig -y
</span></span></code></pre></div><h4 id="fedora">
<a class="header-anchor" href="#fedora"></a>
Fedora
</h4><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo dnf update -y
</span></span><span style="display:flex;"><span>sudo dnf install zsh git curl wget fontconfig -y
</span></span></code></pre></div><h4 id="arch-linux">
<a class="header-anchor" href="#arch-linux"></a>
Arch Linux
</h4><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo pacman -S zsh git curl wget
</span></span></code></pre></div><h3 id="验证并切换默认-shell">
<a class="header-anchor" href="#%e9%aa%8c%e8%af%81%e5%b9%b6%e5%88%87%e6%8d%a2%e9%bb%98%e8%ae%a4-shell"></a>
验证并切换默认 Shell
</h3><p>查看 Zsh 版本：</p>
        
        <hr><p>本文2026-09-01首发于<a href='https://example.org/'>Edward's Blog</a>，最后修改于2026-09-01</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
    

    <item>
      <title>如何解决Linux和Window双系统时间不同步</title>
      <link>https://example.org/post/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3linux%E5%92%8Cwindow%E5%8F%8C%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%97%B4%E4%B8%8D%E5%90%8C%E6%AD%A5/</link>
      <pubDate>Sat, 17 Jan 2026 13:43:03 &#43;0800</pubDate>
      <author>xxx@example.com (D-Sketon)</author>
      <guid>https://example.org/post/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3linux%E5%92%8Cwindow%E5%8F%8C%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%97%B4%E4%B8%8D%E5%90%8C%E6%AD%A5/</guid>
      <description>
        <![CDATA[<h1>如何解决Linux和Window双系统时间不同步</h1><p>作者：D-Sketon（xxx@example.com）</p>
        
          <p>当你在电脑上同时装上 Windows 和 Linux（Ubuntu）双系统时，可能会出现两个系统时间不同步问题。因此，本文将指导如何解决这个问题。</p>
<h3 id="原因">
<a class="header-anchor" href="#%e5%8e%9f%e5%9b%a0"></a>
原因
</h3><p>首先我们要了解一个概念 BIOS 时间，它由主板上的实时时钟（RTC）维护。</p>
<p>时间不同步的原因是 Windows 系统与 Linux 系统对 BIOS 时间的理解不同。</p>
<p>在 Windows 上，BIOS 时间就是当地时间，因此 Windows 会直接显示该时间；而 Linux 则将 BIOS 时间当成 UTC 时间（格林尼治标准时间），因此 Linux 会将在 BIOS 时间基础上加上你本地的时差。</p>
<p>当你启动一个系统时，该系统会对 BIOS 时间进行修改，从而导致另一个系统的时间出现错误。</p>
<h3 id="解决方法">
<a class="header-anchor" href="#%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95"></a>
解决方法
</h3><h4 id="修改-linux-配置适用于以-windows-为主系统">
<a class="header-anchor" href="#%e4%bf%ae%e6%94%b9-linux-%e9%85%8d%e7%bd%ae%e9%80%82%e7%94%a8%e4%ba%8e%e4%bb%a5-windows-%e4%b8%ba%e4%b8%bb%e7%b3%bb%e7%bb%9f"></a>
修改 Linux 配置（适用于以 Windows 为主系统）
</h4><p>这种方式是让 Linux 系统来适配 Windows 的本地时间规则。</p>
<ul>
<li>在 Linux 中打开终端，执行以下命令
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>timedatectl set-local-rtc <span style="color:#ae81ff">1</span> --adjust-system-clock
</span></span></code></pre></div></li>
<li>验证配置是否生效
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>timedatectl
</span></span></code></pre></div>输出中如果出现 RTC in local TZ: yes，就说明配置成功。</li>
</ul>
<h3 id="修改-windows-配置适用于以-linux-为主系统">
<a class="header-anchor" href="#%e4%bf%ae%e6%94%b9-windows-%e9%85%8d%e7%bd%ae%e9%80%82%e7%94%a8%e4%ba%8e%e4%bb%a5-linux-%e4%b8%ba%e4%b8%bb%e7%b3%bb%e7%bb%9f"></a>
修改 Windows 配置（适用于以 Linux 为主系统）
</h3><p>这种方式让 Windows 适配 Linux 的 UTC 规则，需要修改 Windows 注册表。</p>
        
        <hr><p>本文2026-01-17首发于<a href='https://example.org/'>Edward's Blog</a>，最后修改于2026-01-17</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
  </channel>
</rss>
