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
+10.2k Golang : Identifying Golang HTTP client request
+12.5k Golang : Flush and close file created by os.Create and bufio.NewWriter example
+46.3k Golang : Read tab delimited file with encoding/csv package
+40.2k Golang : UDP client server read write example
+6.8k Golang : Skip or discard items of non-interest when iterating example
+26k Golang : Daemonizing a simple web server process example
+20.5k Golang : Determine if directory is empty with os.File.Readdir() function
+8.3k Golang : Add build version and other information in executables
+8.4k Useful methods to access blocked websites
+7.9k Golang : Scan files for certain pattern and rename part of the files
+10.7k Golang : Create matrix with Gonum Matrix package example
+5.3k Python : Convert(cast) string to bytes example