ls -a lists files with “->” arrow I think they are linked how can I make my new file to change when referenced file is changed?

I have following files: dirA/reference-file.ts dirB/new-file.ts I want new-file.ts to always change its content to match exact content as reference-file.ts when reference is changed. For example when I do ls -a in my dirB I get files with -> operator how can I replicate such behavior? screenshot example: Here is what I tried: I create…

Details