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
+12.8k Golang : How to check if your program is running in a terminal
+3.8k Nginx and PageSpeed build from source CentOS example
+5.9k Swift : substringWithRange() function example
+5.6k Golang : Skip or discard items of non-interest when iterating example
+7.6k Golang : How to find out similarity between two strings with Jaro-Winkler Distance?
+16.7k Golang : Convert IPv4 address to decimal number(base 10) or integer
+7.4k Golang : Convert word to its plural form example
+5.3k Golang : Extract sub-strings
+19.2k Golang : Pipe output from one os.Exec(shell command) to another command
+5k Golang : Compound interest over time example
+14k Golang : Force download file example
+39.2k Golang : How to count duplicate items in slice/array?