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
+5.9k Golang : Get missing location after unmarshal binary and gob decode time.
+47.7k Golang : How to convert JSON string to map and slice
+5.3k PHP : Fix Call to undefined function curl_init() error
+15.3k Golang : How to convert(cast) IP address to string?
+22.6k Golang : simulate tail -f or read last line from log file example
+14k Golang : syscall.Socket example
+6.6k Golang : Get expvar(export variables) to work with multiplexer
+19.7k Golang : How to run your code only once with sync.Once object
+14.5k Golang : Find commonalities in two slices or arrays example
+5.9k Golang : Get Hokkien(福建话)/Min-nan(閩南語) Pronounciations
+14.4k Golang : Get URI segments by number and assign as variable example
+26.5k Golang : Convert file content into array of bytes