﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>运维部落 &#187; rm</title>
	<atom:link href="http://help.vps12.com/tag/rm/feed" rel="self" type="application/rss+xml" />
	<link>https://help.vps12.com</link>
	<description>分享服务器运维及实践解决方案</description>
	<lastBuildDate>Sat, 25 Jan 2025 07:14:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>误删/usr文件夹解决办法</title>
		<link>https://help.vps12.com/2000.html</link>
		<comments>https://help.vps12.com/2000.html#comments</comments>
		<pubDate>Wed, 10 Jun 2020 11:50:10 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[rm]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2000</guid>
		<description><![CDATA[几个参考资料： http://blog.chinaunix.net/uid-2623904-id-3044156.html http://blog.csdn.net/xyw_blog/article/details/12996969 一般用光盘的救援模式解决，救援模式有什么作用： ◆可以更改root密码； ◆恢复硬盘、文件系统操作； ◆系统启动不来的时候，只能通过救援模式来启动； 进入resume模式。在进入resume模式过程中，会提示你的系统挂载在哪个位置。 一般挂载在/mnt/sysimage目录下。在/mnt/sysimage下有你系统的所有目录和文件，你可以根据你的需要将这些数据拷贝下来。 最后，进入bash模式.由于我是覆盖了我usr下得数据，我只需要覆盖/mnt/sysimage/下得usr目录即可。 cp -r /usr/ /mnt/sysimage/ ls /mnt/sysimage/usr (查看是否复制成功) 重启虚拟机，设置启动顺序。系统就成功修复了。(能使用基本命令) 在另一台与机器A相同的机器B上，使用tar命令将/usr目录打包。然后通过scp传给机器A，在A上将其解压，删除之前用Rescue模式拷贝进来的/usr目录，使用传递过来的usr目录，重启系统，现在可以正常进入系统了。但是存在的问题是，之前在系统中安装的软件需要重新编译安装。]]></description>
		<wfw:commentRss>https://help.vps12.com/2000.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下使用rsync最快速删除海量文件的方法</title>
		<link>https://help.vps12.com/296.html</link>
		<comments>https://help.vps12.com/296.html#comments</comments>
		<pubDate>Tue, 10 Jan 2012 12:43:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[rm]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[删除]]></category>

		<guid isPermaLink="false">http://blog.vps12.com/?p=296</guid>
		<description><![CDATA[在删除数十万个文件时我们常用的删除命令rm -fr * 就不好用了，因为要等待的时间太长。 所以必须要采取一些非常手段。我们可以使用rsysnc来实现快速删除大量文件。 例如我们要删除/delrmdir/ 目录。那我们按以下步骤来操作。 1、先安装rsync： ?View Code SHELL1 yum install rsync 2、建立一个空的文件夹： ?View Code SHELL1 mkdir /root/code/ 3、用rsync删除目标目录： ?View Code SHELL1 rsync --delete-before -a -H -v --progress --stats /root/code/ /delrmdir/ 这样我们要删除的delrmdir目录就会被清空了，删除的速度会非常快。]]></description>
		<wfw:commentRss>https://help.vps12.com/296.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
