<?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 技术杂烩</title>
    <link>https://blog.iamdev.cn/tags/Linux/</link>
    <description>Recent content in Linux on 技术杂烩</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <lastBuildDate>Wed, 14 May 2025 07:14:05 +0000</lastBuildDate>
    <atom:link href="https://blog.iamdev.cn/tags/Linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>LinuxMirrors Linux换源和Docker安装利器</title>
      <link>https://blog.iamdev.cn/post/2025/LinuxMirrors-Linux%E6%8D%A2%E6%BA%90%E5%92%8CDocker%E5%AE%89%E8%A3%85%E5%88%A9%E5%99%A8/</link>
      <pubDate>Wed, 14 May 2025 07:14:05 +0000</pubDate>
      <guid>https://blog.iamdev.cn/post/2025/LinuxMirrors-Linux%E6%8D%A2%E6%BA%90%E5%92%8CDocker%E5%AE%89%E8%A3%85%E5%88%A9%E5%99%A8/</guid>
      <description>&lt;h2 id=&#34;linuxmirrorslinux-系统换源神器与-docker-安装利器&#34;&gt;LinuxMirrors：Linux 系统换源神器与 Docker 安装利器&lt;/h2&gt;&#xA;&lt;p&gt;对于 GNU/Linux 用户来说，更新软件是日常操作。然而，国内用户在访问官方软件源时，经常会遇到速度缓慢甚至无法连接的问题。这时，更换为国内的软件源（也称镜像源）就显得尤为重要。同时，对于开发者和运维人员而言，Docker 作为容器化技术的佼佼者，其安装和配置国内镜像源也是常见的需求。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Linux下使用Telnet</title>
      <link>https://blog.iamdev.cn/post/2024/Linux%E4%B8%8B%E4%BD%BF%E7%94%A8Telnet__/</link>
      <pubDate>Fri, 12 Jul 2024 11:14:20 +0800</pubDate>
      <guid>https://blog.iamdev.cn/post/2024/Linux%E4%B8%8B%E4%BD%BF%E7%94%A8Telnet__/</guid>
      <description>&lt;h2 id=&#34;linux下使用telnet&#34;&gt;Linux下使用Telnet&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;前言&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Telnet是连接远程设备的古老协议，通过命令行界面实现远程交互。本文将介绍如何在Linux环境下使用Telnet。需要注意的是，Telnet传输数据为明文，极易被窃听，因此不建议在生产环境中使用。SSH协议是更安全的选择，因为它使用加密来保护数据传输。&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;1. 安装Telnet&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>how to create  virtual disk in memory in ubuntu</title>
      <link>https://blog.iamdev.cn/post/2023/ChatGPT-Create_RAM_Disk_Ubuntu/</link>
      <pubDate>Tue, 28 Mar 2023 02:09:24 +0000</pubDate>
      <guid>https://blog.iamdev.cn/post/2023/ChatGPT-Create_RAM_Disk_Ubuntu/</guid>
      <description>&lt;h4 id=&#34;you&#34;&gt;You:&lt;/h4&gt;&#xA;&lt;p&gt;how to create  virtual disk in memory in ubuntu&lt;/p&gt;&#xA;&lt;h4 id=&#34;chatgpt&#34;&gt;ChatGPT:&lt;/h4&gt;&#xA;&lt;p&gt;You can create a virtual disk in memory (also known as a RAM disk) in Ubuntu by following these steps:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Open the Terminal by pressing &lt;code&gt;Ctrl + Alt + T&lt;/code&gt; or searching for &amp;ldquo;Terminal&amp;rdquo; in the Applications menu.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Install the necessary software by running the following command in the Terminal:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo apt-get install -y tmpfs&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This will install the &lt;code&gt;tmpfs&lt;/code&gt; package, which is necessary to create a RAM disk.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Create a directory where you want to mount the RAM disk. For example, you can create a directory named &amp;ldquo;ramdisk&amp;rdquo; in your home directory by running the following command:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;mkdir ~/ramdisk&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Mount the RAM disk by running the following command:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo mount -t tmpfs -o size=1G tmpfs ~/ramdisk&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This will create a RAM disk with a size of 1GB and mount it to the &amp;ldquo;ramdisk&amp;rdquo; directory.&lt;/p&gt;</description>
    </item>
    <item>
      <title>how to use $ get variable in single quotes string in linux</title>
      <link>https://blog.iamdev.cn/post/2023/ChatGPT-Linux_using__variable/</link>
      <pubDate>Tue, 28 Mar 2023 01:07:24 +0000</pubDate>
      <guid>https://blog.iamdev.cn/post/2023/ChatGPT-Linux_using__variable/</guid>
      <description>&lt;h4 id=&#34;you&#34;&gt;You:&lt;/h4&gt;&#xA;&lt;p&gt;how to use $ get variable in single quote string in linux&lt;/p&gt;&#xA;&lt;h4 id=&#34;chatgpt&#34;&gt;ChatGPT:&lt;/h4&gt;&#xA;&lt;p&gt;In Linux, you can use the $ sign to reference a variable in a single quote string. However, the variable will not be expanded or evaluated inside the single quotes.&lt;/p&gt;&#xA;&lt;p&gt;For example, if you have a variable named &amp;ldquo;myvar&amp;rdquo; with the value &amp;ldquo;hello&amp;rdquo;, and you want to use it inside a single quote string, you can do the following:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;myvar=&amp;#34;hello&amp;#34;&#xA;echo &amp;#39;The value of myvar is: $myvar&amp;#39;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The output will be:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;The value of myvar is: $myvar&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;As you can see, the variable is not expanded inside the single quotes, and the output is just the literal string &amp;ldquo;$myvar&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;If you want to expand the variable inside the single quotes, you can use double quotes instead. For example:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;myvar=&amp;#34;hello&amp;#34;&#xA;echo &amp;#34;The value of myvar is: $myvar&amp;#34;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The output will be:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
