Unix commands that every Mac webmaster should to know

Oke let’s start the Shell first :D

Open Terminal (/Applications/Utilities/Terminal), and wucha!!! Welcome to the World Where Text is a KING

try this first. Type whois roysuryo.info

Now for fun let’s find our celebrity  IP address:

Type Host roysuryo.info

And let’s find out who owns the IP block (using the IP gleaned from the previous command):

Type Whois 68.178.232.100

Handy command huh… :)

lets start with basics and critical command first:

  1. SSH  youruser@yourwebsite.com 
  2.  The greatest and easy way to control and develop your web server from remote/local

  3. FTP youruser@yourwebsite.com
  4. Might not be as easy as GUI FTP clients like cyber duck or Transmit, but it never crashes, it’s free, and it’s on every Mac OS X machine.

  5. curl -o filename.ext http://yourwebsite.com/path/to/filename.ext 
  6. When installing downloadable software on a remote server or locally and forget head ache for  ’download-to-workstation-and-upload-to-server’.

  7. scp /file/on/local/machine /location/on/remote/machine
  8. secure copy is great when you need to move a few files and know exactly where they are going

  9. tail -f /var/log/httpd/access_log
  10. watch whos at your site in real time or

    tail -f /var/log/httpd/error_log

    see your errors in real time

  11. and Standart Unix command for daily use such :
  12. which 

    awk 

    cat 

    sed 

    ping 

    ifconfig 

    man (duh) 

    ls 

    dmesg 

    cp 

    rm 

    mkdir 

    rmdir 

    cd 

    find 

    chmod 

    chown

Have a nice day with your web server :roll:

2 Responses

  1. Chic @ October 15th, 2008 | 5:51 pm

    yay! langsung cobain..

    thanks..

  2. Jane @ October 19th, 2008 | 2:05 am

    uhuhu.. thanks for the visit :) and i’m so sorry 4 da L8 reply cuz i’ve just came back frm a long hibernation.. hohoh.. nice 2 knw u anyway :)

Leave a Response