18.01.2020 Views

Working with Linux

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

You can quickly understand the format of the file from the existing content. Let's add an alias for our

localhost, so that we can access it under a different name. Add the following line:

127.0.0.1 myhostname.local

We recommend using non existing top level domain names for localhost, such as .local or .dev. This

is to avoid overriding any existing address, because /etc/hosts takes precedence in dns resolution.

Now, if we open the address in the browser on port 8000, we will see our local Python server

running and serving content.

The next command is nmap. As you can see, it is not installed by default on Ubuntu, so let's go ahead

and install it by typing:

sudo apt install nmap

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!