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
+10.6k Golang : Handle API query by curl with Gorilla Queries example
+10k Google Maps URL parameters configuration
+25.7k Golang : Convert CSV data to JSON format and save to file
+25.9k PHP : Count number of JSON items/objects
+4.5k How to check with curl if my website or the asset is gzipped ?
+12.8k Golang : Chunk split or divide a string into smaller chunk example
+6.4k Golang : Rename part of filename
+7.5k Golang : How to find out similarity between two strings with Jaro-Winkler Distance?
+5.5k Golang : How to validate ISBN?
+4.4k Golang : Generate Interleaved 2 inch by 5 inch barcode
+11.3k Golang : Remove or trim extra comma from CSV
+8.6k Golang : How to check if a website is served via HTTPS