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
+13k Golang : Reset buffer example
+5.8k Golang : Takes a plural word and makes it singular
+40.6k Golang : Get hardware information such as disk, memory and CPU usage
+3.5k Adding Skype actions such as call and chat into web page examples
+8.2k Golang : Find correlation coefficient example
+12.5k Golang : How to check if a file is hidden?
+18.4k Golang : Reset or rewind io.Reader or io.Writer
+7.8k Golang : Find the length of big.Int variable example
+11.6k Python : Convert IPv6 address to decimal and back to IPv6
+12.5k Golang : Tutorial on loading GOB and PEM files
+21.1k Golang : Convert Unix timestamp to UTC timestamp
+4.1k Swift : Convert (cast) Float to Int or Int32 value