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
+33.2k Delete a directory in Go
+6.9k Golang : Find the longest line of text example
+15k Golang : Find commonalities in two slices or arrays example
+6.5k Unix/Linux : Use netstat to find out IP addresses served by your website server
+9.2k Golang : Get SPF and DMARC from email headers to fight spam
+11.8k Golang : Gorilla web tool kit secure cookie example
+13k Golang : Convert int(year) to time.Time type
+7.2k Golang : constant 20013 overflows byte error message
+9.1k Golang : GMail API create and send draft with simple upload attachment example
+11.1k Golang : Replace a parameter's value inside a configuration file example
+22.2k Fix "Failed to start php5-fpm.service: Unit php5-fpm.service is masked."
+5.5k Gogland : Datasource explorer