tailieunhanh - Module Linux essentials - Module 7: Archiving and compression

Module Linux essentials - Module 6 guide archive files on the command line. This module include content: Archiving vs. compression, uses of archiving and compression, lossless vs lossy compression, gzip vs bzip2, using gzip/gunzip/bzip2/bunzip2,. | Module 7 Archiving and Compression Exam Objective 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 Lossless: 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 gunzip # removes ; creates foo gunzip –l # shows statistics bzip2 foo # removes foo; creates bunzip2 bunzip2 –l # DOESN’T EXIST! Tape Archive - TAR tar –cf * # create tar –tf # show info tar –xf # extract tar –czf * # gzip tar –xjf # bunzip2 tar –xf home/joe # only extract home/joe ZIP zip file1 file2 file3 zip # One file zip –r Documents # recurse unzip –l # show contents unzip # extract all unzip file1 # just file 1 unzip Documents/projectA/* # everything under Documents/projectA | Module 7 Archiving and Compression Exam Objective 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 Lossless: 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” .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.