Monday, May 30, 2016

Linux - Download File(s) firom the Internet

Download files on Linux from the internet using the following command:
wget [OPTION]... [URL]...
I've been working to install a SSH web client on my Amazon Linux AMI instance. This client from GateOne seems like a good option. I created a new directory called 'sshclient'. Then inside that directory I ran the code:
wget https://github.com/liftoff/GateOne/archive/master.zip
That downloaded the master.zip file to the directory where I could then unzip it for installation. Other options for 'wget' include:

-O, --output-document=FILE    used to specify the output file
User credentials can also be passed for http and ftp requests.

Linux - View Files in a Directory

To list files in a Linux directory type:
ls
Other options include:
-R, --show files recursively