DotResults - Quick Tech Answers

DotResults - Quick Tech Answers
  • Home
  • Ask a Question!
  • Subscribe RSS

Basic Terminal Commands in OS X

by Kayla on November 3, 2009

basic-terminal-commands-in-os-x

If you’re a newbie to using SSH, here’s a quick 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/Bookmark

Leave a Comment

Previous post: How to Install Putty on OS X

Next post: OUC Busy Twittering, Leaves Security Shortcomings

We are both geeks and this tech site is something we do for fun in our free time. We're good at helping people out, so if you need results online, just ask!

Personal sites: Kayla / Daniel

  • Categories

  • Follow my blog with bloglovin

2010 DotResults. All rights reserved. Powered by Selans

Get smarter with the Thesis Theme for WordPress