How to view the file hash value in Linux?
You can use the following command on Linux to view the hash value of a file:
- MD5 hash value:
- Generate the MD5 checksum for the file path.
- SHA1 hash value:
- Generate the SHA1 checksum for the file at the specified path.
- SHA256 hash value:
- Calculate the SHA256 checksum of a file.
- SHA512 hash value:
- Calculate the SHA-512 checksum of a file.
For example, to view the MD5 hash value of the file /path/to/file.txt, you can run the following command:
md5sum /path/to/file.txt
Please note that the hash value outputted above is represented in hexadecimal format.