Create soft links of files and all files under folders in Linux environment

In the Linux environment, when a file needs to be used in multiple places, in order to reduce the overhead of the file occupying memory resources, you can create a soft link to the file to solve this problem.

1. File soft link creation

Command: ln -s filename [source file] filename [soft link file]

2. Create soft links for all files under the folder

Command: ln -s folder [source folder] soft link path [soft link path] -r

Guess you like

Origin blog.csdn.net/qq_36812406/article/details/120100991