Checking symbolic links
A symbolic link looks like a normal file, but the actual file is in a different directory. To check whether a file is a symbolic link or not, run the ls command with the “-l” option.
|[root@Lion ~]# ls -l /etc/rc.d/rc0.d|
lrwxrwxrwx 1 root root 17 Oct 5 10:36 E001sample -> ../init.d/sample*
The symbolic link is to the normal file “E001sample”, which is a symbolic link to “. /init.d/sample”.