> For the complete documentation index, see [llms.txt](https://shafagh.gitbook.io/try-hack-me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shafagh.gitbook.io/try-hack-me/pre-security-tools/some-linux-web-command.md).

# some Linux web command

`wget` command allows us to download files from the web via HTTP -- as if you were accessing the file in your browser.

e.g.:

`wget https://assets.tryhackme.com/additional/linux-fundamentals/part3/myfile.txt`

***

`scp` command allows us to upload to or download from a machine on the network with having its IP, username and password.

uploads `important.txt` to `ubuntu@192.168.1.30:/home/ubuntu/transferred.txt`:

`scp important.txt ubuntu@192.168.1.30:/home/ubuntu/transferred.txt`

downloads `notes.txt` from `ubuntu@192.168.1.30:/home/ubuntu/documents.txt notes.txt`

`scp ubuntu@192.168.1.30:/home/ubuntu/documents.txt notes.txt`

***

`python3 -m http.server` is used to start a simple http server that serves the files in the directory where you run the command.

<figure><img src="https://859957243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fde5Oj59jxsVsTZcMyIgC%2Fuploads%2FRu8jm4m9JKXO3u3P7NPh%2Fimage.png?alt=media&amp;token=ea96ce1a-7ceb-45df-8594-8553240923ac" alt=""><figcaption></figcaption></figure>

<figure><img src="https://859957243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fde5Oj59jxsVsTZcMyIgC%2Fuploads%2FcsU6OEu8KWo6umnSS01P%2Fimage.png?alt=media&amp;token=cb78f971-b1fb-4f00-a497-85b8b786efeb" alt=""><figcaption></figcaption></figure>

<figure><img src="https://859957243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fde5Oj59jxsVsTZcMyIgC%2Fuploads%2F2lCK00rayBXpQT3phikL%2Fimage.png?alt=media&amp;token=15edfa84-1738-493d-9aef-5d40f1e6f602" alt=""><figcaption></figcaption></figure>
