Cari dan menyusut file dan folder di Linux
Dalam tutorial ini kita akan belajar secara singkat bagaimana Anda dapat mengekstrak dan mengkompres file dan folder menggunakan perintah dalam Konsul.
Menyusut file -
Pertama, pilih format untuk mengompresi (menyusut) file:
- Gzip
- Zip
- ter
- tar.gz
Untuk mengecilkan file / folder melakukan perintah berikut untuk setiap format:
Gzip -
gzip -c example.txt > example.gz
Zip -
zip -c example.zip example.txt
tar -
tar -cvf example.tar example.txt
tar.gz -
tar -zcvf example.tar.gz example.txt
ועכשיו, בכדי לחלץ את הקובץ בצעו את הפקודות הבאות עבור כל פורמט:
Gzip -
gunzip example.gz
Zip -
unzip example.zip
tar -
tar -xvf example.tar
tar.gz -
tar -zxvf example.tar.gz
אלו הפקודות הבסיסיות לכיווץ וחילוץ דרך SSH בלינוקס.
ישנן עוד הרבה מאוד אפשרויות לפקודות שלא הסברנו במדריך, וניתן למצוא את רובן כאן.
בהצלחה!









































