Linux/MacOSX : How to symlink a file?
Problem :
How to create a symbolic link for a file?
NOTE :
A symbolic link, is a low-level pointer that is written into the file system on your hard drive ... pointing to the actual file or directory. It is not a short cut.
Solution :
Under Mac OS X and Linux, you can create a symbolic link by using the command “ln -s [source] [destination]”. For example :
ln -s /path/to/sourcefile /symlink/path/to/destination
Additional note for Windows, use the mklink command :
mklink /d \MyDocs \Users\User1\Documents
Reference :
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+14.6k Chrome : ERR_INSECURE_RESPONSE and allow Chrome browser to load insecure content
+8.5k Golang : Detect number of active displays and the display's resolution
+5.3k Golang : Convert Chinese UTF8 characters to Pin Yin
+8.5k Golang : Web(Javascript) to server-side websocket example
+4.5k Golang : The Tao of importing package
+6k Golang : Muxing with Martini example
+9.1k Golang : Translate language with language package example
+33.4k Golang : Converting a negative number to positive number
+14.3k Golang : Get timezone offset from date or timestamp
+44.6k Golang : Read tab delimited file with encoding/csv package
+10.7k Golang : Simple file scaning and remove virus example
+11.6k Golang : Arithmetic operation with numerical slices or arrays example