November 3, 2009

OS X Terminal Commands, The Basics

<div class=\"postavatar\">os-x-terminal-commands-the-basics</div>

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

DotResults - Don't Forget

Need more commands?
Read this post for how to SSH to a host, specify a certain SSH port, and choose a
private SSH key. If you’d like to see more, just leave a comment!


Share

Read more from OS X, UNIX
About the author, Kayla

First a geek, now a photographer too. Check out my site at kaylaselans.com

Leave a Comment

Note: Make sure you enter the required information where indicated. HTML is allowed. Your email address is Required but, will never be published.

Required
Required, but not shared

Get notified Subscribe to comments