Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

Checking symbolic links

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
total 0
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”.
タイトルとURLをコピーしました