COMMAND LINES FOR WINDOWS & MAC

On this project we are going to show you how to open a terminal and use some basic useful command lines that is used in Windows and Mac.

Firs command line for Windows and Mac

To locate your IP and MAC address on Windows Operating Systems, follow these steps:

On Windows

  1. Press Windows key + R.
  2. Run window will appear and type in cmd.
  3. On the command line interface type ipconfig /all.
  4. The command interface will show you IP and MAC address.





ipconfig command

On Mac

  1. Open Terminal from Applications -> Utilities -> Terminal.
  2. Double click on the Terminal Prompt.
  3. On the terminal interface type ifconfig -l.
  4. The terminal interface will show you IP and MAC address.





ifconfig command

On Windows

  1. Press windows key + R.
  2. Run window will appear and type in cmd.
  3. On the command interface type ping space bar IP address
    or Domain Name.
  4. The command interface will show the percentage of packet
    loss.

Hint: On this example we use google IP address 8.8.8.8






ping command

On Mac

  1. Open Terminal from Applications -> Utilities -> Terminal.
  2. Double click on the Terminal Prompt.
  3. On the Terminal interface type ping space bar IP address
    or Domain Name.
  4. The terminal interface will show the percentage of packet
    loss.

Hint: On this example we use google IP address 8.8.8.8






ping command

On Windows

  1. Press windows key + R.
  2. Run window will appear and type in cmd.
  3. On the command interface type tracert space bar IP address
    or Domain Name.
  4. The command interface will show the tracing route information
    collected.

Hint: On this example we use google DNS or IP address 8.8.8.8






tracert command

On Mac

  1. Open Terminal from Applications -> Utilities -> Terminal.
  2. Double click on the Terminal Prompt.
  3. On the Terminal interface type traceroute space bar IP address
    or Domain Name.
  4. The terminal interface will show the tracing route information
    collected.

Hint: On this example we use google DNS or IP address 8.8.8.8






traceroute command

On Windows

  1. Press windows key + R.
  2. Run window will appear and type in cmd.
  3. On the command interface type nslooup space bar IP address
    or Domain Name.
  4. The command interface will show the tracing route information
    collected.

Hint: On this example we use wikipedia DNS wikipedia.com






nslookup command

On Mac

  1. Open Terminal from Applications -> Utilities -> Terminal.
  2. Double click on the Terminal Prompt.
  3. On the Terminal interface type nslookup space bar IP address
    or Domain Name.
  4. The terminal interface will show the tracing route information
    collected.

Hint: On this example we use google DNS www.google.com






nslookup command