Open Finder
If you do not see the Path listed above status bar, do the following.
Select the following Menu Option
View -> Show Path Bar
Now click on any file in the finder window.
You should be able to see the path of the file below
Macintosh > Library > WebServer > Documents > index.html
The format we are looking for is /Library/WebServer/Documents/index.html
Right click on index.html file you should see an option Copy "index.html" as Pathname
Paste it into a Terminal and you should be the path of the format.
/Library/WebServer/Documents/index.html
To open the folder in the Termainal, right click on any folder (blue icons), example Documents in this case or Library. Use "New Terminal Tab at Folder" or "New Terminal at Folder". A new terminal would open with the path set by default.
use pwd to verify the path.
No comments:
Post a Comment
Please add value. Sharing is caring