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:

Code:

/scripts/whoowns $domain

Or via:

Code:

grep $domain /etc/userdomains

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

Code:

grep $username /etc/trueuserowners

Thank you.

How to zip a folder via SSH Terminal

Scala Hosting

zip -r filename.zip foldername/

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