其他分享
首页 > 其他分享> > cenos7创建删除软连接ln -s

cenos7创建删除软连接ln -s

作者:互联网

创建软链接

ln -s [源文件或目录] [目标文件或目录]

rm –rf 软链接名称(请注意不要在后面加”/”
例:

[root@master aaa]# ll
total 12
drwxr-xr-x 2 root root 4096 Aug 19 10:06 bb
drwxr-xr-x 2 root root 4096 Aug 19 10:00 cc
drwxr-xr-x 2 root root 4096 Aug 19 09:49 dd
lrwxrwxrwx 1 root root   13 Aug 19 10:07 ee -> /home/aaa/bb/
[root@master aaa]# rm -rf ee
[root@master aaa]# ll
total 12
drwxr-xr-x 2 root root 4096 Aug 19 10:06 bb
drwxr-xr-x 2 root root 4096 Aug 19 10:00 cc
drwxr-xr-x 2 root root 4096 Aug 19 09:49 dd
[root@master aaa]# ln -s /home/aaa/bb/ ./ee
[root@master aaa]# ll
total 12
drwxr-xr-x 2 root root 4096 Aug 19 10:06 bb
drwxr-xr-x 2 root root 4096 Aug 19 10:00 cc
drwxr-xr-x 2 root root 4096 Aug 19 09:49 dd
lrwxrwxrwx 1 root root   13 Aug 19 10:23 ee -> /home/aaa/bb/

标签:删除,Aug,19,ln,drwxr,cenos7,xr,root,4096
来源: https://blog.csdn.net/jiangbenchu/article/details/99714680