I believe line 2 with the cd should be relative to the home directory.
Code: Select all
mkdir -p ~/Documents/Arduino/hardware/espressif
cd ~/Documents/Arduino/hardware/espressif
git clone https://github.com/espressif/arduino-esp32.git esp32
cd esp32/tools
python get.py
Cheers!