I was reading php functions and I came across symlink but I really couldnt grab it specially its usage in real world application developement. Can anybody please explain me with real world example?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Let’s assume you have a
srcfolder in your$HOMEdirectory where your sources are stored. When you open a new shell, you usually enter your$HOMEdirectory when the shell was started. It might be a common step that whenever you open up a new shell, you want to enter the directory~/src/very_long_project_nameafterwards.This is where symlinks come into play: you could create a symlink in your
$HOMEdirectory (for example calledvlpnthat directly points to~/src/very_long_project_name.When you open your console next time, you could simply type
cd vlpninstead ofcd src/very_long_project_name. That’s it. Nothing PHP specific. Like giraff and gnur already said.