<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[太极淘的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/taoxicun</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; taoxicun]]></copyright><item><title><![CDATA[shell脚本中$*与$@的区别]]></title><link>https://blog.csdn.net/taoxicun/article/details/156096930</link><guid>https://blog.csdn.net/taoxicun/article/details/156096930</guid><author>taoxicun</author><pubDate>Fri, 19 Dec 2025 21:05:39 +0800</pubDate><description><![CDATA[*：将所有位置参数合并为一个字符串，参数之间用IFS（内部字段分隔符，默认是空格）分隔。$@：将每个位置参数作为独立的字符串，完整保留每个参数的边界（即使参数含空格）。$*和$@不加双引号时行为一致，都会拆分参数边界，不推荐使用。加双引号时，"$@"保留每个参数的独立边界（核心推荐用法），"$*"合并所有参数为一个字符串。实际开发中，处理脚本/函数的位置参数，优先使用"$@"以避免参数含空格时的错误。]]></description><category></category></item><item><title><![CDATA[Ubuntu怎么查看命令由哪个包安装的？]]></title><link>https://blog.csdn.net/taoxicun/article/details/156095237</link><guid>https://blog.csdn.net/taoxicun/article/details/156095237</guid><author>taoxicun</author><pubDate>Fri, 19 Dec 2025 19:03:29 +0800</pubDate><description><![CDATA[在 Ubuntu 系统中，查看某个命令由哪个软件包安装的，主要可以使用 dpkg和 command -v组合，或者专用工具 dlocate/ apt-file。]]></description><category></category></item><item><title><![CDATA[银河麒麟桌面操作系统禁用笔记本内置摄像头]]></title><link>https://blog.csdn.net/taoxicun/article/details/156023633</link><guid>https://blog.csdn.net/taoxicun/article/details/156023633</guid><author>taoxicun</author><pubDate>Wed, 17 Dec 2025 17:27:04 +0800</pubDate><description><![CDATA[此处，以上命令的输出结果显示为“[ 3.436818] uvcvideo 1-2:1.0: Entity type for entity Camera 1 was not initialized”。以上命令的输出结果中“uvcvideo”，为当前操作系统使用的摄像头驱动程序。添加完成后，按“Esc”键盘退出文本编辑模式，再输入“:wq”保存退出。步骤2：再运行如下命令，可临时禁用笔记本内置摄像头。步骤1：使用dmesg命令查找摄像头驱动程序。步骤1：使用lsmod命令查找摄像头驱动程序。]]></description><category></category></item><item><title><![CDATA[银河麒麟桌面操作系统USB存储设备禁用]]></title><link>https://blog.csdn.net/taoxicun/article/details/156023584</link><guid>https://blog.csdn.net/taoxicun/article/details/156023584</guid><author>taoxicun</author><pubDate>Wed, 17 Dec 2025 17:26:16 +0800</pubDate><description><![CDATA[dracut  /boot/initramfs-$(uname  -r).img   $(uname  -r)         //生成新的启动文件。步骤1.在/etc/modprobe.d/目录下新建blacklist.conf文件，然后在里面加入两行。(uname  -r).img_bak       //备份系统原有的文件。步骤2.保存退出，运行update-initramfs  -u。因为某些要求，需要禁用USB存储设备。]]></description><category></category></item><item><title><![CDATA[银河麒麟桌面操作系统禁用无线网卡的几种方法]]></title><link>https://blog.csdn.net/taoxicun/article/details/156023251</link><guid>https://blog.csdn.net/taoxicun/article/details/156023251</guid><author>taoxicun</author><pubDate>Wed, 17 Dec 2025 17:19:15 +0800</pubDate><description><![CDATA[按“i”键编辑输入，在该文件最后面添加一行“iface wlo1 inet manaual”内容（其中“wlo1”需替换成想要禁用的无线网卡名称），再按“Esc”键盘退出文本编辑模式，再输入“:wq”保存退出。按“i”键编辑输入，在该文件最后面添加一行“blacklist iwlwifi”内容后，按“Esc”键盘退出文本编辑模式，再输入“:wq”保存退出。步骤2：在终端执行以下命令，修改/etc/modprobe.d/blacklist.conf文件。步骤1：打开终端，执行以下命令，查看无线网卡名称。]]></description><category></category></item><item><title><![CDATA[du和df统计不一致排查思路]]></title><link>https://blog.csdn.net/taoxicun/article/details/155281127</link><guid>https://blog.csdn.net/taoxicun/article/details/155281127</guid><author>taoxicun</author><pubDate>Wed, 26 Nov 2025 19:03:10 +0800</pubDate><description><![CDATA[du统计目录下每个文件的size并累计展示；而df则是读取的文件系统的超级块信息并展示。区别df展示的是单个文件系统的信息；而du可能会跨文件系统统计。]]></description><category></category></item><item><title><![CDATA[麒麟桌面系统找不到mbr启动，并重新安装grub]]></title><link>https://blog.csdn.net/taoxicun/article/details/151418977</link><guid>https://blog.csdn.net/taoxicun/article/details/151418977</guid><author>taoxicun</author><pubDate>Wed, 10 Sep 2025 19:59:09 +0800</pubDate><description><![CDATA[根据你提供的情况，，这通常是由于导致的。你可以按照以下步骤。]]></description><category></category></item><item><title><![CDATA[pam_tally2解锁用户]]></title><link>https://blog.csdn.net/taoxicun/article/details/151417632</link><guid>https://blog.csdn.net/taoxicun/article/details/151417632</guid><author>taoxicun</author><pubDate>Wed, 10 Sep 2025 19:51:02 +0800</pubDate><description><![CDATA[在 Linux 系统中，当用户因登录失败次数过多被pam_tally2。]]></description><category></category></item><item><title><![CDATA[通过libguestfs工具修改qcow2镜像中文件]]></title><link>https://blog.csdn.net/taoxicun/article/details/151417327</link><guid>https://blog.csdn.net/taoxicun/article/details/151417327</guid><author>taoxicun</author><pubDate>Wed, 10 Sep 2025 19:50:16 +0800</pubDate><description><![CDATA[1、虚机安装cloud-init软件，但是没修改配置与启动cloud-init.service服务。6、可按需修改cloud.cfg配置，最后设置cloud.service服务开机自动启动。3、在宿主机安装libguestfs工具，支持服务器和桌面系统下安装。8、开机验证，cloud-init.service自启动成功。通过libguestfs工具修改qcow2镜像中文件。5、使用guestmount挂载qcow2镜像。7、修改完成后卸载挂载镜像。4、查看镜像中分区状态。]]></description><category></category></item><item><title><![CDATA[使用命令centos把普通用户设置为管理员]]></title><link>https://blog.csdn.net/taoxicun/article/details/151417063</link><guid>https://blog.csdn.net/taoxicun/article/details/151417063</guid><author>taoxicun</author><pubDate>Wed, 10 Sep 2025 19:46:47 +0800</pubDate><description><![CDATA[在 CentOS 中，将普通用户设置为管理员（拥有 root 权限），通常是通过将用户添加到wheel组来实现的（wheel组是默认具有 sudo 权限的管理员组）。]]></description><category></category></item><item><title><![CDATA[设置开机自动执行 shell 脚本]]></title><link>https://blog.csdn.net/taoxicun/article/details/151416411</link><guid>https://blog.csdn.net/taoxicun/article/details/151416411</guid><author>taoxicun</author><pubDate>Wed, 10 Sep 2025 19:44:53 +0800</pubDate><description><![CDATA[在 CentOS 中设置开机自动执行 shell 脚本，有几种主流方式，具体选择取决于你的系统版本（CentOS 7/8/Stream 使用 systemd，而 CentOS 6 及更早版本使用 SysV init）。]]></description><category></category></item><item><title><![CDATA[麒麟桌面操作系统 设置变化的时候，怎么监测到变化值以及更改项？]]></title><link>https://blog.csdn.net/taoxicun/article/details/151415826</link><guid>https://blog.csdn.net/taoxicun/article/details/151415826</guid><author>taoxicun</author><pubDate>Wed, 10 Sep 2025 19:40:52 +0800</pubDate><description><![CDATA[如果需要持久化记录所有变化（包括时间、配置项、旧值、新值），可以结合脚本将监控结果写入日志文件。可以监控更底层的配置路径变化，支持通配符匹配。部分应用（如浏览器、办公软件）的配置可能不通过。命令可以实时跟踪指定配置项的变化，直接输出。的底层配置系统，所有桌面设置最终都存储在。管理，而是存储在各自的配置文件中（如。### 方法4：针对特定应用的配置监测。#### 示例脚本（]]></description><category></category></item><item><title><![CDATA[使用脚本一键更新NTP服务器地址为自定义地址]]></title><link>https://blog.csdn.net/taoxicun/article/details/151415041</link><guid>https://blog.csdn.net/taoxicun/article/details/151415041</guid><author>taoxicun</author><pubDate>Wed, 10 Sep 2025 19:36:04 +0800</pubDate><description><![CDATA[在银河麒麟桌面操作系统V10SP1-2303版本中使用脚本一键修改NTP服务器地址为自定义地址。步骤1. 编写shell脚本。]]></description><category></category></item><item><title><![CDATA[bash shell中readarray和mapfile的用法]]></title><link>https://blog.csdn.net/taoxicun/article/details/148657918</link><guid>https://blog.csdn.net/taoxicun/article/details/148657918</guid><author>taoxicun</author><pubDate>Sat, 14 Jun 2025 20:40:15 +0800</pubDate><description><![CDATA[readarray和mapfile是在Bash shell里把输入内容读取到数组的便捷命令，借助不同的选项，你可以灵活控制读取的行数、起始索引、是否去掉换行符等。readarray和mapfile是Bash中用于将输入内容读取到数组中的命令，以下是一些具体的使用场景及示例。]]></description><category></category></item><item><title><![CDATA[shell脚本打包成可以在麒麟桌面操作系统上使用的deb包]]></title><link>https://blog.csdn.net/taoxicun/article/details/148343976</link><guid>https://blog.csdn.net/taoxicun/article/details/148343976</guid><author>taoxicun</author><pubDate>Fri, 30 May 2025 19:53:22 +0800</pubDate><description><![CDATA[以下是将.sh的 shell 脚本打包成可以在麒麟桌面操作系统上使用的.deb。]]></description><category></category></item><item><title><![CDATA[audit日志轮训保留180天的日志，按天保存]]></title><link>https://blog.csdn.net/taoxicun/article/details/148343950</link><guid>https://blog.csdn.net/taoxicun/article/details/148343950</guid><author>taoxicun</author><pubDate>Fri, 30 May 2025 19:50:46 +0800</pubDate><description><![CDATA[[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS 说明： 1. BIOS -------返回此结果，说明是BIOS方式启动的 2. UEFI -------返回此结果，说明是UEFI方式启动的 或者执行lsblk，查看是否有/boot/efi，如果有/boot/efi分区则表示UEFI方式启动，如果没有则表示BIOS方式启动。-r-------- 1 root root 96241  5月 29 19:20 audit.log-20250529。]]></description><category></category></item><item><title><![CDATA[bash shell中readarray和mapfile的用法]]></title><link>https://blog.csdn.net/taoxicun/article/details/147849409</link><guid>https://blog.csdn.net/taoxicun/article/details/147849409</guid><author>taoxicun</author><pubDate>Sat, 10 May 2025 11:05:39 +0800</pubDate><description><![CDATA[readarray和mapfile是在Bash shell里把输入内容读取到数组的便捷命令，借助不同的选项，你可以灵活控制读取的行数、起始索引、是否去掉换行符等。readarray和mapfile是Bash中用于将输入内容读取到数组中的命令，以下是一些具体的使用场景及示例。]]></description><category></category></item><item><title><![CDATA[银河麒麟桌面V10-SP1-2303操作系统V10加固手册]]></title><link>https://blog.csdn.net/taoxicun/article/details/147849054</link><guid>https://blog.csdn.net/taoxicun/article/details/147849054</guid><author>taoxicun</author><pubDate>Sat, 10 May 2025 11:02:15 +0800</pubDate><description><![CDATA[Defaults!通过之前的命令只可更改当前已存在的账户的密码有效期，为了保障以后新建立的账户也可遵循相应的密码有效期规则，需要修改相应的配置文件。default=ignore：若该模块执行出现除成功以外的其他情况（如失败等），则会忽略此模块的结果，继续执行后续的认证模块。success=3：当pam_unix.so模块验证成功时，会跳过接下来的 3 个模块，直接执行之后的认证模块。pam_unix.so：这是 PAM 的一个模块，用于进行传统的 Unix 风格的密码认证。]]></description><category></category></item><item><title><![CDATA[麒麟桌面操作系统各个版本对应源地址]]></title><link>https://blog.csdn.net/taoxicun/article/details/147411303</link><guid>https://blog.csdn.net/taoxicun/article/details/147411303</guid><author>taoxicun</author><pubDate>Tue, 22 Apr 2025 10:35:52 +0800</pubDate><description><![CDATA[]]></description><category></category></item><item><title><![CDATA[shell脚本-变量、位置变量]]></title><link>https://blog.csdn.net/taoxicun/article/details/147407710</link><guid>https://blog.csdn.net/taoxicun/article/details/147407710</guid><author>taoxicun</author><pubDate>Tue, 22 Apr 2025 09:01:44 +0800</pubDate><description><![CDATA[位置变量（Positional Parameters）是 Shell 脚本中用于处理命令行参数的一种特殊变量。这些变量使得脚本可以从命令行接收输入，并根据输入执行相应的操作。位置变量是 Shell 脚本中用来访问命令行参数的特殊变量。注意，等号两边不能有空格。]]></description><category></category></item></channel></rss>