Need to edit or modify the hosts file on a Mac? This guide will show you exactly how to edit the hosts file in Mac OS. You’ll find hosts in Mac OS X is stored at /private/etc/hosts but it can also be accessed at the more traditional location of /etc/hosts. That said, if you’re looking to edit hosts, you’ll want to target the file located in /private/etc/ though.
We’ll walk through how to manually edit the hosts file in macOS Big Sur, MacOS Mojave, MacOS Catalina, MacOS High Sierra, MacOS Sierra, OS X El Capitan, Yosemite, OS X Lion, OS X Mountain Lion, and OS X Mavericks, this will be done with the command line using the simple text editor called nano. Don’t let the command line or Terminal sound intimidating though because it’s not, we’ll make the entire process of editing a Mac hosts file super easy.
The next iPhone has been said to have a larger 4″ display for some time now, but new evidence from 9to5mac possibly confirms longstanding speculation on how that extra 0.5″ of display space may be used with the device. Rather than increasing the size of icons or adding a widget area, it appears as though the new iPhone display could accomodate a 5th layer of home screen icons.
This discovery was made through tweaking the iOS Simulator to accomodate the rumored 640×1136 display resolution of the next iPhone, which in the new iOS 6 beta 4 and Xcode release, displays the 5th row of icons, rather than the normal 4 rows of icons in prior iOS versions.
To add further support to the claim, adjusting the resolution with previous versions of the iOS Simulator does not cause the 5th row of homescreen icons to appear, suggesting a uniqueness to the 640×1136 resolution in the latest version of Xcode and iOS 6 beta.
Part leaks claiming to be of the new iPhone demonstrate a screen that is taller rather than wider.
Ever wondered what it would look like if you ordered 100 MacBook Pro’s? Now you know.
These neatly arranged boxes aren’t from the living room of some eccentric Howard Hughes-esque Mac fan though, they’re Kent College’s fresh batch of MacBooks for the incoming student cohort this Fall. Each new student there gets a 13″ MacBook Pro with 2.5GHz Core i5, 4GB of RAM, and a 500GB hard drive as part of their 1-to-1 MacBook program, which, understandably, has been a big hit with pupils and faculty alike.
Whether you’re troubleshooting app crashes, beta testing an app, or you just want to help an iOS developer out after you’ve discovered a particular bug, you can retrieve crash reports from any app on an iPhone, iPad, or iPod touch device once it has been synced to a computer.
Finding crash report data for iOS can be done outside of Xcode, assuming you backup the device to a computer anyway. The article will show you how to find the iOS crash logs in Mac OS X and a Windows PC.
Notification Center is a great addition to Mac OS X but not everyone likes it, sometimes just muting the alert sounds and turning banners and alert pop-ups off per-app is just not enough, and you may want to disable the entire notification system completely. Furthermore, if you don’t use Notifications on the Mac then you probably don’t want the menu bar icon sitting in the corner of your screen either. We’ll show you how to disable Notification Center, all alerts, and also remove the icon from the corner of the menu bar in Mac OS X.
This will also completely disable all pop-up alerts and Notification banners in Mac OS X. If you still want to receive alerts and banners, do not completely disable the notification center.
iOS 6 beta 4 has been released for developers, the update comes as build 10A5376e and is available for all iOS 6 compatible hardware.
Registered developers can download the beta update through Over The Air, or login to the Apple Dev Center and get the IPSW directly from there. Alongside the fourth beta of iOS 6 is a new developer version of Xcode and a new dev release of Apple TV software.
Any Mac fan watching the Mars Curiosity landing last night probably noticed the abundance of glowing Apple logos on the desks of NASA engineers and scientists. Exactly how all the Macs participated in managing Curiosity from millions of miles away is unknown, but the overwhelming presence of MacBook Pro’s should tell you they played an important enough role to make any Apple fan proud.
Want to open Notification Center with a keystroke on the Mac? It can be done by setting up a custom keyboard shortcut.
Typically Notification Center of Mac OS X can be summoned either with a click of the menu bar item in the upper right corner, or a two-fingered swipe left on a trackpad, but you can also set a custom keyboard shortcut to see your notifications or alerts on the Mac.
This article will show you how to setup a custom keyboard shortcut for accessing Notification Center in Mac OS: Read more »
Safari 6 changed the longstanding behavior of the Delete key, which used to navigate back a page when pressed but now does nothing. Instead, navigating web pages forward and backward is done through Command [ and Command ].
If you’d like to return the back-a-page navigation behavior to the Delete key within Safari, you can do so with a defaults write command.
AirDrop is probably the quickest and easiest way to transfer files between Macs these days, thanks to it’s instant ad-hoc network it lets Macs send files back and forth – without even being connected to the same network. As is, using AirDrop is easy through the Finder, but now with Mac OS X you can send files through AirDrop right out of a Quick Look window.
This offers a super fast way to AirDrop a file you are already glancing at through the Quick Look feature, here’s how it works: Read more »
One of the most frustrating things to type on the iPhone, iPad, and iPod touch keyboards is an email address. Typing out a name, then tapping the “.?123” button to access special characters for the @ sign and numbers, then tapping it again to type more letters, than tapping it yet again to type a period, and again to finish off an email address, by the time you’re done you’ve shifted between the touch keyboards half a billion times. Instead of repeating that process over and over again, do yourself a favor and create a keyboard shortcut for your email address in iOS.
Having tons of screen real estate tends to aid everyones productivity, but some tasks simply demand it. Case in point; the equities trading desk of Thomas W. with dual Cinema Displays. More screen space means more charts and more information, leading to smarter trades. Here’s the Apple hardware that’s making it all happen:
Mac Pro (2008)
Dual 30″ Apple Cinema Displays
MacBook Air 11.6″ (2011)
Apple wireless keyboard, Magic Trackpad, and Magic Mouse
iSight camera
Not shown is an iPad and iPhone 4S, but you can see a large Samsung HDTV to the upper left tuned into CNBC or something similar. Also, if you look carefully you’ll find the screen on the left is running Parallels with Windows 7. Is this a great Mac setup or what?
We’ve had some really great Mac setups lately from a wide variety of sources with various use cases, keep ’em coming! If you want yours featured, send in a good picture or two, a list of hardware, and a brief description of what you use the Apple gear for to osxdailycom@gmail.com
There are now a few ways to delete pictures from the iPhone; you can bulk remove photos by date, and you can delete all iPhone photos by connecting the device to a computer, but what if you need to delete a group of pictures together of your choosing, by simply forming a selection of pictures yourself from the iPhone? You can do that too and that’s what this trick covers, though removing multiple images from the iPhone with this select trick requires a lot of tapping, so while you could delete everything with it, it’s generally best for smaller groups of pictures that you don’t mind manually selecting for removal by tap.
Microsoft recently unveiled Outlook.com as a free email service, it’s primarily web based as some sort of Hotmail rebranding, but because of the new domain you can still get fairly decent email addresses if you want one.
As webmail you can obviously use any browser to check mail, but you can also use it with the Mac OS X Mail app or any other standard POP3 email client.
Setting it up is pretty easy but there can be a hiccup or two with the automated process from Mail app, so we’ll walk through the manual settings to make sure everything works.
Using an excellent third party tool called terminal-notifier, you can post alerts and messages to Notification Center directly from the command line. This has a myriad of potentially valid uses, but one fantastic use-case is along the same veins of verbally announcing when a command has completed or sending a badge alert, but instead posting the notification to OS X Mountain Lion’s Notification Center. Read more »
You’ve always been able to temporarily prevent a Mac from sleeping by using the pmset noidle command or a hot corner, but with modern versions of Mac OS X, Apple has bundled a command line tool dedicated to sleep prevention much like the popular Caffeine app, and appropriately, named it caffeinate.
At it’s most simple usage, caffeinate just prevents sleep entirely, but you can modify the command with various flags to prevent just the display from sleeping, provide a specified time to avoid sleeping, prevent sleeping while a command runs, and more. A few useful examples are discussed below.
Pictures can take up a lot of space on an iOS device so it’s a fairly reasonable thing to want to delete them all from an iPhone to clear up some space. We’ll cover a few of the easiest ways to delete all the pictures, some directly on the iPhone itself, and the others you’ll need to connect the iPhone to the computer and delete everything with a bundled app like Image Capture or Explorer. Newer versions of iOS have improved their photo management capabilities, so if you’re on iOS 6 or later there’s a particularly easy option available to you.
Before proceeding, you’ll probably want to transfer all pictures from the iPhone to the computer beforehand, otherwise you won’t have any backups stored on the computer or the iPhone itself. If you’re going to be connecting it to a computer anyway to trash the pictures, you really should back them up first as part of that process.
Delete ALL Photos Directly from the iPhone
This is the best and quickest option available, but it is limited to iOS 6 or later. This limitation is because, for whatever reason, Photos wasn’t included in the app storage Usage list prior to the newest iOS versions, despite being counted against available storage, so you can’t just easily swipe to delete all the images from a central location like you can with all Music. That has changed with the latest versions though, and here is how to use this excellent feature:
Open Settings app and then go to “General” followed by “Usage”
Use a left or right swiping gesture on the album to reveal a red “Delete” button
Swipe on “Camera Roll” to delete ALL photos from the iPhone, swipe on “Photo Library” to delete just pictures that are synced with a desktop, and swipe on Photo Stream if you want to remove everything from the shared streams.
This method is by far the fastest approach since it doesn’t require any syncing, manual removal, or computer use, but as we mentioned it is not available to all iOS users as it only arrived in iOS 6 and in later versions.
Delete Photos from the iPhone Itself
The third, and perhaps most obvious option, is to delete photos from the iPhone itself. This is done directly in the Photos app, and all you need to do is select which pictures to trash in your Camera Roll or any photo album. The select deletion option is available to all iOS versions:
Open Photos app and go to Camera Roll or the album to delete images from
Tap the [>] Edit arrow action button in the corner to select multiple pictures
Tap directly on every picture you want to delete, select as many as you want, multitouch works to select groups at once
When satisfied with the selections, tap the red “Delete” button in the corner, followed by the “Delete Selected Photos” button to immediately remove them from the iPhone
Of course these iOS-based approaches work aside from the iPhone as well, and this is obviously better if you want to be removing pictures from any iOS device while you’re on the go and away from a computer.
Deleting All Photos from iPhone Using a Mac
This works in all versions of Mac OS X:
Connect the iPhone to the computer via USB
Launch Image Capture from the /Applications/ folder
Hit Command+A to Select All pictures within Image Capture, then with all images selected click the red (\) button to delete all photos
Confirm deletion when asked and be prepared to wait
Now the waiting part, which can take quite a while depending on how many pictures you have. If you have 10GB+ of pictures expect it to take at least an hour to remove them all. The lengthy deletion process seems very inefficient and it’s a bit surprising there isn’t a quicker way to delete all pictures from an iOS device in one fell swoop. Also, once you start deleting the images, there’s no cancel button. It’s safe to say there’s room for improvement with this entire process, which is identical whether you’re on an iPhone, iPad, or iPod touch.
If anyone knows a better way for Mac, let us know in the comments.
Delete All Photos from iPhone Using Windows PC
This should work in all versions of Windows:
Connect the iPhone to the computer via USB
Open ‘My Computer’ and choose “Apple iPhone”
Open to folders “Internal Storage” and then open “DCIM”, contained within will be a folder containing all photos and videos on the iPhone
From the folder containing the pictures, select all, then delete
Removing pictures from the iPhone this way through Windows is significantly faster than it is from Mac OS X, probably because Windows treats it like a file system rather than a photo manager.
Updated: 1/30/2013
Thanks to Jason for reminder of how easy it is in Windows.
Tab completion is a wonderful feature of shells that make power users lives easier, letting you automatically complete commands, paths, file names, and a variety of other things entered into the command line. It works great as is but you can make it even better by enabling a few features; ignore caps lock and casing of commands when completing, remove the necessity to double-tap the Tab key if something is ambiguous, and last but certainly not least, cycle through a menu of all possibilities rather than dumping a humungous list if there is ambiguity.
If you don’t regularly use the OS X Terminal (or a linux terminal) you probably don’t have a use for this tip.
Launch Terminal and be in the home directory to get started:
Using emacs, nano, vi, or whatever your favorite text editor is to edit .inputrc, we’ll use nano for the walkthrough:
nano .inputrc
Paste in the following three rules on unique lines:
set completion-ignore-case on
set show-all-if-ambiguous on
TAB: menu-complete
Hit Control+O to save changes to .inputrc followed by control+X to quit
Open a new Terminal window or tab, or type “login” to open a new session with the rules in effect
Start typing a command, path, or something else and hit the Tab key to see the improvements firsthand
This has been tested to work with bash shell and should work with any version of Mac OS X. If you enjoyed this, don’t miss our other command line tips and tricks.