Search code examples
linuxsymlink

symbolic link a source folder and save files in the target folder


I want to make a symbolc link from source Folder to Target Folder, such that all the files that are directed to be saved in source Folder should be saved in Target folder. Such that the files are actually stored in Target folder and only there symlinks are created in the source folder


Solution

  • To create symbolic link of src folder to target folder , From src folder,open the terminal and type the below command,

    ln -s src_folder [directory path]target_folder
    

    For example:

    ln -s src_folder /home/usr/target_folder