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 : How to use Gorilla webtoolkit context package properly
+26.1k Golang : Convert integer to binary, octal, hexadecimal and back to integer
+4k Golang : Customize scanner.Scanner to treat dash as part of identifier
+5.1k AWS S3 : Prevent Hotlinking policy
+12.2k Golang : Image to ASCII art example
+14.3k Golang : How to add color to string?
+7.8k Golang : Get final balance from bit coin address example
+12.4k Golang : Get dimension(width and height) of image file
+18.3k Golang : How to Set or Add Header http.ResponseWriter?
+18.6k Golang : Append content to a file
+7.1k Swift : Convert (cast) String to Float
+12.4k Golang : Set image canvas or background to transparent