[zjx@localhost ~]$ su root
Password:
[root@localhost zjx]# cd /
[root@localhost /]# ls
afs bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys test test1 tmp usr var
[root@localhost /]# mkdir test2
[root@localhost /]# ls
afs bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys test test1 test2 tmp usr var
[root@localhost /]# touch /test2/a
[root@localhost /]# ls /test2/
a
[root@localhost test2]# ln /test2/a a.hard
[root@localhost test2]# ls
a a.hard
[root@localhost test2]# ln /test2/a a.soft
[root@localhost test2]# ls
a a.hard a.soft
[root@localhost test2]# cat a a.soft a.hard
[root@localhost test2]# echo 123 > a
[root@localhost test2]# echo 234 > a.soft
[root@localhost test2]# echo 345 > a.hard
[root@localhost test2]# cat a a.soft a.hard
345
345
345
[root@localhost test2]# rm -f a
[root@localhost test2]# touch /test2/a
[root@localhost test2]# ls
a a.hard a.soft
[root@localhost test2]# cat a a.soft a.hard
345
345