Linux
cd /var/www
mkdir dirname
du -sh /home/staging/
find . -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn
https://www.apachefriends.org/faq_linux.html
Note: in case you're not able to create files, folders or other things in the directory, execute the following command to grant all rights to the htdocs folder of xampp.
sudo chmod 777 -R /opt/lampp/htdocs/
To start XAMPP simply call this command:
sudo /opt/lampp/lampp start
To stop XAMPP simply call this command:
sudo /opt/lampp/lampp stop