加入收藏 | 设为首页 | Life家族 | SCMLife | RMLife | PMLife | SQALife | TESTLife | 企业VIP专区 | 中文化荣誉殿堂
 
发新话题
打印

[求助] ln创建的符号链接用什么命令删除?( 此文章被查看:2684次,被回复:5篇!! )

ln创建的符号链接用什么命令删除?

如题, 我在同一个库中的不同文件夹下创建了一个符号链接.

例: dir1/tools  (tools 是个目录)
    dir2 下也需要tools,并且和dir1下一样.

因此,用命令 ln 创建了一个符号链接,
现想把此符号链接删除, 应该用什么命令那??

非常感谢^_^



© 本文为 37968SCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

直接将dir2下的文件给delete掉就好了阿:)



© 本文为 lingdSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

如果ln是OS的命令,unlink或者rm

如果ln是CC的命令,rmelem



© 本文为 zixiu2008SCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

rmelem 会不会练源目录下的文件也会删掉那?? 害怕所以不敢删

© 本文为 37968 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

试一下就知道了,不会的

© 本文为 zixiu2008 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

Man手册对rmelem的解释

For each symbolic link, rmelem does the following:

Removes the symbolic link and link object from the VOB.
Removes all metadata (attributes and hyperlinks) attached to the symbolic link .
Removes all event records for the symbolic link.
Removes all references to the symbolic link from versions of the VOB's directory elements. (As a result, subsequent listings and comparisons of those directory versions will be historically inaccurate.)
Note: rmelem does not create an event record when you remove a symbolic link.

rmelem deletes only the instance of an element type object that is attached to the element. To delete the element type object or to delete the type object and all its instances, use the rmtype command.


希望今后此类问题不要再问,直接查手册

© 本文为 懂你 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员
优惠购买Rational,Telelogic,Hansky产品,企业VIP服务、实施
VIP服务电话:13581809377

TOP

发新话题