I'm looking for a command that behaves both likecp -alin only creating hard links rather than copying file contents, andrsync -a --deletein removing files from the destination that are not present in the source. I've looked into rsync options related to hard links, but they don't seem able to only create hard links.Does such a command exist on Linux?
Linux command to copy as hard links, while deleting unwanted files?
rsync;cp;file copy;hard link