Skip to content

Linux Commands

expr Command in Linux

Summary

The expr command evaluates expressions and prints the result to standard output. It's a versatile tool for performing arithmetic, string manipulation, and logical operations within shell scripts or on the command line.

gzip: Compressing Files on Linux

Summary

gzip is a command-line utility used for compressing files to reduce their storage size. It uses the Lempel-Ziv coding (LZ77) algorithm. It's a quick and easy way to create compressed archives, saving disk space and bandwidth when transferring files.

comm Command in Linux

Summary

The comm command is used to compare two sorted files line by line. It displays lines unique to the first file, lines unique to the second file, and lines common to both files.