sum command in Linux with Examples Read Courses Practice Improve Improve Improve Like Article Like Save Article Save Report issue Report 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: sum -r: This option will use BSD sum algorithm, use 1K blocks. Example: sum -r myfile.txt sum -s: This option will use System V sum algorithm, use 512 bytes blocks. Example: sum -s myfile.txt sum –help : This option displays the help text and exit. sum --help sum –version : This option will show the version information and exit. sum --version Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now! Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore. Last Updated : 27 May, 2019 Like Article Save Article Previous tac command in Linux with Examples Next How to Compress Files in Linux | Tar Command Share your thoughts in the comments Add Your Comment Please Login to comment...