DOS from MAC

Is there a way to run DOS commands from a MAC OS X?  Some of the things are need to be able to do are:

ipconfig /all
ipconfig /flushdns
Who is Participating?
Here are the OS X equivalents:

/sbin/ifconfig -a
dscacheutil -flushcache 

Open in new window

What you are referring to as is known as Apple terminal and can be invoked easily - just start Finder open Applications, and from within open the Utilities folder. There it is, Terminal. Looks complicated, but you only have to do it once – you can drag the Terminal icon into the dock for easy launching it in the future.

And the commands you are referring to are windows commands which are different in case of Mac OS X

ipconfig /all  on Windows would be ifconfig
ipconfig /flushdns is replaced with dscacheutil -flushcache or flushcache depending on your current OS version
ping remains to be ping
tracert on windows is traceroute on Mac OS X

In fact in Mac OS x it is possible to access PING and Traceroute commands from GUI with easy steps - On the Toolbar, click Go and select Utilities folder from the menu. Double click the Network Utility icon.
Select the Ping tab to ping.
Select Traceroute tab to traceroute.

Hope this helps.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.