Use dig to discover Domain information: dig A Too many options to list here, so run this for details: man net
Manage Windows networks (a drop-in for the NET command on Windows). Troubleshoot routing problems to a host using traceroute: traceroute Ĭheck whether a host is running an HTTP server (ie: check that a Web Site is available): curl -I | head -n 1Īutomatically enable Internet Sharing at startup Ping a host to see whether it’s available: ping -o htaccess files, for example): defaults write AppleShowAllFiles TRUEįorce the Finder to hide hidden files (ie: back to the default setting): defaults write AppleShowAllFiles FALSE Networking chflags nohidden ~/Libraryĭisable Dashboard (don’t forget to drag the Dashboard Dock icon off the Dock too): defaults write mcx-disabled -boolean YESĮnable Dashboard: defaults write mcx-disabled -boolean NOįorce the Finder to show hidden files (very useful for Web Developers who need to edit. If you don’t like the way Mountain Lion now makes the User ‘Library’ folder invisible, you can disable this.
…Also see my post about hibernate mode and Safe Sleep on the Mac OS X Look and Feel Put Computer to sleep after 30 minutes of inactivity: sudo pmset sleep 30 Put display to sleep after 15 minutes of inactivity: sudo pmset displaysleep 15 Get overview of current Power Management Settings: pmset -g Shutdown Mac OS X: sudo shutdown now Power Management / Energy Saving this is not a new shell, just a way of displaying the current Shell.
I have intentionally omitted long bash scripts and AppleScripts and focussed instead on small useful commands that can be plugged into bigger scripts or used on their own… enjoy! Terminal & Shell BasicsĬmd+t – Open a new Shell in a new tab of the current windowĬontrol+d – Logout the Shell in the current tab / windowĬmd+d – Split pane. Here are a bunch of Mac terminal commands sorted into general categories.