Files can be compressed in Linux using the "tar" command. The tar command stands for tape archive, and is used to create archives and extract files from archives. The tar command is one of the most important commands in Linux that provides compressing files into archives. Syntax: Options: 1. -c: Creates Archive 2. -x: Extracts the archive 3. -f: Creates Archive with given Filename 4. -t: Displays or Lists the content contained by the archived file 5. -u: Archives and adds to an existing Archive file 6. -v: Displays Verbose Information 7. -A: Concatenates the archived files 8. -z: Zips files and tells tar command to create tar file using gzip 9. -W: Filter an archive file 10. -r: Update of Add file or directory to an already existing .tar file What is an Archive File? An Archive file is a file that is composed of one or more files along with metadata. Archive files are used to collect multiple data files together into a single file for easier portability and storage, or sim...
Comments
Post a Comment