Haddii aad raadinayso hab wax ku ool ah cadaadi oo ku soo saar faylasha Linux, taliska Tar waa qalab awood leh oo kuu sahli kara habsocodka. Amarka Tar, waad awoodaa ku cadaadi faylal badan hal fayl oo cufan si loo badbaadiyo booska kaydinta iyo fududaynta gaadiidka. Intaa waxaa dheer, waa hab fudud oo lagu sameeyo soo saar faylal isku buuqsan si loo helo waxa ku jira. Maqaalkan, waxaan ku tusi doonaa sida loo isticmaalo amarka Tar ee Linux cadaadi oo soo saar faylasha, iyo sidoo kale qaar ka mid ah talooyin waxtar leh si loo sameeyo si hufan.
- Talaabo talaabo
- Ku cadaadi faylasha amarka daamurka: Si aad u cadaadiso feylasha adigoo isticmaalaya amarka tar Linux, waxaad isticmaali kartaa qaabkan soo socda: tar -czvf compressed_file.tar.gz file1 file2. Tani waxay abuuri doontaa fayl la isku riixay loo yaqaan "compressed_file.tar.gz" oo ka kooban "file1" iyo "file2".
- Ku soo saar faylalka la cufan leh amarka daamurka: Si aad faylasha uga soo saarto kaydka la cufan adoo isticmaalaya amarka tar, waxaad isticmaali kartaa qaabkan: tar -xzvf compressed_file.tar.gz. Tani waxay soo saari doontaa faylasha la cufan ee hagaha hadda.
- Arag waxa ku jira faylka la tuujiyay: Waxaad arki kartaa waxa ku jira feyl la cufan adiga oo aan soo saarin adiga oo isticmaalaya amarka tar iyo ikhtiyaarka "t" sida in tar -tzvf compressed_file.tar.gz.
- Ku cadaadi dhammaan hagaha: Haddii aad rabto inaad ku cadaadiso hagaha oo dhan, si fudud u isticmaal taliska tar oo leh ikhtiyaarka z si aad ugu cadaadiso faylka tar.gz sida tar -czvf compressed_directory.tar.gz /path/to/directory.
- Soosaar faylasha hage gaar ah: Waxaad cayimi kartaa tusaha aad u socoto si aad u soo saarto faylasha adoo isticmaalaya "C" doorashada ee taliska daamurka sida ku jirta tar -xzvf compressed_file.tar.gz -C /path/destination.
Q&A
Su'aalaha Inta badan La Isweydiiyo ee ku saabsan Ku-xooji Faylasha Soo Saarka ee Taliska Tar ee Linux
Sida loo cadaadiyo faylasha amarka tar ee Linux?
1. Fur terminalka Linux.
2. Qor tar -czvf file_name.tar.gz file_or_folder.
3. Taabo Gelida si aad u cadaadiyo faylka.
Sida loo soo saaro faylalka la cufay iyadoo la adeegsanayo amarka tar' ee Linux?
1. Ka fur terminal-ka Linux.
2. Qor tar -xzvf file_name.tar.gz.
3. Taabo Gelida si aad u soo saarto faylasha.
Sida loo cadaadiyo oo looga saaro faylal ama faylal gaar ah oo leh amarka tar ee Linux?
1. Fur terminalka Linux.
2. Qor tar –exclude=faylka_name_or_folder -czvf file_name.tar.gz directory_to_compress.
3. Riix Enter si aad u cadaadiyo faylka oo aad uga saarto kuwa gaar ah.
Sida loo arko waxa ku jira faylka la cufan ee leh amarka tar ee Linux?
1. Fur terminalka Linux.
2. Qor tar -tvf filename.tar.gz.
3. Taabo Gelida si aad u aragto waxa ku jira faylka la cufay.
Sida loo cadaadiyo faylal badan ama faylal hal fayl ah oo wata amarka tar ee Linux?
1. Ka fur terminal-ka Linux.
2. Qor tar -czvf filename.tar.gz file1 file2 folder1 folder2.
3. Taabo Enter si aad u cadaadiyo faylalka iyo faylalka hal mid.
Sida loo soo saaro fayl la cufan meel gaar ah oo leh amarka daamurka ee Linux?
1. Fur terminalka Linux.
2. Qor tar -xzvf file_name.tar.gz -C /dariiqa/destination/directory.
3. Taabo Gelida si aad u soo saarto feylka la tuujiyay meesha aad rabto.
Sidee loo cadaadiyaa faylka iyada oo aan lagu darin dariiqa buuxa ee amarka tar ee Linux?
1. Fur terminalka Linux.
2. Qor tar -czvf file_name.tar.gz -C /file/directory/path.
3. Taabo Gelida si aad u cadaadiso faylka adigoon ku darin jidka buuxa.
Sidee looga soosaaraa faylal gaar ah oo keliya kayd la cufan oo leh taliska tar ee Linux?
1. Ka fur terminal-ka Linux.
2. Qor tar -xzvf filename.tar.gz file1 file2.
3. Taabo Gelida si aad u soo saarto faylasha gaarka ah kaydka.
Sidee loo siib feyl sir ah oo leh amarka tar ee Linux?
1. Ku fur terminalka Linux.
2. Qor tar -czvf – file_name.tar.gz file_or_folder –password=password
3. Taabo Gelida oo geli furaha sirta ah marka lagu weydiiyo.
Sidee loo cadaadiyaa faylalka iyadoo la ilaalinayo qaab dhismeedka hagaha iyadoo la raacayo taliska tar ee Linux?
1. Fur terminalka Linux.
2. Qor tar -czvf file_name.tar.gz -C /directory/path halka ay faylalku yaalliin..
3. Taabo Gelida si aad u cadaadiso faylasha adigoo ilaalinaya qaab dhismeedka hagaha.
Anigu waxaan ahay Sebastián Vidal, injineer kombuyuutar oo xiiseeya farsamada iyo DIY. Intaa waxaa dheer, anigu waxaan ahay abuuraha tecnobits.com, halkaas oo aan ku wadaago casharrada si aan tiknoolajiyada uga dhigo mid la heli karo oo qof walba la fahmi karo.