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
+7.3k Ubuntu : connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream
+7.9k Swift : Convert (cast) String to Double
+7.9k Golang : Generate human readable password
+9.2k Golang : How to capture return values from goroutines?
+38.2k Golang : Converting a negative number to positive number
+10.1k Golang : Read file and convert content to string
+5.9k Javascript : How to replace HTML inside <div>?
+4.7k Javascript : Detect when console is activated and do something about it
+30.5k Golang : How to redirect to new page with net/http?
+26.8k Golang : How to check if a connection to database is still alive ?
+14.9k Golang : Normalize unicode strings for comparison purpose
+8.7k Golang : Set or add headers for many or different handlers