cp vs mv: which to use when replacing a file
cp overwrites by default and writes into the same inode. mv swaps in a new one. See what that means for hardlinks and single-file Docker bind mounts.
Filtering by topic #inodes · clear
cp overwrites by default and writes into the same inode. mv swaps in a new one. See what that means for hardlinks and single-file Docker bind mounts.
An inode is the record a file name points to. Learn what it holds, read it with ls -i and stat, count inodes with df -i, and see why ext4 fixes the ratio.