This is my first post with WHT but I've been a lurker for a long time now. I have my own dedicated server to host my own websites and eventually will look at offering hosting services once I get a handle on it. My question is how do I find my websites using putty? I've typed ls, ls -al, cat, and a few other commands that I've found on the net but cannot seem to get into one of my sites so I can chown a file to a different user. I cannot seem to find any tutorials that aid with work on website files as opposed to root files. Tried going into root/public_html but only found three directories and none were the websites on the server. Thanks in advance.
The command sudo chown -R username_of_new_owner foldername will assign username_of_new_owner to every file and folder withing foldername, including foldername. The -R switch in the command means recursive.