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
+6.1k CodeIgniter : form input set_value cause " to become & quot
+14.6k Golang : How to check for empty array string or string?
+9.9k Golang : Check a web page existence with HEAD request example
+10.7k Golang : Create Temporary File
+7.6k Golang : Regular Expression find string example
+4.8k Golang : Display packages names during compilation
+6k Golang : Calculate US Dollar Index (DXY)
+8.6k Golang : GMail API create and send draft with simple upload attachment example
+5k Golang : Calculate half life decay example
+28.9k Golang : missing Git command
+7k Golang : Dealing with postal or zip code example
+11.7k Golang : Determine if time variables have same calendar day