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
+8.1k Android Studio : Import third-party library or package into Gradle Scripts
+7.9k Golang : How to check variable or object type during runtime?
+5.4k Cash Flow : 50 days to pay your credit card debt
+21.2k Golang : Use TLS version 1.2 and enforce server security configuration over client
+7.7k Golang : Add build version and other information in executables
+9.1k Golang : Copy map(hash table) example
+18.1k Unmarshal/Load CSV record into struct in Go
+4.8k Golang : Issue HTTP commands to server and port example
+7.1k Golang : Gorrila set route name and get the current route name
+4.7k Python : Create Whois client or function example
+4.8k JavaScript/JQuery : Redirect page examples