<?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 CialloKing 的博客</title>
    <link>https://cialloking.com/categories/linux/</link>
    <description>Recent content from CialloKing 的博客</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    
    <managingEditor>xxx@example.com (CialloKing)</managingEditor>
    <webMaster>xxx@example.com (CialloKing)</webMaster>
    
    <copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright>
    
    <lastBuildDate>Fri, 01 May 2026 00:00:00 +0800</lastBuildDate>
    
    
    <atom:link href="https://cialloking.com/categories/linux/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>【Linux】10 - 进程间通信</title>
      <link>https://cialloking.com/post/linux10---%E8%BF%9B%E7%A8%8B%E9%97%B4%E9%80%9A%E4%BF%A1/</link>
      <pubDate>Wed, 22 Apr 2026 00:00:00 &#43;0800</pubDate>
      <author>xxx@example.com (CialloKing)</author>
      <guid>https://cialloking.com/post/linux10---%E8%BF%9B%E7%A8%8B%E9%97%B4%E9%80%9A%E4%BF%A1/</guid>
      <description>
        <![CDATA[<h1>【Linux】10 - 进程间通信</h1><p>作者：CialloKing（xxx@example.com）</p>
        
          <h1 id="进程间通信">
<a class="header-anchor" href="#%e8%bf%9b%e7%a8%8b%e9%97%b4%e9%80%9a%e4%bf%a1"></a>
进程间通信
</h1><h2 id="进程间通信介绍">
<a class="header-anchor" href="#%e8%bf%9b%e7%a8%8b%e9%97%b4%e9%80%9a%e4%bf%a1%e4%bb%8b%e7%bb%8d"></a>
进程间通信介绍
</h2><h3 id="进程间通信目的">
<a class="header-anchor" href="#%e8%bf%9b%e7%a8%8b%e9%97%b4%e9%80%9a%e4%bf%a1%e7%9b%ae%e7%9a%84"></a>
进程间通信目的
</h3><p>进程之间相互独立，当需要多个进程相互协作时必定需要进程间通信。</p>
<ul>
<li>数据传输：一个进程需要将它的数据发送给另一个进程。</li>
<li>资源共享：多个进程之间共享同样的资源。</li>
<li>通知事件：一个进程需要向另一个或一组进程发送消息，通知它（它们）发生了某种事件（如进程终正时要通知父进程）。</li>
<li>进程控制：有些进程希望完全控制另一个进程的执（如Debug进程），此时控制进程希望能够拦截另一个进程的所有陷入和异常，并能够及时知道它的状态改变。</li>
</ul>
<h3 id="进程间通信的方式">
<a class="header-anchor" href="#%e8%bf%9b%e7%a8%8b%e9%97%b4%e9%80%9a%e4%bf%a1%e7%9a%84%e6%96%b9%e5%bc%8f"></a>
进程间通信的方式
</h3><p>进程间通信（IPC,Inter-Process Communication）是指运行在同一台计算机或不同计算机上的多个进程之间进行数据交换和通信的技术。由于每个进程都有自己的地址空间，它们无法直接访问彼此的数据，因此需要通过特定的机制来实现通信。IPC是操作系统和多进程编程中的一个重要概念，广泛应用于分布式系统、多任务操作系统以及各种应用程序之间，IPC 是实现多进程协作的基础。</p>
        
        <hr><p>本文2026-04-22首发于<a href='https://cialloking.com/'>CialloKing 的博客</a>，最后修改于2026-05-01</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
    

    <item>
      <title>【Linux】11 - 进程信号</title>
      <link>https://cialloking.com/post/linux11---%E8%BF%9B%E7%A8%8B%E4%BF%A1%E5%8F%B7/</link>
      <pubDate>Wed, 29 Apr 2026 00:00:00 &#43;0800</pubDate>
      <author>xxx@example.com (CialloKing)</author>
      <guid>https://cialloking.com/post/linux11---%E8%BF%9B%E7%A8%8B%E4%BF%A1%E5%8F%B7/</guid>
      <description>
        <![CDATA[<h1>【Linux】11 - 进程信号</h1><p>作者：CialloKing（xxx@example.com）</p>
        
          <h1 id="进程信号">
<a class="header-anchor" href="#%e8%bf%9b%e7%a8%8b%e4%bf%a1%e5%8f%b7"></a>
进程信号
</h1><p>信号和信号量是什么关系？关系就相当于老婆和老婆饼，Java和JavaScript，雷锋和雷峰塔，印度和印度尼西亚，总之就是毫无关系。</p>
        
        <hr><p>本文2026-04-29首发于<a href='https://cialloking.com/'>CialloKing 的博客</a>，最后修改于2026-05-01</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
    

    <item>
      <title>【Linux】09 - 库制作与原理</title>
      <link>https://cialloking.com/post/linux09---%E5%BA%93%E5%88%B6%E4%BD%9C%E4%B8%8E%E5%8E%9F%E7%90%86/</link>
      <pubDate>Sun, 19 Apr 2026 00:00:00 &#43;0800</pubDate>
      <author>xxx@example.com (CialloKing)</author>
      <guid>https://cialloking.com/post/linux09---%E5%BA%93%E5%88%B6%E4%BD%9C%E4%B8%8E%E5%8E%9F%E7%90%86/</guid>
      <description>
        <![CDATA[<h1>【Linux】09 - 库制作与原理</h1><p>作者：CialloKing（xxx@example.com）</p>
        
          <h1 id="库制作与原理">
<a class="header-anchor" href="#%e5%ba%93%e5%88%b6%e4%bd%9c%e4%b8%8e%e5%8e%9f%e7%90%86"></a>
库制作与原理
</h1><h2 id="什么是库">
<a class="header-anchor" href="#%e4%bb%80%e4%b9%88%e6%98%af%e5%ba%93"></a>
什么是库
</h2><p>库是写好的现有的，成熟的，可以复用的代码。现实中每个程序都要依赖很多基础的底层库，不可能每个的代码都从零开始，因此库的存在意义非同寻常。</p>
        
        <hr><p>本文2026-04-19首发于<a href='https://cialloking.com/'>CialloKing 的博客</a>，最后修改于2026-04-21</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
    

    <item>
      <title>【Linux】08 - 文件系统</title>
      <link>https://cialloking.com/post/linux08---%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F/</link>
      <pubDate>Fri, 17 Apr 2026 00:00:00 &#43;0800</pubDate>
      <author>xxx@example.com (CialloKing)</author>
      <guid>https://cialloking.com/post/linux08---%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F/</guid>
      <description>
        <![CDATA[<h1>【Linux】08 - 文件系统</h1><p>作者：CialloKing（xxx@example.com）</p>
        
          <h1 id="文件系统">
<a class="header-anchor" href="#%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f"></a>
文件系统
</h1><p>被打开的文件在内存里，没有打开的文件储存在磁盘上，文件系统的工作就是让我们能找到文件。</p>
<h2 id="磁盘">
<a class="header-anchor" href="#%e7%a3%81%e7%9b%98"></a>
磁盘
</h2><h3 id="磁盘工作原理">
<a class="header-anchor" href="#%e7%a3%81%e7%9b%98%e5%b7%a5%e4%bd%9c%e5%8e%9f%e7%90%86"></a>
磁盘工作原理
</h3><p>机械磁盘是计算机中唯一的一个机械设备，属于外设的一种。</p>
        
        <hr><p>本文2026-04-17首发于<a href='https://cialloking.com/'>CialloKing 的博客</a>，最后修改于2026-04-19</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
    

    <item>
      <title>【Linux】06 - 进程控制</title>
      <link>https://cialloking.com/post/linux06---%E8%BF%9B%E7%A8%8B%E6%8E%A7%E5%88%B6/</link>
      <pubDate>Fri, 10 Apr 2026 00:00:00 &#43;0800</pubDate>
      <author>xxx@example.com (CialloKing)</author>
      <guid>https://cialloking.com/post/linux06---%E8%BF%9B%E7%A8%8B%E6%8E%A7%E5%88%B6/</guid>
      <description>
        <![CDATA[<h1>【Linux】06 - 进程控制</h1><p>作者：CialloKing（xxx@example.com）</p>
        
          <h1 id="进程控制">
<a class="header-anchor" href="#%e8%bf%9b%e7%a8%8b%e6%8e%a7%e5%88%b6"></a>
进程控制
</h1><h2 id="进程创建">
<a class="header-anchor" href="#%e8%bf%9b%e7%a8%8b%e5%88%9b%e5%bb%ba"></a>
进程创建
</h2><h3 id="fork函数">
<a class="header-anchor" href="#fork%e5%87%bd%e6%95%b0"></a>
fork函数
</h3><p>linux中<code>fork</code>函数是非常重要的函数，它从已存在进程中创建一个新进程。新进程为子进程，而原进程为父进程，给子进程返回0，父进程返回子进程pid，创建进程失败返回-1。</p>
        
        <hr><p>本文2026-04-10首发于<a href='https://cialloking.com/'>CialloKing 的博客</a>，最后修改于2026-04-15</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
    

    <item>
      <title>【Linux】07 - 基础IO</title>
      <link>https://cialloking.com/post/linux07---%E5%9F%BA%E7%A1%80io/</link>
      <pubDate>Tue, 14 Apr 2026 00:00:00 &#43;0800</pubDate>
      <author>xxx@example.com (CialloKing)</author>
      <guid>https://cialloking.com/post/linux07---%E5%9F%BA%E7%A1%80io/</guid>
      <description>
        <![CDATA[<h1>【Linux】07 - 基础IO</h1><p>作者：CialloKing（xxx@example.com）</p>
        
          <h1 id="基础io">
<a class="header-anchor" href="#%e5%9f%ba%e7%a1%80io"></a>
基础IO
</h1><h2 id="文件">
<a class="header-anchor" href="#%e6%96%87%e4%bb%b6"></a>
文件
</h2><p>一个大小为0的空文件在磁盘上也要占据空间。文件=内容+属性，虽然内容为空，但是文件的创建时间，权限等属性还是需要存储的，所以还是要占磁盘空间。所有的文件操作本质是文件内容操作和文件属性操作。</p>
        
        <hr><p>本文2026-04-14首发于<a href='https://cialloking.com/'>CialloKing 的博客</a>，最后修改于2026-04-14</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
    

    <item>
      <title>【Linux】05 - 进程概念</title>
      <link>https://cialloking.com/post/linux05---%E8%BF%9B%E7%A8%8B%E6%A6%82%E5%BF%B5/</link>
      <pubDate>Mon, 06 Apr 2026 00:00:00 &#43;0800</pubDate>
      <author>xxx@example.com (CialloKing)</author>
      <guid>https://cialloking.com/post/linux05---%E8%BF%9B%E7%A8%8B%E6%A6%82%E5%BF%B5/</guid>
      <description>
        <![CDATA[<h1>【Linux】05 - 进程概念</h1><p>作者：CialloKing（xxx@example.com）</p>
        
          <h1 id="进程概念">
<a class="header-anchor" href="#%e8%bf%9b%e7%a8%8b%e6%a6%82%e5%bf%b5"></a>
进程概念
</h1><h2 id="冯诺依曼体系结构">
<a class="header-anchor" href="#%e5%86%af%e8%af%ba%e4%be%9d%e6%9b%bc%e4%bd%93%e7%b3%bb%e7%bb%93%e6%9e%84"></a>
冯诺依曼体系结构
</h2><p>我们常见的计算机，如笔记本电脑，学校机房里运行XP系统的电脑。我们不常见的计算机，如服务器等，大部分都遵守冯诺依曼体系。
<img src="/post/linux05---%E8%BF%9B%E7%A8%8B%E6%A6%82%E5%BF%B5/image.webp" alt=""></p>
        
        <hr><p>本文2026-04-06首发于<a href='https://cialloking.com/'>CialloKing 的博客</a>，最后修改于2026-04-10</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
    

    <item>
      <title>【Linux】03 - Linux权限</title>
      <link>https://cialloking.com/post/linux03---linux%E6%9D%83%E9%99%90/</link>
      <pubDate>Mon, 30 Mar 2026 00:00:00 &#43;0800</pubDate>
      <author>xxx@example.com (CialloKing)</author>
      <guid>https://cialloking.com/post/linux03---linux%E6%9D%83%E9%99%90/</guid>
      <description>
        <![CDATA[<h1>【Linux】03 - Linux权限</h1><p>作者：CialloKing（xxx@example.com）</p>
        
          <h1 id="linux权限">
<a class="header-anchor" href="#linux%e6%9d%83%e9%99%90"></a>
Linux权限
</h1><h2 id="shell">
<a class="header-anchor" href="#shell"></a>
shell
</h2><p>操作系统内核会包裹一个外壳程序，统称为shell，外壳程序在内核和用户之间沟通，对于windows系统，外壳程序就是图形化界面，用户通过图形化界面操作系统，外壳程序shell把用户的操作翻译给内核，把内核的处理结果翻译给用户；和windows相似，Linux系统里外壳程序就是命令行界面，用户通过命令行来操作。<br>
shell会创建子进程，让子进程进行命令的解释，如果子进程执行命令出问题了也不影响父进程。</p>
        
        <hr><p>本文2026-03-30首发于<a href='https://cialloking.com/'>CialloKing 的博客</a>，最后修改于2026-04-07</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
    

    <item>
      <title>【Linux】04 - Linux开发工具</title>
      <link>https://cialloking.com/post/linux04---linux%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/</link>
      <pubDate>Tue, 31 Mar 2026 00:00:00 &#43;0800</pubDate>
      <author>xxx@example.com (CialloKing)</author>
      <guid>https://cialloking.com/post/linux04---linux%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/</guid>
      <description>
        <![CDATA[<h1>【Linux】04 - Linux开发工具</h1><p>作者：CialloKing（xxx@example.com）</p>
        
          <h1 id="linux开发工具">
<a class="header-anchor" href="#linux%e5%bc%80%e5%8f%91%e5%b7%a5%e5%85%b7"></a>
Linux开发工具
</h1><h2 id="包管理器">
<a class="header-anchor" href="#%e5%8c%85%e7%ae%a1%e7%90%86%e5%99%a8"></a>
包管理器
</h2><p>Linux中安装软件有三种方法</p>
<ol>
<li>源码安装（编译环境配置复杂，很少使用）</li>
<li>软件包安装（下载打包好的rpm软件包，但是依赖库可能不齐，还需要我们自己下载）</li>
<li>包管理器安装（最常用，自动安装软件和依赖库）</li>
</ol>
<p>包管理器类似手机上的应用商店，选择我们需要的软件就能直接下载。在CentOS系统中，默认的包管理器是yum，ubuntu系统中默认的包管理器是apt。安装软件就是拷贝文件到系统的一些目录内，所以安装时需要root权限。</p>
        
        <hr><p>本文2026-03-31首发于<a href='https://cialloking.com/'>CialloKing 的博客</a>，最后修改于2026-04-05</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
    

    <item>
      <title>【Linux】02 - Linux基础命令</title>
      <link>https://cialloking.com/post/linux02---linux%E5%9F%BA%E7%A1%80%E5%91%BD%E4%BB%A4/</link>
      <pubDate>Sat, 28 Mar 2026 00:00:00 &#43;0800</pubDate>
      <author>xxx@example.com (CialloKing)</author>
      <guid>https://cialloking.com/post/linux02---linux%E5%9F%BA%E7%A1%80%E5%91%BD%E4%BB%A4/</guid>
      <description>
        <![CDATA[<h1>【Linux】02 - Linux基础命令</h1><p>作者：CialloKing（xxx@example.com）</p>
        
          <h1 id="linux基础命令">
<a class="header-anchor" href="#linux%e5%9f%ba%e7%a1%80%e5%91%bd%e4%bb%a4"></a>
Linux基础命令
</h1><h2 id="登录linux">
<a class="header-anchor" href="#%e7%99%bb%e5%bd%95linux"></a>
登录Linux
</h2><h3 id="xshell的下载和使用">
<a class="header-anchor" href="#xshell%e7%9a%84%e4%b8%8b%e8%bd%bd%e5%92%8c%e4%bd%bf%e7%94%a8"></a>
Xshell的下载和使用
</h3><p>假如使用的是云服务器，我们可以使用Xshell这个终端软件来登录Linux。</p>
<p><a href="https://www.xshell.com/zh/free-for-home-school/">点击链接下载</a>Xshell，Xshell是商业软件，个人可免费使用，下载后选择安装目录安装，打开时遇到免费注册的弹窗可填邮箱注册或者点下面的“后来”按钮跳过。</p>
<p>打开Xshell后，输入 <code>ssh root@云服务器的IP</code>，这时会提示输入密码(password)，输入密码时不会在屏幕上显示，输入完了按回车确认，如果不知道密码可在云服务器厂商的控制面板处重置密码后再使用Xshell登录，注意<strong>一定要设置复杂一点的密码</strong>，有黑客会 24 小时不间断扫描所有IP，如果密码过于简单会很容易被黑客破解，黑客进入我们的服务器后会偷偷干坏事，所有<strong>一定要设置复杂的密码</strong>。</p>
        
        <hr><p>本文2026-03-28首发于<a href='https://cialloking.com/'>CialloKing 的博客</a>，最后修改于2026-04-02</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
  </channel>
</rss>
