services

Cool commands

Avoid wasting time on bloated GUIs

Use case. Python & Bash for file exchange

Why should you use a bloated GUI when better tools are available?

Let’s run a simple instance for a server-client file exchange: Open a terminal inside the directory of choice. Then simply use the command:

$ python -m http.server

Notice the -m flag stands for ‘module’. In certain distros you may invoke this server with python3 instead of python. This command should be available also on Windows.

Check available IPs on your computer:

  • Linux:
$ ip -c a
  • Windows:
> ipconfig

Then the file may be retrieved with a GET request:

$ wget http://0.0.0.0:8000/file

This workflow may be convinient for single file download requests. For bigger transfer volumes you may consider other utils such as rsync.