Tar commands in hindi – linux

 hello दोस्तों, इस article में आज हम tar commands in hindi (टार कमांड्स क्या है?) के बारे में पढेंगे. यह linux और unix की important कमांड है तो चलिए start करते है:-

Tar commands in hindi 

Tar का पूरा नाम tape archive है, इसका प्रयोग archive को create करने तथा archive files को extract करने के लिए किया जाता है. linux में tar command एक बहुत ही महत्वपूर्ण कमांड है यह linux में archiving functionality प्रदान करती है.

हम tar commands का प्रयोग compressed या uncompressed archive files को create करने, उन्हें modify करने, एवं maintain करने के लिए कर सकते है.

tar commands का प्रयोग बहुत बड़ी संख्या के linux/unix system administrators के द्वारा tape drives के backup को लेने के लिए भी किया जाता है.

 syntax :-

tar [options] [archive-file] [file or directory to be archived]

options:-

-c: archive को create करने के लिए.

-x: यह archive को extract करता है.

-f: इसके द्वारा दिए गये filename के साथ archive create कर सकते है.

-t: archived फाइल में files को display करता है.

u: archive करता है और पहले से मौजूद archive फाइल में add करता है.

-v: यह verbose information को डिस्प्ले करता है.

-A: archive files को concatenate करता है. (conactenate मतलब जोड़ता है.)

-z: यह tar command को gzip के द्वारा tar फाइल create करने को कहता है.

-j: यह tbzip के द्वारा archive tar file को filter करता है.

-W: यह archive file को verify करता है.

archive file in hindi (आर्काइव फाइल क्या होती है?)

archive file एक फाइल होती है जो कि एक या एक से अधिक files के द्वारा बनी होती है. इन files में metadata भी होता है.

इन archive files का प्रयोग बहुत सारी data files को एक साथ एक single file में collect करने के लिए किया जाता है. जिससे कि ये portable हों. तथा इन्हें आसानी से store किया जा सकें.

examples of tar commands 

1:- option –cvf के द्वारा uncompressed tar archive को create करना:-

यह command एक file.tar नाम की एक tar file create करती है. जो कि directory में उपस्थित सभी .c files की archive होती है.

$ tar cvf file.tar *.c

आउटपुट:- 

os2.c
os3.c
os4.c

2:- option –xvf के द्वारा archive से files को extract करना:-

यह कमांड archives में से files को extract करती है.

$ tar xvf file.tar

आउटपुट:- 

os2.c
os3.c
os4.c

3:- option –z का प्रयोग करके tar archive में gzip compression करना:-

यह कमांड file.tar.gz नाम की file को create करती है जो कि .c files की archive होती है.

$ tar cvzf file.tar.gz *.c

4:- पहले से उपस्थित tar file को update करना:-

$ tar rvf file.tar *.c

नोट:- अगर tar commands in hindi की यह पोस्ट आपको पसंद आई हो तो इसे अपने दोस्तों के साथ अवश्य share कीजिये तथा आपके जो भी questions है उन्हें comment के माध्यम से बता सकते है. thanks.

Leave a Comment