Bagaimana cara Zip atau Compress file di VPS Linux

Langkah 1.
Buka Putty atau Terminal lalu login ke server Anda melalui SSH

Langkah 2.
Setelah Anda masuk ke server Anda melalui SSH, sekarang arahkan ke direktori tempat file dan folder yang ingin Anda zip / kompres berada di sana.

Langkah 3.
Gunakan perintah berikut:

zip [zip file name] [file 1] [file 2] [file 3] [file and so on]

contoh:

zip example.zip 1.txt 2.txt 3.txt

Dalam contoh ini kita akan mengompres file 1.txt, 2.txt dan 3.txt menjadi satu file example.zip

Anda mungkin sukses tetapi Anda mungkin tidak.

pesan kesalahan:
– bash: zip: perintah tidak ditemukan

Dalam hal ini Anda harus menginstalnya terlebih dahulu.

Langkah 4.
Gunakan perintah berikut untuk menginstal fungsi zip:

untuk Debian dan Ubuntu:

apt-get install zip

untuk pengguna Red Hat Linux/Fedora/CentOS:

yum install zip

Langkah 5.
Itu dia. Sekarang Anda dapat mencoba zip lagi menggunakan perintah pada langkah 3 di atas.

Was this answer helpful?

Related Articles

How to turn off the VPS?

Please Login to Mikyhost = > Click VPS Package = > Click Shut Down thanks,

How do I turn on my VPS?

Please Login to Mikyhost = > Click VPS Package = > Click Power on   thanks,

How to Reset VPS Password?

Resetting password on VPS Package Please Login at Mikyhost = > Click VPS Package = > Click...

How to Restart VPS?

How do I restart the VPS? Please Login to Mikyhost => VPS PACKAGE => CLICK REBOOT

How to reinstall/rebuild VPS

Please enter the VPS Panel and click Rebuild and select the images to be reinstalled. thanks,