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
+9.4k Golang : Underscore string example
+16.7k Golang : Convert IPv4 address to decimal number(base 10) or integer
+20.9k Golang : Read directory content with filepath.Walk()
+3.8k Golang : Experimental Jawi programming language
+16.7k Golang : Get command line arguments
+3.8k Golang : Get a list of crosses(instruments) available to trade from Oanda account
+13.2k Golang : On enumeration
+5.6k Golang : Derive cryptographic key from passwords with Argon2
+6.3k Golang : File system scanning
+21.5k Golang : Get ASCII code from a key press(cross-platform) example
+22.1k Golang : Fix type interface{} has no field or no methods and type assertions example
+26k Golang : Convert integer to binary, octal, hexadecimal and back to integer