软链接与硬链接
软链接
[yiki ~] echo "hello world" > helloworld //创建原文件
[yiki ~] ln -s helloworld shelloworld //创建软链接
[yiki ~] cat shelloworld
hello world
[yiki ~] rm helloworld
[yiki ~] cat shelloworld //删除原文件后软链接文件也被删除
cat: shelloworld: No such file or directory
硬链接
[yiki ~] echo "hello world" > helloworld //创建原文件
[yiki ~] ln helloworld shelloworld
[yiki ~] cat shelloworld
hello world
[yiki ~] rm helloworld
[yiki ~] cat shelloworld //删除原文件后硬链接问文件还在
hello world