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
+50.4k Golang : Disable security check for HTTPS(SSL) with bad or expired certificate
+14.9k Golang : Get all local users and print out their home directory, description and group id
+4.8k Linux : How to set root password in Linux Mint
+15.7k Golang : Get file permission
+8.4k Golang : Progress bar with â character
+4.6k Nginx and PageSpeed build from source CentOS example
+7.1k Golang : Not able to grep log.Println() output
+22.1k Golang : How to read JPG(JPEG), GIF and PNG files ?
+39.2k Golang : Remove dashes(or any character) from string
+7.5k Golang : Trim everything onward after a word
+13.9k Elastic Search : Mapping date format and sort by date
+86k Golang : How to convert character to ASCII and back