Søg og skrumpende filer og mapper i Linux
I denne tutorial vil vi lære i en nøddeskal, hvordan du kan udtrække og komprimere filer og mapper ved hjælp af kommandoer i konsul.
Shrinking filer -
Først skal du vælge formatet til at komprimere (faldende) filer:
- GZip
- Zip
- tjære
- tar.gz
For at formindske fil / mappe skal du gøre følgende kommandoer for hvert 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 בלינוקס.
ישנן עוד הרבה מאוד אפשרויות לפקודות שלא הסברנו במדריך, וניתן למצוא את רובן כאן.
בהצלחה!










































