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
+5.7k Golang : Shortening import identifier
+6k Golang : Shuffle array of list
+6.9k Android Studio : Hello World example
+5.4k Golang : Return multiple values from function
+17.9k Golang : Iterate linked list example
+9.8k Golang : interface - when and where to use examples
+9.2k Golang : Intercept and compare HTTP response code example
+6.6k Golang : Totalize or add-up an array or slice example
+8.6k Linux/Unix : fatal: the Postfix mail system is already running
+38k Golang : Converting a negative number to positive number
+5.4k Golang : Reclaim memory occupied by make() example
+15.8k Golang : Get checkbox or extract multipart form data value example