http://en.wikipedia.org/wiki/Tee_%28command%29
Doesn't work in Windows CMD but luckily for you it works in Windows PowerShell, e.g.
Code: Select all
powershell /c "echo hello | tee D:\log.txt"
http://en.wikipedia.org/wiki/Hard_link#Example
Long story short, you can see any normal file as hardlink, if you create another hardlink, there'll just be another one, with a different path, but on disk it'll be the same exact data, two files that are actually one and the same, hence there is no original file. There is data on the disk and two files pointing to it. Only if you delete both files will the OS free the data on disk.