Linux下取消软连接,做个案例来说明:
1.先建立一个软连接
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
[root@rekfan.com test]# ls -il总计 01491138 -rw-r–r– 1 root root 48 07-14 14:17 file11491139 -rw-r–r– 2 root root 0 07-14 14:17 file21491139 -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总计 01491138 -rw-r–r– 1 root root 48 07-14 14:17 file11491140 lrwxrwxrwx 1 root root 5 07-14 14:24 file1soft -> file11491139 -rw-r–r– 2 root root 0 07-14 14:17 file21491139 -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总计 01491138 -rw-r–r– 1 root root 0 07-14 14:17 file11491140 lrwxrwxrwx 1 root root 5 07-14 14:24 file1soft -> file11491139 -rw-r–r– 2 root root 0 07-14 14:17 file21491139 -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总计 01491138 -rw-r–r– 1 root root 0 07-14 14:17 file11491139 -rw-r–r– 2 root root 0 07-14 14:17 file21491139 -rw-r–r– 2 root root 0 07-14 14:17 file2hand删除软链接
确实是用rm 但是!!! |
1万+

被折叠的 条评论
为什么被折叠?



