Terminal - page 2

Use Single-User Mode To Solve Wonky Mac OS X Issues [OS X Tips]

By

fsck

I saw this tip over at OS X Daily today, and it reminded me of all the times I did this as a Mac IT guy a couple of jobs back.

See, every so often, the Macs where I worked would start to act weird. Nothing truly game-stopping — just little things, stuff that was easily worked around but always a little bit annoying. The first stop when things are weird, for me, was always Repair Permissions in the Disk Utility app. I’d usually then Verify the disk in that very same app, and see if it returned any errors. If not, I’d usually drop into single-user mode and do a file system check.

Here’s how to do just that.

Do It Your Way – Set A Custom Delay Period To Unhide The Dock [OS X Tips]

By

Dock Unhide Delay

I routinely hide the Dock on my Macbook Air, since it takes up a significant portion of my screen. While I use Alfred most of the time to launch apps and such, I still like to use the Dock; call it a hold over from the last ten years or so.

Sometimes, though, when I move the mouse cursor over to the side of the screen I keep the Dock on (the left, if you’re curious), it pops up even when I don’t want it to.

Then I found this Terminal command which lets me set the time delay between when my cursor hits the edge of my screen and when the Dock actually appears. Now I have the delay period set to a larger number, making it much slower to respond and unhide.

You’ll Need To Install Java On OS X Mavericks Beta [OS X Tips]

By

java-logo

As we continue to look at some tips for the new OS X beta this week, remember that OS X Mavericks isn’t a final version—it’s meant to be used by developers to ensure that their software will work with Apple’s latest and greatest.

With that disclaimer in mind, let’s continue.

If you need to use Java for any reason on your Mac, and you install OS X Mavericks beta on it, you’ll be sad when you try and run that Java-reliant bit of software.

For me, it was setting up the Minecraft server for my kid after I installed the beta last night to take a look at things. When I went to run it in Terminal, I got an error, saying there was no Java installed. So, even though I’d had Java installed in Mac OS X Mountain Lion, the Mavericks install seems to have taken Java off my Mac. No worries; it was kind of an easy fix.

Brett ‘I Just Built This’ Terpstra Adds Reminders To Nvalt

By

nvremindreminders.jpg

Brett “I just built this” Terpstra has been at it again. Inspired by Evernote’s new reminders feature, launched last week, Brett decided to add something similar to his app NValt, itself a fork of the notable Notational Velocity. It’s called “nvremind,” and it’s pretty awesome.

Now, just by tagging a note with “@remind,” you’ll be sent a notification or an e-mail at the chosen time, and in Mountain Lion, clicking the notification will take you to the note in NValt.

Save Space On Your Hard Drive – Disable SafeSleep Mode On Your Mac [OS X Tips]

By

SafeSleep Mode Disable

Warning – this tip is fairly advanced. Use it at your own risk.

There’s a feature that debuted back in 2005, called SafeSleep. Basically, it’s a hibernation mode designed to save the current state of your running Mac, so that it can start up exactly the same way you left it when you put the Mac to sleep, even if the battery runs out and it shuts down completely.

In OS Lion, Apple introduced two new features, called Autosave and Resume which mirrors this functionality. Turning off SafeSleep, then, is really just disabling a duplicate feature. It shouldn’t affect Autosave or Resume if you’re running OS Lion or later, and it could potentially save you gigabytes of hard drive space.

Here’s how to do it, though we caution you not to do this if you’re even slightly uncomfortable with the idea.

There Is A Surreal Cyberpunk Adventure Game Built Into OS X That You Never Knew About

By

Screen Shot 2013-04-15 at 10.55.33 AM

OS X comes with an almost non-existent collection of games by default. You’ve got a really lackluster chess game that hasn’t been updated for over a decade… and that’s pretty much it.

But did you know OS X has a secret game you’ve probably never seen, built right into the kernel of the operating system? It does, but don’t expect something on the level of Infinity Blade, or even Wolfenstein 3D… think more primitive. There’s a text adventure game built right into Terminal!

Mastering OS X Calendar: Customize The Number Of Days Shown [OS X Tips]

By

Still better than the Beatles.
Still better than the Beatles.

Remember that tip we gave you about showing more than seven days in a week in iCal? It’s been a while (and the app is now called Calendar), but there used to be a way to enable a Debug menu in iCal to allow you to open multiple windows, change the number of weeks that appear before and after the start date in Day View, and even show more than just seven days in a week.

Well, that debug menu has gone the way of Mac OS X Lion, but there is a cool Terminal command that does the same thing.

Mastering OS X Calendar: Change The Time You Get Notified Of All Day Events [OS X Tips]

By

Calendar Default Event Time

When you create a Calendar event, you have the option to have your Mac notify you of that event before it happens. In the case of an all-day event, however, you don’t have an easy option to change the time of day you’ll get the notification.

It can be done, however, with a little digging into the filesystem and a configuration file, letting you change the time of day you’re notified by default for all-day events.

Customize Mission Control To Show Only Windows From Current Desktop Space [OS X Tips]

By

Mission Control

When you activate Mission Control, it will show you all the windows for currently running apps, as in the screenshot above. If you click on a window that’s in a different Desktop Space, your Mac will swoosh you over to that window, taking you out of the Space you’re currently in.

To avoid that from happening, you can force Mission Control to only show you windows from open apps in the current Desktop Space. Here’s how.

Quick Hack Speeds Up Retina MacBook’s Wake From Sleep [OS X Tips]

By

IMG_0005

The Retina MacBooks are fabulous machines. They’re super thin, powerful, and just plain sexy. But have you ever opened your Retina MacBook and watched the screen just sit there in limbo for a few seconds before it actually comes alive again? It’s frustrating that you can see the password box, but you can’t actually type anything until the MacBook fully wakes up.

Apple has baked a feature called “standby mode” into the Retina MacBook Pros and the post-2010 MacBook Airs. Standby mode is the reason newer MacBooks sometimes take a little longer to wake, and there happens to be a simple terminal command you can enter in OS X to change the timing.

TextExpander Snippet Runs Shell Script To Get Info About Your Mac

By

cult_logo_featured_image_missing_default1920x1080

There are a handful of apps that I have to have on every Mac I use, or things quickly start to get annoying. Launchbar is one. Dropbox is another, and TextExpander is one more. TextExpander is sold as a way to expand a short string of text into a longer string of text, so I can just type, say, “aadd” and my address magically appears. I use it all day long on both Mac and iOS for adding Markdown and HTML code to my Cult of Mac posts, and even to the the name Cult of Mac (shortcut: ccom).

But there’s a lot more in there, as this example will show. BEcause TextExpander can run scripts, it can query all kinds of neat stuff — including finding out about your Mac.

Turn Off Mail.app’s Automatic Attachment Preview ‘Feature’ [OS X Tips]

By

I didn’t really want to see what that photo was, anyway.
I didn’t really want to see what that photo was, anyway.

One of the cool things I loved about Apple’s Mail.app was the way it provided a visual preview of the attached files that came in my email. It was nice to be able to see exactly what was sent along with the email.

Some folks, however, might not dig this feature, and might want to turn it off. Maybe it helps them feel better, or they don’t need the visual preview. For whatever reason, if you’re one of those people, here’s how to turn it off.

Bypass iPhoto’s Built-In Email Functionality And Use Mail App Again [OS X Tips]

By

iPhoto Email

Used to be that when you shared photos from iPhoto via email, iPhoto would open up Mail app, drop the photos in as attachments, and let you send from there. Nowadays, iPhoto uses an internal email routine that mimics the iOS way of adding photos to email, but many folks just plain don’t like it. If you fall into this camp, and want to disable this iPhoto “functionality,” this tip is for you.

Select And Copy Text Right In Quicklook [OS X Tips]

By

Quicklook Text Select

Quicklook is Mac OS X’s way of letting you see any file up close with just a tap of the spacebar. When you’re in the finder, for example, and you click on a photo, you can hit the spacebar and see the photo large and up close, making it easier to figure out which images to toss, and which to save. You can do the same with any supported text file, like an rtf, doc, or pdf file to see what’s in it at a glance.

But what if you want to copy a quick bit of text to paste somewhere, like an email? Instead of opening the file, waiting for the associated app to load, and then copying the bit of text, give this trick a shot.

Make Terminal Prettier And More Functional With Themes [OS X Tips]

By

Oooh, pretty.
Oooh, pretty.

The default black type on white screen window that comes as default in OS X Terminal is functional, but it’s really not that fun to use. Adding in color and some contrast is a good way to keep your aesthetic sense engaged, as well as make Terminal a bit more useful. In fact, there are many other themes built right in that do just that, and several you can download and install from the web.

Here’s how to change to one of the built-in Terminal themes, and a bit more on how to install third-party ones to boot.

Get Rid Of Open With… Right-Click Menu Duplicates [OS X Tips]

By

Get Rid Of Open With Duplicates

Tired of right-clicking (control-click or two-finger click on trackpads) on a file and seeing a ton of duplicates in the Open With… contextual menu pop up? Not only is it aesthetically annoying, it takes up valuable real estate on smaller screens, and makes you move your mouse cursor more than you should, which could lead to repetitive-stress injuries. Or, you know, a tired finger or three.

Anyway, if you want to get rid of those duplicates, try the following.

Mastering Terminal To Hack Your Mac [Feature]

By

Finder-Terminal

Terminal app can be daunting at first, but it’s really the best way to hack into your Mac’s configurations and preferences to customize things to work for you rather than against you. With the right Terminal commands, you can tweak the Finder, mess with the user interface, build a more private and secure Mac, and even enable features that aren’t officially supported on older Macs.

Here are a few of the better ones.

Mastering The Terminal To Use New Features On Unsupported Macs [OS X Tips]

By

Finder-Terminal

So far this week, we’ve spent time hacking our Macs via the Terminal, the best darn behind-the-scenes app you can find in Mac OS X. We’ve talked about tweaking the Finder, the user interface, security and privacy, and the Dashboard.

Today, let’s look at a few of the newer features of the OS X world, and how to make them work on older, unsupported Macs using some Terminal magic.

Mastering Terminal To Hack The Finder [OS X Tips]

By

Finder-Terminal

The Terminal app is like a window into the inner workings of your Mac. It accesses the Unix core of your Apple computer directly and without any muss or fuss. It can feel pretty daunting at times, but it’s really the way to dig in and make your Mac work the way you want it to. The Finder can be hacked a bit using the Terminal, of course, so we figured we could show you a few tricks, too.

Here’s how to hack up the Finder a bit to make it work better for you.

Enable Spotlight Indexing To Re-Index Your Mac Hard Drive [OS X Tips]

By

Apple_in_the_Spotlight

A while back, we wrote up a tip on reindexing the hard drive on your Mac using Terminal. Recently, a Cult of Mac reader emailed us to let us know it wasn’t quite working on his end.

Rob,
I read your post on using terminal to reindex the hard drive on a mac. Any idea why when the command is executed the terminal displays “Indexing disabled.”?

Thanks,
Mike S

Here’s what he had to do to get it working again.

How To Reset A Lost User Password In Lion Or Mountain Lion [OS X Tips]

By

OS X Utilities

I ran across an issue yesterday in trying to support a Macbook Pro at work. We wanted to reformat the Macbook to a clean system install, but we had no system disk for the computer (it was lost in the move to our new offices), and we didn’t know the admin password for the Mac. I thought we were out of luck, until I ran across a solution in Apple’s discussion forums that showed me how to reset the admin password without a system disk. I figured I’d share this process here, hoping it helps some of you out.