首页 > 系统服务 > 详细

Linux2.6软链接、硬链接

时间:2017-10-25 22:03:43      阅读:317      评论:0      收藏:0      [点我收藏+]

软连接文件

[root@chy002 ~]# ls -l /bin
lrwxrwxrwx. 1 root root 7 10月 17 06:15 /bin -> usr/bin
[root@chy002 ~]# /bin/ls
anaconda-ks.cfg
[root@chy002 ~]# /usr/bin/ls
anaconda-ks.cfg

  软连接命令

ln -s   源文件    软链接文件
[root@chy002 ~]# ls -lsa /etc/yum.log    #文件
0 lrwxrwxrwx 1 root root 12 10月 26 05:34 /etc/yum.log -> /tmp/yum.log
[root@chy002 ~]# ls -lsa /etc/chy           #目录
0 lrwxrwxrwx 1 root root 8 10月 26 05:35 /etc/chy -> /tmp/chy
#做软连接要用绝对路径

Linux2.6软链接、硬链接

原文:http://www.cnblogs.com/chyuanliu/p/7732543.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!