0

Let's say there is a script in my home folder I would like to use in /etc/cron.* folder or in other system folders. Is there any way how to do it without copying the file to the target location?

Would symlink or hardlink do the job? I tried that out and it seems it's not working. Why not? Permission of symlink and the script seems to be OK.

Thank you for you explanation.

Sebastian
  • 1,238

1 Answers1

1

Every file has 1 hard link. If it doesn't have one, the space it occupies can be overridden. If you make another hard link, the count goes up to 2 without using double the space on the HDD because both hard links point to the same piece of storage space.

That said, there is no original. If you make additional hard links of a file, every one of them is as good as any other one. So make hard links of the files and copy one of each to your destination.

UTF-8
  • 5,910
  • 10
  • 34
  • 68