Coders Tent

Server Admin's Diary

Category: SSH

Finding which hosting account/reseller a domain belongs by ssh

Scala Hosting

You can find the account ownership of a domain name with a command such as:


/scripts/whoowns $domain

Or via:


grep $domain /etc/userdomains

You can then search for the username in /etc/trueuserowners to see which reseller owns the account. EX:


grep $username /etc/trueuserowners

Thank you.

How to zip a folder via SSH Terminal

Scala Hosting

zip -r foldername/

This is how you can zip a folder via SSH on your Linux server. Works on Debian and other servers.