<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Bash on Hex Blog</title><link>https://hex-go.github.io/categories/bash/</link><description>Recent content in Bash on Hex Blog</description><generator>Hugo -- gohugo.io</generator><language>zh</language><managingEditor>hex-py@gmail.com (Hex)</managingEditor><webMaster>hex-py@gmail.com (Hex)</webMaster><copyright>©2026, All Rights Reserved</copyright><lastBuildDate>Mon, 28 Aug 2023 22:05:32 +0000</lastBuildDate><atom:link href="https://hex-go.github.io/categories/bash/index.xml" rel="self" type="application/rss+xml"/><item><title>sudo echo 重定向报权限拒绝的原因与处理</title><link>https://hex-go.github.io/posts/kubernetes/2023-08-28-k8s%E9%83%A8%E7%BD%B2%E5%AE%9E%E5%BD%95-4-sudo%E6%8F%90%E6%9D%83echo%E5%90%8E%E7%9A%84%E9%87%8D%E5%AE%9A%E5%90%91%E6%93%8D%E4%BD%9C%E7%AC%A6%E4%BC%9A%E6%8A%A5%E6%9D%83%E9%99%90%E6%8B%92%E7%BB%9D%E9%94%99%E8%AF%AF/</link><pubDate>Mon, 28 Aug 2023 22:05:32 +0000</pubDate><author>hex-py@gmail.com (Hex)</author><atom:modified>Mon, 28 Aug 2023 22:05:32 +0000</atom:modified><guid>https://hex-go.github.io/posts/kubernetes/2023-08-28-k8s%E9%83%A8%E7%BD%B2%E5%AE%9E%E5%BD%95-4-sudo%E6%8F%90%E6%9D%83echo%E5%90%8E%E7%9A%84%E9%87%8D%E5%AE%9A%E5%90%91%E6%93%8D%E4%BD%9C%E7%AC%A6%E4%BC%9A%E6%8A%A5%E6%9D%83%E9%99%90%E6%8B%92%E7%BB%9D%E9%94%99%E8%AF%AF/</guid><description>重要 sudo echo 'xxx' &amp;gt;&amp;gt; /etc/hosts 会报权限拒绝。原因：sudo 只作用于 echo，&amp;gt;&amp;gt; 重定向由当前 shell 以普通用户权限打开文件。 1.简介 Kubelet 集群部署时需要修</description><dc:creator>Hex</dc:creator><category>Sudo</category><category>Bash</category><category>故障排查</category><category>Linux</category><category>Bash</category><category>k8s部署实录</category></item></channel></rss>