You are not logged in.
I been asking this at an interview today.
What do you think are some practical methods that can be used to ensure that two files, which may have same creation date and same size in bytes, are different files?
I was trying to answer it based on different densities that those two may have.
What do you think are some other options? This question made me curious about this.
Last edited by kdar (2013-03-07 18:44:18)
Offline
Checksum
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Checksum
I completely forgot about this.
Are there any other methods?
Last edited by kdar (2013-03-07 20:00:06)
Offline
cmp
Offline
diff (will tell you if they are different even if they are binary)
file
modification time, owner/group, permissions, ACLs - these won't tell you the file content is different but then the creation time wouldn't do that, either.
Last edited by cfr (2013-03-08 02:50:36)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline