If we want to share our files with someone we can run a server from our terminal using service command. There are two ways listed here to do this:
-
For this we are running appache2 server using the command:
sudo service apache2 startThis will start a server on the device ip address which can be accessible from Firefox
We can stop the server by the following command:
sudo service apache2 stop -
In order to run the server we are going to use the following command:
python -m http.server <port_number>
This command is used to enable or disable services or applications to start on boot.
sudo systemctl enable/disable <service_name>




