Compression Commands

Duration: 10 min

This video lesson is available to enrolled students.

Return to /learn/BTSC-LAB-ASSISTANT/software-and-hardware-tools/linux-os/essential-commands/asset-compression-commands after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. About Course: BTSC About Course
  2. Basics of Computer Science: Basics of COA, Number System, Number Representation
  3. Operating System: Introduction to OS, Process Management, CPU Scheduling, Process Synchronization, Threads & Process Creation, Deadlock, Memory Management, Virtual Memory
  4. Data Structures & Algorithms: Introduction to DS, Array, Stack, Queue, Linked List, Tree, Graphs, Hashing, Algorithm Analysis, Time Complexity Analysis, Sorting Algorithms
  5. Database Management Systems(DBMS): Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), Relational Algebra, SQL, Transaction Management, Concurrency Control, Database Recovery
  6. Networking and Internet: Introduction to CN, Data Communication, Net Layer: IPv4 & Proto, Net Layer: IP Addressing, Application Layer, Hardware Basics, Network Access Technologies, Network Security
  7. Cyber Security Basics: Cyber Threats and Malware Attacks, Role of Internet and Web Services, Electronic Data Interchange and E-Commerce, Cyber Safety and Security
  8. C Programming (Programming Fundamentals): C Fundamentals, Control Flow, Functions, Arrays & Pointers, Storage Classes, Structures & Enums, DMA, Macros, Scoping & File Handling
  9. C++, OOPs & Java (Programming Fundamentals): Java, OOPS with C++
  10. Python (Programming Fundamentals): Introduction to Python, Tokens, Variables, Data Types, I/O, Operators & Expressions, Control Flow & Looping, Collections & Strings, Functions & Modules
  11. Web Development Basics: Internet Fundamentals, Web Design & Development, Protocols & Services, Web Publishing & Hosting, Server Side & Security, Emerging Technologies, JavaScript-Basics, HTML Basics
  12. Software Engineering: Fundamentals of Software Engineering, Software Requirements and Quality Assurance, Software Design, Estimation and Metrics, Software Testing
  13. Software and Hardware Tools: MS Office Applications, Unix OS, Linux OS
  14. Emerging Trends. AI & Social Ethics: Artificial Intelligence, Emerging Tech Trends, Society, Law & Ethics
  15. Full Mock Test:
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This lecture introduces Linux compression commands and additional useful terminal utilities. It begins by explaining tar and gzip, showing how to create archives with tar -cvf, extract them with tar -xvf or tar -xf, and compress files using gzip. The instructor annotates the meaning of flags such as c for create, v for verbose, and f for archive file. The lesson then covers gunzip, zip, and unzip for decompressing .gz files and managing ZIP archives. Finally, it transitions to additional useful commands including tee, wc, sort, cut, uniq, echo $?, lsusb, and tcpdump, with terminal examples demonstrating their outputs.

Chapters

  1. 0:00 – 2:00 00:00-02:00

    The opening slide titled 'Compression Commands' presents tar and gzip examples. The instructor highlights the -cvf flag in tar -cvf archive.tar /home/user/documents, explaining that c creates an archive, v enables verbose output, and f specifies the archive file. The extraction command tar -xf or tar -xvf archive.tar is shown with red annotations indicating how to unpack the archive. A note at the bottom explains combining tar and gzip using -czvf for compressed archives, as in tar -czvf archive.tar.gz /path/to/dir.

  2. 2:00 – 5:00 02:00-05:00

    The lecture continues with gzip file.txt, showing the resulting compressed output file.txt.gz and using ls -l to verify size reduction. The instructor underlines key terms in the purpose column for both tar and gzip, emphasizing that gzip compresses a single file into .gz format. The segment then transitions to a new table listing gunzip, zip, and unzip commands. gunzip is described as decompressing .gz files and restoring them to their original format, while zip creates a ZIP archive of files or directories and unzip extracts files from a ZIP archive.

  3. 5:00 – 9:46 05:00-09:46

    The lesson moves to a slide titled 'Additional Useful Commands,' presenting tee, wc, sort, and cut. tee reads from standard input and writes output to both a file and the screen; wc -l -w -c file.txt prints line, word, and byte counts; sort names.txt sorts lines alphabetically or numerically; and cut -d',' -f1,3 data.csv extracts specific fields from CSV data. The final table covers uniq -c for counting repeated lines, echo $? for displaying the exit status of the previous command, lsusb for listing USB devices, and tcpdump for network packet capture. Red annotations highlight flags and output values throughout.

The lecture progresses from basic compression to broader terminal utilities. Central concepts include tar's flag-based syntax, where c, v, and f control creation, verbosity, and file specification. The combination of tar with gzip via -czvf is a key practical skill for creating compressed archives. gunzip, zip, and unzip extend compression management to .gz and ZIP formats. The additional commands section shifts focus from file compression to text processing and system inspection: tee for dual output, wc for counting, sort for ordering, cut for field extraction, uniq -c for frequency counts, echo $? for exit codes, lsusb for hardware enumeration, and tcpdump for network analysis. The teaching method relies on structured tables pairing each command with its purpose and a terminal example, supplemented by red handwritten annotations that break down flags and outputs. This approach supports exam revision by linking command syntax to observable results.

Loading lesson…