Module 7 Archiving and Compression

Slides:



Advertisements
Similar presentations
15-583:Algorithms in the Real World
Advertisements

15 Data Compression Foundations of Computer Science ã Cengage Learning.
Data Compression CS 147 Minh Nguyen.
Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall
Image Compression. Data and information Data is not the same thing as information. Data is the means with which information is expressed. The amount of.
Reducing File Sizes. File Formats In this lesson, we will be looking at: How do we measure file size? Why are some files bigger than others? Why should.
File Management Systems
Information loss in compression Skills: none IT concepts: lossy and lossless compression This work is licensed under a Creative Commons Attribution-Noncommercial-
Linux+ Guide to Linux Certification Chapter 12 Compression, System Backup, and Software Installation.
CS 497C – Introduction to UNIX Lecture 13: - The File System Chin-Chih Chang
Linux+ Guide to Linux Certification, Third Edition Chapter 11 Compression, System Backup, and Software Installation.
Introduction to Unix – CS 21 Lecture 14. Lecture Overview Lab Questions Backup schemes Using tar to archive Printing in Unix lpr lpq Lprm Quiz 2.
©Brooks/Cole, 2003 Chapter 15 Data Compression. ©Brooks/Cole, 2003 Realize the need for data compression. Differentiate between lossless and lossy compression.
Further Command line… Nic Bertrand CEH IT Support, GRID & Bioinformatics.
Chapter 11 Compression, System Backup, and Software Installation.
MCB Lecture #3 Sept 2/14 Intro to UNIX terminal.
WEB SCIENCE: DISTRIBUTED APPROACHES. Mobile Computing Laptops Smartphones Tablets And now… Smartwatches Fitness trackers Google Glass (are you a glasshole?)
Linux+ Guide to Linux Certification
Linux Tools. Tar tar – (Tape Archive). This is a tool for archiving files and directory hierarchies. tar output can be sent to stdout using the – file.
Offline File Storage. Module 12 Offline File Storage ♦ Introduction Backup is usually done by first collecting all the data in a single archive file,
Archiving s SHANIA LEHER. Benefits of Archiving s Clean up your box The recovery of lost or accidently deleted s Accelerated audit.
Information and Coding Theory Heuristic data compression codes. Lempel- Ziv encoding. Burrows-Wheeler transform. Juris Viksna, 2015.
Linux Operations and Administration
Install Software. UNIX Shell The UNIX/LINUX shell is a program important part of a Unix system. interface between the user & UNIX kernel starts running.
Linux+ Guide to Linux Certification Chapter Thirteen Compression, System Back-Up, and Software Installation.
Managing Software Patches 10/15/ Introducing Solaris OE Patches A patch contains collection of files and directories Patch replaces existing files.
EMT 2390L Lecture 6 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
CIS 90 - Lesson 15 Lesson Module Status Slides – Properties - Flash cards – No-stress quiz – Web calendar summary – Web book pages – Commands – Lab – done.
1 Lecture 5 Additional useful commands COP 3353 Introduction to UNIX.
Workbook 5 - Part 2 The Linux Filesystem RH030 Linux Computing Essentials.
1 Day 5 Additional Unix Commands. 2 Important vs. Not Often in Unix there are multiple ways to do something. –In this class, we will learn the important.
Parallel Data Compression Utility Jeff Gilchrist November 18, 2003 COMP 5704 Carleton University.
CIT 140: Introduction to ITSlide #1 CSC 140: Introduction to IT Advanced File Processing.
File Transfer Protocol (FTP) FTP host stores files Client logs into host Client program sends command to get a file FTP host downloads the file with error.
1 itec 400 Backups George Vaughan Franklin University.
Archive Utilities Learning Objectives: 1. To introduce different archive utilities for file compression with their usage 2. To compare & summarized different.
Comp 335 File Structures Data Compression. Why Study Data Compression? Conserves storage space Files can be transmitted faster because there are less.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Feb 3 rd, 2009 Essential Unix Commands …the second half.
Chapter Linux Basics. Acknowledgements This presentation was prepared by – Banyat Settapanich – Bahran Madaen This presentation will be updated later.
Week Seven Agenda Announcements Link of the week Review week six lab assignment This week’s expected outcomes Next lab assignment Upcoming deadlines Lab.
Software Management Linux Software Package File Extensions Extension File.rpm Software package created with the Red Hat Software Package Manager, used.
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 7 Archiving.
FILE COMPRESSION Lossy vs Lossless. Why compress a file? To save storage space. To speed up data transmission.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
Agenda The Linux File System (chapter 4 in text) Linking Files Hard Links / Symbolic Links Disk Storage Checking for Disk Space (df / du) Archiving (Backing.
Data Compression Michael J. Watts
Persistent shell settings; users/groups; permissions
Data Compression for PDS4
Compression & Huffman Codes
Information and Coding Theory
Data Compression.
Lesson Objectives Aims You should know about: 1.3.1:
Persistent shell settings; users/groups; permissions
Lossy vs Lossless compression
Advanced GNU/Linux Command Line By: - Mohammed El-Sayed.
Chapter 7 Special Section
Data Compression CS 147 Minh Nguyen.
Persistent shell settings; users/groups; permissions
The Linux Command Line Chapter 18
Data compression Why compress (or ‘zip’)? Lossy vs. lossless
Lecture 5 Additional useful commands COP 3353 Introduction to UNIX 1.
Persistent shell settings; users/groups; permissions
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Persistent shell settings; users/groups; permissions
Number Systems Instructions, Compression & Truth Tables.
Chapter 7 Special Section
Lecture 5 Additional useful commands COP 3353 Introduction to UNIX 1.
CPS 296.3:Algorithms in the Real World
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Presentation transcript:

Module 7 Archiving and Compression

Exam Objective 3.1 Archiving Files on the Command Line Objective Summary Using archiving and compression with files and directories

Archiving and Compression

Archiving vs. Compression Archiving collapses multiple files into one A few files or multiple directories Compression makes a file smaller Remove redundant information, replace with a smaller code Can be applied to individual files, groups of files or entire directory trees

Uses of Archiving and Compression Managing log files Sharing groups of files Project documents Source code Compressing for more efficient transfer Less data to send over the Internet or to tape Keep like files together grouped by time Backups

Lossless vs Lossy Compression Decompressed file is the same as the original Doesn’t compress as well as lossy For data you want to preserve Logs, documents, binaries, configuration Lossy: Decompressed file might have lost information from the original Drops “unimportant” information from the file to make it compress better Images, sound, movies

gzip vs bzip2 gzip and gunzip Uses Lempel-Ziv coding Lossless compression, good efficiency Bzip2 and bunzip2 Burrows-Wheeler block sorting Lossless compression, slightly more efficient than gzip, but requires more CPU Used almost identically as gzip

Using gzip/gunzip/bzip2/bunzip2 gzip foo # removes foo; creates foo.gz gunzip foo.gz # removes foo.gz; creates foo gunzip –l foo.gz # shows statistics bzip2 foo # removes foo; creates foo.bz2 bunzip2 foo.bz2 bunzip2 –l foo.bz2 # DOESN’T EXIST!

Tape Archive - TAR tar –cf foo.tar * # create tar –tf foo.tar # show info tar –xf foo.tar # extract tar –czf foo.tgz * # gzip tar –xjf foo.tbz # bunzip2 tar –xf foo.tar home/joe # only extract home/joe

ZIP zip output.zip file1 file2 file3 zip foo.zip file.doc # One file zip –r foo.zip Documents # recurse unzip –l foo.zip # show contents unzip foo.zip # extract all unzip foo.zip file1 # just file 1 unzip foo.zip Documents/projectA/* # everything under Documents/projectA