If you’re a newbie to using SSH, here’s a quick OS X Terminal command guide. These should help you become less dependent on websites to do domain look ups or change passwords in control panels. Becoming friends with Terminal means an increase in productivity.
Commands for Web Site Management
1. host
If you need to find out the IP of a domain, type
[root@droplet ~]# host cloudsy.com
cloudsy.com has address 66.240.232.17
2. whois
You can use whois to quickly find if a domain name exists and its registrar information.
[root@droplet ~]# whois cloudsy.com
[Querying whois.verisign-grs.com]
[whois.verisign-grs.com]
Whois Server Version 2.0
Domain Name: CLOUDSY.COM
Registrar: ENOM, INC.
Whois Server: whois.enom.com
Referral URL: http://www.enom.com
Name Server: NS1.CLOUDSY.COM
Name Server: NS2.CLOUDSY.COM
Status: ok
Updated Date: 28-mar-2009
Creation Date: 25-mar-2009
Expiration Date: 25-mar-2010
3. passwd
If your web host gave you SSH access, you can use it to do simple things in your account like quickly changing your password.
[root@droplet ~]# passwd yourusername
Changing password for user yourusername.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
4. cd – Navigate to your Desktop
cd /users/yourusername/Desktop
Navigate in a web server
cd /home/yourusername/public_html/site
5. mkdir – Make a new directory
mkdir Photos
6. mv – Move a file into a folder
mv IMG_8151.JPG Photos