انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Lec. 12 Archive Commands

Share |
الكلية كلية تكنولوجيا المعلومات     القسم قسم شبكات المعلومات     المرحلة 4
أستاذ المادة احمد مهدي محمد سعيد الصالح       02/01/2019 08:57:09
Introduction to Archiving • Linux provides several utilities for compressing and archiving data. Each one has its’ own unique advantages and disadvantages.
The tar Command • The tar (tape archive) command merges multiple directories and files into a single file • Does not compress files by itself • Supports gzip (with -z option) and bzip2 (with -j option) compression • Customary to add “.tar” extension
The tar Command • Three basic functions: c (create or combine) – creates a tar file t (table of contents) – display tar file contents x (extract) – extract file(s) from a tar file • tar function modifiers used in in conjunction with one of the three function characters: f (file) – tar file to create, view or extract from v (verbose) – display results of tar as they happen z (compress) – use gzip compression j (compress) – use bzip2 compression
The tar Command Examples • Create a tar file: $tar –cvf file.tar file(s)
$ tar -cvf systemd-config.tar /etc/systemd tar: Removing leading `/ from member names /etc/systemd/ /etc/systemd/system/ /etc/systemd/system/multiuser.target.wants/ /etc/systemd/system/multiuser.target.wants/rsyslog.service /etc/systemd/system/multiuser.target.wants/bind9.service /etc/systemd/system/multiuser.target.wants/ssh.service /etc/systemd/system/syslog.service /etc/systemd/system/sshd.service

المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الى لوحة التحكم