How to start a web server (Apache 2)

service apache2 start

It starts a web server for us at our ip address

and then we can edit the files hosted on their /var/www/html/

How to serve files in linux at your IP address

First naviagte to the folder you wanna serve

Instead of port write the port it just spins up the server super fast

python -m SimpleHTTPServer port 

How to open stuff on startup andhave a service enabled by default

systemctl enable ssh
systemctl enable postgresql

Mostly always enable postgresql because it helps boot up metasploit faster

How to install tools ,get files and update files from github

apt update && apt upgrade