htdocs path in linux
when xampp is installed - /opt/lampp/htdocs
That totally depends on your server configuration so your only reliable source of information should be lighttpd's configuration file which (if installed globally) should normally be within the /etc folder (e.g. /etc/lighttpd/lighttpd.conf).
Popular locations for the htdocs folder are /var/www or somewhere within /srv.