Friday, June 3

Quick Linux Question: How do I create a symbolic link file?


Question:

How do I create a symbolic link file?





Answer:    use "ln -s"

The Linux file system has the possibility to create symbolic link files. Symbolic link files are a lot like Microsoft Window's shortcut files. That they create a file at a specific location which is actually located in a different location. The most common reason for creating a symbolic linked file is so you can have a binary file accessible from multiple locations without having to actually duplicate the binary file.



ln -s /usr/local/bin/node /usr/bin/node

This command creates a symbolic link file of the current user's locally installed Node.js, and puts that linked file in the global users bin folder. This way all the users on the system can have access to Node.js even though it is only installed once.




--help


0 comments :

Post a Comment