Linux怎么取消软链接
来源:互联网 发布:php session memcached 编辑:程序博客网 时间:2024/05/17 01:49
Linux下取消软连接,做个案例来说明:
1.先建立一个软连接
1
2
3
4
5
6
7
8
9
10
11
12
13
[root@rekfan.com
test
]
# ls -il
总计 0
1491138 -rw-r–r– 1 root root 48 07-14 14:17 file1
1491139 -rw-r–r– 2 root root 0 07-14 14:17 file2
1491139 -rw-r–r– 2 root root 0 07-14 14:17 file2hand
#建立file1和file1soft软连接
[root@rekfan.com
test
]
# ln -s file1 file1soft
[root@rekfan.com
test
]
# ls -il
总计 0
1491138 -rw-r–r– 1 root root 48 07-14 14:17 file1
1491140 lrwxrwxrwx 1 root root 5 07-14 14:24 file1soft -> file1
1491139 -rw-r–r– 2 root root 0 07-14 14:17 file2
1491139 -rw-r–r– 2 root root 0 07-14 14:17 file2hand
2.删除上面建立的软连接
1
2
3
4
5
6
7
8
9
10
11
12
13
[root@rekfan.com
test
]
# ls -il
总计 0
1491138 -rw-r–r– 1 root root 0 07-14 14:17 file1
1491140 lrwxrwxrwx 1 root root 5 07-14 14:24 file1soft -> file1
1491139 -rw-r–r– 2 root root 0 07-14 14:17 file2
1491139 -rw-r–r– 2 root root 0 07-14 14:17 file2hand
#删除软连接
[root@rekfan.com
test
]
# rm -rf file1soft
[root@rekfan.com
test
]
# ls -il
总计 0
1491138 -rw-r–r– 1 root root 0 07-14 14:17 file1
1491139 -rw-r–r– 2 root root 0 07-14 14:17 file2
1491139 -rw-r–r– 2 root root 0 07-14 14:17 file2hand
删除软链接 确实是用rm 但是!!!
rm -fr xxxx/ 加了个/ 这个是删除文件夹
rm -fr xxxx 没有/ 这个是删除软链接
阅读全文
0 0
- Linux怎么取消软链接
- Linux怎么取消软链接
- linux 取消软链接
- linux定时执行任务后怎么取消
- linux定时执行任务后怎么取消
- linux socket用setsockopt设置了超时之后怎么取消
- css取消链接下划线
- jquery 取消链接虚线
- 怎么取消桌面图标阴影
- CMFCMenubar 怎么取消伸缩
- linux链接文件--软链接,硬链接
- linux链接--硬链接,软链接
- linux 硬链接 软链接
- Linux 软链接 硬链接
- linux 硬链接,软链接
- Linux硬链接 软链接
- linux硬链接 软链接
- linux-硬链接&软链接
- 实习时 自己项目组的项目所需要了解的以及如何提高自己
- 归并排序详解(python实现)
- webpack打包js调试配置
- 单链表排序----快排 & 归并排序
- 插入排序
- Linux怎么取消软链接
- 关于String类
- js模块化编程
- Gif动态图片库--GifView的基本使用
- 小甲鱼PE结构详解课件相关链接
- UVa 118|Mutant Flatworld Explorers|
- (23)jdbc三
- pdf全功能转换器破解版
- 帮你解决VMware pro升级到14后留下的坑-----报错:无法连接 MKS: 套接字连接尝试次数太多;正在放弃