How to navigate to htdocs of XAMPP in MacOSX via the terminal

bably picture bably · Mar 7, 2018 · Viewed 9.8k times · Source

I have installed XAMPP in my Mac OSX El Captain. Now I need to navigate to the htdocs via the command line. I am very new to this. Can someone help me on the same.

Thanks in advance

Answer

Saikat Hajra picture Saikat Hajra · Mar 7, 2018
  1. open application folder
  2. find xampp folder at bottom
  3. get inside and findout htdocs folder
  4. open terminal
  5. drag the htdocs folder to terminal

you will get the path