Check out example codes for "how to install tor browser in ubuntu". It will help you in understanding the concepts better.

Code Example 1

# Download tor browser launcher
sudo add-apt-repository ppa:micahflee/ppa
sudo apt update 
sudo apt install torbrowser-launcher

Learn ReactJs, React Native from akashmittal.com