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
+11.2k Golang : Create S3 bucket with official aws-sdk-go package
+7.7k Golang : How to handle file size larger than available memory panic issue
+31k Golang : Download file example
+11.6k Golang : Change date format to yyyy-mm-dd
+13.9k Golang : Activate web camera and broadcast out base64 encoded images
+16.1k Golang : Get current time from the Internet time server(ntp) example
+11k PHP : Convert(cast) bigInt to string
+7.5k Golang : File system scanning
+11.9k Golang : How to detect a server/machine network interface capabilities?
+9.6k Golang : Play .WAV file from command line