Cercare tutti i file e che si riduce e le cartelle in Linux
In questo tutorial impareremo in poche parole come si può estrarre e comprimere i file e le cartelle utilizzando i comandi nella console.
Shrinking files -
In primo luogo, scegliere il formato per la compressione (diminuzione) dei file:
- GZip
- Zip
- catrame
- tar.gz
Per ridurre il file / cartella i seguenti comandi per ogni formato:
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 בלינוקס.
ישנן עוד הרבה מאוד אפשרויות לפקודות שלא הסברנו במדריך, וניתן למצוא את רובן כאן.
בהצלחה!









































