Step 1: Check the Size of backup.tar Before Compression bashCopyEditls -lh backup.tar l → Long listing format h → Human-readable sizes (KB, MB, GB) Step 2: Compress backup.tar Using gzip bashCopyEditgzip backup.tar This will compress backup.t...
unzip Command Cheatsheet The unzip command is used to extract files from a ZIP archive. It’s a commonly used utility for decompressing ZIP files in Unix-like systems. Here’s a quick reference guide: Basic Syntax unzip [OPTION]... ZIP_FILE Common Opt...
List comprehension One of the most useful tools in Python is list comprehension. It is a concise and efficient way to create a new list based on the values in an existing iterable object. List comprehensions take the following form: my_list = [expres...
In this blog, we will be learning about how the files and directories are compressed and extracting those files in a Linux environment with some practical exposure. Compression and extraction of files and directories are fundamental computing operati...