How to hash files in Linux?

How many times have you needed to get the hash of any file in Linux? For whatever purpose you have needed to do that, rest assured that there is a set of commands that will make your life easier. These commands are part of Linux core utils. MD5 md5sum <file_name> SHA-1 sha1sum <file_name> SHA-256 sha256sum <file_name> SHA-384 sha384sum <file_name> SHA-512 …