tar is a command-line tool for creating, viewing, extracting, and compressing archives on Unix and Unix-like systems. It is commonly used to combine multiple files and directories into a single archive for easy transfer, backup or distribution.
The basic syntax of the tar command is as follows: