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
+8k Golang : Reverse a string with unicode
+19.5k Golang : Get RGBA values of each image pixel
+5.4k Golang : Get FX sentiment from website example
+15.6k Golang : invalid character ',' looking for beginning of value
+22.5k Golang : Read directory content with filepath.Walk()
+36.6k Golang : How to split or chunking a file to smaller pieces?
+13k Golang : Convert int(year) to time.Time type
+8.2k Golang : Sort words with first uppercase letter
+16.1k Golang : Read large file with bufio.Scanner cause token too long error
+8.9k Golang : How to join strings?
+7k Golang : Calculate BMI and risk category
+9.1k Golang : Inject/embed Javascript before sending out to browser example