Open In App

sum command in Linux with Examples

sum command in Linux is used to find checksum and count the blocks in a file. Basically, this command is used to show the checksum and block count for each specified file. When no file is specified then it will read the standard input.

Syntax:



sum [OPTION]... [FILE]...

Example: It will ask for the input of the file we want to calculate the checksum. In the following example, we are calculating the checksum for myfile.txt.



Options:

Article Tags :