How to download and extract a zip file Ubuntu server

in #coding8 years ago (edited)

Here is how to download and extract a file on Ubuntu server

Login to ssh

login as: root
root@stoli.serverfarm.com's password:

Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 2.6.32-042stab083.2 x86_64)
* Documentation: https://help.ubuntu.com/
No mail. Last login: Tue Jul 5 21:49:35 2016 from 41.203.71.186

root@stoli:~# sudo apt-get update

root@stoli:~# sudo apt-get install wget

root@stoli:~# sudo apt-get install zip unzip

root@stoli:~# sudo wget http://serverfarm.io/archive.zip

root@stoli:~# ls
archive.zip Maildir virtualmin-install.log

root@stoli:~# sudo unzip archive.zip