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.7k Golang : Fibonacci number generator examples
+17k Google Chrome : Your connection to website is encrypted with obsolete cryptography
+5.6k Cash Flow : 50 days to pay your credit card debt
+5.3k PHP : Convert CSV to JSON with YQL example
+19.6k Golang : Convert(cast) bytes.Buffer or bytes.NewBuffer type to io.Reader
+14.2k Golang : How to filter a map's elements for faster lookup
+6.4k Golang : Warp text string by number of characters or runes example
+4.8k Python : Convert(cast) bytes to string example
+5.9k Golang : Extract XML attribute data with attr field tag example
+13.3k Generate salted password with OpenSSL example
+5.1k Javascript : Shuffle or randomize array example