完全删除目录元素的最简单方法是什么?它的所有子内容都来自VOB? [英] Whats the easiest way to completely remove a directory element & all its sub-contents from VOB?

查看:59
本文介绍了完全删除目录元素的最简单方法是什么?它的所有子内容都来自VOB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所知道的是,先使用 rmelem 删除文件夹,这将导致其所有子元素移动到 lost +找到

What I know is, using rmelem to remove the folder first, and this will cause all of its child elements to be moved to lost+found.

然后,进入丢失+找到,并重复执行 rmelem * ,直到所有元素都被删除。

Then, go into lost+found, and repeatedly execute rmelem * until all of the elements are removed.

还有更好的方法吗?

推荐答案

关于丢失+找到 的技术说明很明确:

The technote about lost+found is quite clear:

如果您 rmelem 一个目录,其所有内容的确会移动到 lost + found ,在该目录中它必须移至 lost + found 。技术说明中添加了以下内容:

if you rmelem a directory, all its content will indeed be moved to lost+found, where it will has to lost+found. The technote adds:


注意:如果从 lost + found 使用 rmelem ,其内容将按照上面第一部分中所述的相同方式移至lost + found。

Note: If a directory element is deleted from lost+found with rmelem, its contents will be moved to lost+found in the same manner described in the first section above.

这就是为什么我总是尝试先 rmelem 文件,然后是目录,以避免旅行的原因(或多次旅行)在 lost + found 中。

That is why I always try to rmelem files first, then directories, in order to avoid a trip (or several trips) in lost+found.

除了我很少 rmelem 任何东西,就像同一技术说明警告的那样:

Except I very rarely rmelem anything, as the same technote warns:


使用 lost + found 目录中的元素或符号链接时,请仔细> rmelem 。

lost + found 在某些情况下通常由不需要的元素和符号链接组成它可以包含在VOB中通过符号链接或硬链接关联的其他元素(即非孤立元素)中的元素。

因此,请勿运行 rmelem 递归地找到 lost + found ,而无需先验证其内容。

Use rmelem carefully when deleting elements or symbolic links from the lost+found directory.
While the content of lost+found typically consists of unwanted elements and symbolic links, in some circumstances it can contain elements that are cataloged elsewhere in the VOB (that is, not orphaned) that are associated by symbolic or hard links.
For this reason, do not run rmelem recursively in lost+found without first verifying it contents.

如果需要保存当前位于 lost + found 中的元素,如上一节中所述,使用 mv 在版本目录中对其进行分类

If you need to save an element that is currently in lost+found, catalog it in a versioned directory using mv as explained in the previous section

实际上,使用ClearCase UCM,几乎不可能 任何元素具有一定的历史记录,因为所有超链接都会危害您(主要与基线有关)。

Actually, with ClearCase UCM, it is almost impossible to rmelem any element with some history, because of all the hyperlink you would compromised (related to baselines mainly).

这篇关于完全删除目录元素的最简单方法是什么?它的所有子内容都来自VOB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆