<?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://yanlinlin.cn/tags/linux/</link>
    <description>颜林林博士的个人主页 - 生物信息学专家、精准医疗研究者、AI/LLM应用探索者。20多年编程经验，专注高通量组学数据分析、临床肿瘤基因检测、大模型在生物信息学领域的应用。分享技术探索、学术思考、生活感悟，记录那些“不靠谱”却有趣的发现。</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <managingEditor>linlin.yan@bioinfo.app (颜林林)</managingEditor>
    <webMaster>linlin.yan@bioinfo.app (颜林林)</webMaster>
    <lastBuildDate>Sun, 31 May 2026 13:15:00 +0800</lastBuildDate>
    <atom:link href="https://yanlinlin.cn/tags/linux/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Linux chmod 权限位详解：SUID、SGID、Sticky Bit 及 ACL</title>
      <link>https://yanlinlin.cn/2026/05/31/linux-chmod-permissions-suid-sgid-sticky-acl/</link>
      <pubDate>Sun, 31 May 2026 13:15:00 +0800</pubDate>
      <guid>https://yanlinlin.cn/2026/05/31/linux-chmod-permissions-suid-sgid-sticky-acl/</guid>
      <description>从 rwx 和八进制讲起，重点说清 SUID、SGID、Sticky Bit 三位的真实行为：为什么 SUID 对目录和脚本无效，以及共享目录该用 SGID 配 ACL。</description>
      
      <category>技术</category>
      
      
      
      <category>Linux</category>
      
      <category>chmod</category>
      
      <category>权限</category>
      
      <category>SUID</category>
      
      <category>SGID</category>
      
      <category>Sticky Bit</category>
      
      <category>ACL</category>
      
      
    </item>
    
    <item>
      <title>管道与命令返回值</title>
      <link>https://yanlinlin.cn/2024/08/04/pipeline-command-return-values/</link>
      <pubDate>Sun, 04 Aug 2024 00:14:50 +0800</pubDate>
      <guid>https://yanlinlin.cn/2024/08/04/pipeline-command-return-values/</guid>
      <description>管道里中间那条命令失败了，$? 却只报最后一条的状态，据此判断成败会误判。改用 PIPESTATUS 数组逐个取退出码，任何一个非 0 就该报错并终止流程。</description>
      
      <category>公众号, 技术</category>
      
      
      
      <category>Linux</category>
      
      <category>Shell</category>
      
      <category>编程</category>
      
      <category>bash</category>
      
      
    </item>
    
    <item>
      <title>将AWS S3挂载到本地目录使用</title>
      <link>https://yanlinlin.cn/2024/07/31/aws-s3-mount-local-directory/</link>
      <pubDate>Wed, 31 Jul 2024 01:45:11 +0800</pubDate>
      <guid>https://yanlinlin.cn/2024/07/31/aws-s3-mount-local-directory/</guid>
      <description>用 s3fs 把 S3 桶挂成本地目录：从源码编译安装，凭证写进隐藏文件并改好权限，挂载失败就去系统日志里搜 s3fs；再写进 fstab 自动挂载，中国区还得单加区域参数。</description>
      
      <category>技术</category>
      
      
      
      <category>Linux</category>
      
      <category>AWS</category>
      
      <category>S3</category>
      
      <category>s3fs</category>
      
      
    </item>
    
    <item>
      <title>关于bash变量的使用技巧</title>
      <link>https://yanlinlin.cn/2024/07/30/bash-variable-usage-tips/</link>
      <pubDate>Tue, 30 Jul 2024 14:07:16 +0800</pubDate>
      <guid>https://yanlinlin.cn/2024/07/30/bash-variable-usage-tips/</guid>
      <description>用一个 VAR=aaabbbccc 的例子把 bash 的变量展开过一遍：缺省值的几种写法、正负下标切片、去前后缀、全局替换，注释里逐条标出结果，最后提醒去翻 man bash 的对应章节。</description>
      
      <category>技术</category>
      
      
      
      <category>Linux</category>
      
      <category>bash</category>
      
      <category>变量</category>
      
      <category>脚本编程</category>
      
      
    </item>
    
    <item>
      <title>《只是为了好玩：Linux之父林纳斯自传》书评</title>
      <link>https://yanlinlin.cn/2023/03/27/book-review-just-for-fun-linus-torvalds-autobiography/</link>
      <pubDate>Mon, 27 Mar 2023 08:00:00 +0800</pubDate>
      <guid>https://yanlinlin.cn/2023/03/27/book-review-just-for-fun-linus-torvalds-autobiography/</guid>
      <description>把林纳斯自传当修仙爽文读：一个芬兰少年造出 Linux 和 Git，那句 I am your God 听来错愕，细想却毫不夸张。Just for Fun 的态度，也提醒步入中年的我别迷失在忙碌和茫然里。</description>
      
      <category>书评</category>
      
      
      
      <category>响马读书</category>
      
      <category>自传</category>
      
      <category>Linux</category>
      
      <category>开源</category>
      
      <category>技术</category>
      
      
    </item>
    
    <item>
      <title>如何用Linux命令删除空行 | 技巧</title>
      <link>https://yanlinlin.cn/2022/02/18/how-to-remove-empty-lines-with-linux-commands-tips/</link>
      <pubDate>Fri, 18 Feb 2022 23:48:00 +0800</pubDate>
      <guid>https://yanlinlin.cn/2022/02/18/how-to-remove-empty-lines-with-linux-commands-tips/</guid>
      <description>删空行的八种写法及逐条解释：sed 的 /^$/d、grep 的点号与 -v、tr -s 合并换行、awk 的 NF 和 $1、perl 的 -ne 与改掉 $/。末尾留了个思考题：把连续空行压成一行该怎么做。</description>
      
      <category>公众号</category>
      
      
      
      <category>技巧</category>
      
      <category>Linux</category>
      
      <category>sed</category>
      
      <category>awk</category>
      
      <category>perl</category>
      
      
    </item>
    
    <item>
      <title>使用Linux命令进行拼图</title>
      <link>https://yanlinlin.cn/2021/01/12/using-linux-commands-for-image-tiling/</link>
      <pubDate>Tue, 12 Jan 2021 19:34:52 +0800</pubDate>
      <guid>https://yanlinlin.cn/2021/01/12/using-linux-commands-for-image-tiling/</guid>
      <description>用 convert 的 +append 与 -append 拼图，两行命令。</description>
      
      
      
      <category>linux</category>
      
      <category>image-magik</category>
      
      
    </item>
    
    <item>
      <title>释伴：脚本解释器定义行</title>
      <link>https://yanlinlin.cn/2020/03/16/shebang-script-interpreter-definition-line/</link>
      <pubDate>Mon, 16 Mar 2020 08:51:40 +0800</pubDate>
      <guid>https://yanlinlin.cn/2020/03/16/shebang-script-interpreter-definition-line/</guid>
      <description>用小实验证明执行脚本时 shell 只是把定义行里的命令拼到前面，顺带讲了可移植写法。</description>
      
      
      
      <category>shebang</category>
      
      <category>linux</category>
      
      <category>scripts</category>
      
      
    </item>
    
    <item>
      <title>从数据到结论，需要特别谨慎</title>
      <link>https://yanlinlin.cn/2020/03/11/from-data-to-conclusion-requires-special-caution/</link>
      <pubDate>Wed, 11 Mar 2020 10:01:22 +0800</pubDate>
      <guid>https://yanlinlin.cn/2020/03/11/from-data-to-conclusion-requires-special-caution/</guid>
      <description>一篇报道拿 NVD 数据断言 Debian 是二十年里漏洞最多的系统。对照德国那篇反驳才发现，Windows 按版本分开算、Debian 却把二十年累加，可信数据照样能演绎出误导结论。</description>
      
      
      
      <category>数据分析</category>
      
      <category>客观性</category>
      
      <category>Linux</category>
      
      <category>安全性</category>
      
      
    </item>
    
    <item>
      <title>Linux交换分区的调优</title>
      <link>https://yanlinlin.cn/2020/03/05/linux-swap-partition-tuning/</link>
      <pubDate>Thu, 05 Mar 2020 08:48:48 +0800</pubDate>
      <guid>https://yanlinlin.cn/2020/03/05/linux-swap-partition-tuning/</guid>
      <description>新装的系统跑大程序就卡，查下来瓶颈卡在磁盘读写，才想起交换分区没调。缺省 swappiness 是 60，桌面机通常压到 10；3.5 以上内核设 0 等于禁用，想兼顾就设 1。</description>
      
      
      
      <category>linux</category>
      
      <category>swappiness</category>
      
      <category>memory</category>
      
      
    </item>
    
    <item>
      <title>理解Linux下的硬链接与软链接</title>
      <link>https://yanlinlin.cn/2020/03/05/understanding-hard-links-and-soft-links-in-linux/</link>
      <pubDate>Thu, 05 Mar 2020 07:02:12 +0800</pubDate>
      <guid>https://yanlinlin.cn/2020/03/05/understanding-hard-links-and-soft-links-in-linux/</guid>
      <description>从 inode 入手比较 cp、ln、ln -s 与 cp -l 的区别：硬链接共用同一块数据、只多一个计数，软链接不过存了一行路径。再用 mv 操作演示软链接为何会断，末尾顺带讲了 unlink 的来历。</description>
      
      
      
      <category>linux</category>
      
      <category>hard link</category>
      
      <category>soft link</category>
      
      <category>inode</category>
      
      
    </item>
    
    <item>
      <title>如何恢复Linux误删文件</title>
      <link>https://yanlinlin.cn/2020/02/12/how-to-recover-accidentally-deleted-files-in-linux/</link>
      <pubDate>Wed, 12 Feb 2020 19:06:00 +0800</pubDate>
      <guid>https://yanlinlin.cn/2020/02/12/how-to-recover-accidentally-deleted-files-in-linux/</guid>
      <description>一条 rm 把数百个重要文件从 4TB 硬盘上抹掉了，立即取消挂载防覆盖，再用 foremost 按文件类型扫分区。文末又拿镜像文件把整个恢复流程重演一遍。</description>
      
      
      
      <category>linux</category>
      
      <category>restore</category>
      
      <category>deleted</category>
      
      
    </item>
    
    <item>
      <title>如何在Linux下查看网卡带宽</title>
      <link>https://yanlinlin.cn/2020/01/23/how-to-check-network-card-bandwidth-in-linux/</link>
      <pubDate>Thu, 23 Jan 2020 17:52:33 +0800</pubDate>
      <guid>https://yanlinlin.cn/2020/01/23/how-to-check-network-card-bandwidth-in-linux/</guid>
      <description>查网卡带宽：ethtool 加网卡名，筛出 Speed 那一行。</description>
      
      
      
      <category>linux</category>
      
      <category>network</category>
      
      
    </item>
    
    <item>
      <title>解决Linux系统升级后R包加载失败的问题</title>
      <link>https://yanlinlin.cn/2020/01/02/solving-r-package-loading-failure-after-linux-system-upgrade/</link>
      <pubDate>Thu, 02 Jan 2020 20:30:42 +0800</pubDate>
      <guid>https://yanlinlin.cn/2020/01/02/solving-r-package-loading-failure-after-linux-system-upgrade/</guid>
      <description>系统升级后 R 包找不到依赖库，改为把所有缺失的库一次批量补齐。</description>
      
      <category>技术</category>
      
      
      
      <category>r</category>
      
      <category>linux</category>
      
      <category>ldd</category>
      
      
    </item>
    
    <item>
      <title>如何解决Linux下解压缩zip文件出现乱码的问题</title>
      <link>https://yanlinlin.cn/2019/12/11/how-to-solve-encoding-issues-when-extracting-zip-files-on-linux/</link>
      <pubDate>Wed, 11 Dec 2019 21:16:09 +0800</pubDate>
      <guid>https://yanlinlin.cn/2019/12/11/how-to-solve-encoding-issues-when-extracting-zip-files-on-linux/</guid>
      <description>Windows 传来的 zip 一解压，中文文件名就乱码，试过环境变量和第三方工具都不管用。最终两步解决：指定 GBK 字符集解压且不做转码，再给目录加写权限，用 convmv 把名字从 GBK 转成 UTF-8。</description>
      
      
      
      <category>unzip</category>
      
      <category>encoding</category>
      
      <category>linux</category>
      
      
    </item>
    
    <item>
      <title>快速跟踪程序执行进度</title>
      <link>https://yanlinlin.cn/2018/08/05/quick-tracking-program-execution-progress/</link>
      <pubDate>Sun, 05 Aug 2018 22:59:54 +0800</pubDate>
      <guid>https://yanlinlin.cn/2018/08/05/quick-tracking-program-execution-progress/</guid>
      <description>以前在循环里插一行打印，定时输出计数；现在一条 pv 就够：把输入喂给它，加 -l 按行计数，再交给处理程序。往下还能让 strace 配合过滤，动态数出某个函数被调了多少次。</description>
      
      
      
      <category>编程</category>
      
      <category>进度跟踪</category>
      
      <category>Linux</category>
      
      <category>命令行</category>
      
      
    </item>
    
    <item>
      <title>Gentoo初识</title>
      <link>https://yanlinlin.cn/2013/09/22/first-acquaintance-with-gentoo/</link>
      <pubDate>Sun, 22 Sep 2013 09:58:00 +0800</pubDate>
      <guid>https://yanlinlin.cn/2013/09/22/first-acquaintance-with-gentoo/</guid>
      <description>用了三年 Gentoo，读完 ebuild 才算真的入门。</description>
      
      <category>技术</category>
      
      
      
      <category>Gentoo</category>
      
      <category>Linux</category>
      
      
    </item>
    
    <item>
      <title>用命令行进行大小写替换</title>
      <link>https://yanlinlin.cn/2013/08/21/case-conversion-with-command-line/</link>
      <pubDate>Wed, 21 Aug 2013 07:16:00 +0800</pubDate>
      <guid>https://yanlinlin.cn/2013/08/21/case-conversion-with-command-line/</guid>
      <description>把全大写文件名转成小写，tr 比 sed 顺手，配 mv 循环即可。</description>
      
      
      
      <category>命令行</category>
      
      <category>Linux</category>
      
      <category>Mac</category>
      
      
    </item>
    
  </channel>
</rss>
