How to manually hardlink multiple files to point to one single file. This will drastically help you if you have multiple files that are all the same because instead of editing all of the files you just need to edit one.
This is the command that I ran
#find . -name ‘FiletoFind.txt’ -exec ln -f newfile_hardlink.txt {} \;
FiletoFind.txt is the file name that you want to search for. newFile_hardlink.txt is the file you want all the files to look at after they are found.
I then executed,
#ls -alh newFile_hardlink.txt
This will show you how many files you hardlinked to that one file.
After doing this for a work project I got, -rw-r–r– 4031 dcameron apache 1.3K Dec 15 18:45 newFile_hardlink.txt
Wow, four thousand files that I just saved myself from editing.
