Tag Archives: Terminal

How to kill a process in OS X

ActivityMonitorIconXWhen an application hangs on your Mac, sometimes the quickest fix is to force the application to quit. In most cases, this will free the system and allow you to re-launch the program to get on with your work. There are three main ways to force-quit a program in OS X. The first is the Force-Quit menu, activated by pressing Option-Command-Escape or by choosing it from the Apple menu. With this, you can quit OS X application programs launched in your user account. Continue reading

How to edit files in TextEdit from the OS X Terminal

NewTerminalIconXIf you are a Terminal user, then you very likely spend a fair amount of time editing various text files, be they configuration files, scripts, or data files you might use for your work. For a seasoned Terminal veteran, the various text editors like vi, emacs, and nano, may offer all the tools needed for getting the job done, but for those less familiar, managing these tools can be cumbersome. Luckily, in OS X there is a quick way to make use of GUI-based programs for handling pretty much any document you might encounter in the Terminal. Continue reading

Three useful workflow tips for OS X Terminal users

NewTerminalIconXWhether you are a seasoned Terminal user or just getting your feet wet, you may find yourself somewhat limited by the text based interface of the Terminal. Though powerful, the single line entry point, fixed font size, and scrolling history behavior of the Terminal’s output may have you squinting, scrolling, and otherwise jumping through some hoops to see what you are working on. However, there are a few built-in tricks in the OS X Terminal that may help you overcome these frustrations. Continue reading

Three ways to open the current Finder window in the OS X Terminal

NewTerminalIconXOS X includes a service where you can open the OS X Terminal at a selected folder, but this is not always the optimal approach. For one, it requires you select a subfolder to act on, which will have the Terminal open it instead of the current Finder window, requiring you to then “cd ..” to get to the folder you want. This also requires there be a folder to select in order for this to work in the first place. Alternatively, there are three additional approaches you can use which may be quicker and easier approaches. Continue reading

Overcome Bluetooth devices not staying paired after sleeping OS X

BluetoothIconXIf you have bluetooth devices paired with your Mac, then they ought to automatically re-establish their connection when you restart your Mac or wake it from sleep. However, there may be times when this does not occur, and furthermore, you may find yourself unable to maintain the connection once woken from sleep. As a result, your connected devices may continually drop, or refuse to pair after sleeping. Continue reading

How to fix unexpected error -50 in OS X when deleting or moving files

FinderIconYosemiteXDespite its user-friendly interface, OS X sometimes gives no more information than an error code when something goes wrong. One of these is error code -50, which may occur when you attempt to copy, move, or delete files from external hard drives. If this occurs and you are stuck with a file you cannot manage, then you can likely overcome this error with a few possible approaches. Continue reading

How to launch OS X apps via the Terminal

NewTerminalIconXThe Terminal is generally reserved as an environment for advanced configuration of your Mac, but there are those who resort to it on a regular basis and use it in conjunction with OS X’s graphical interface to make optimal use of the system. If you do so, then you might find yourself periodically wanting to launch an application, either directly from the command line, or from an automated action like a script. In addition, you can use this feature to launch multiple instances of a standard OS X program, or run it as a different user, such as root, which can give you access to the system in ways you might otherwise not have. Continue reading

How to use LaunchAgents to monitor folder contents in OS X

NewTerminalIconXWatching folders for various changes in OS X can be exceptionally useful for automating tasks to handle any files added to the folder. This can be especially useful as a security measure for determining unwanted changes to key system folders. One robust solution for this is to use Appleā€™s Folder Actions feature for monitoring folders, and while still one I prefer and recommend, another approach is to use the system launcher. Continue reading

How to bypass FileVault when you restart your Mac

SecurityIconXWhen you enable FiieVault on your Mac, you greatly enhance its security by encrypting all of its drive contents. This approach makes it exceptionally difficult for any data on the drive to be recovered; however, it does require that whenever you restart your Mac, you provide the password of an account that is authorized for unlocking the drive. Unfortunately, since the OS cannot boot until you provide this password, then this effectively locks out your ability to use your Mac, including accessing it remotely. Continue reading

Fix inaccessible and grayed out folders in the OS X Finder

FinderIconYosemiteXAll files and folders that you encounter when browsing the Finder in OS X should be displayed in regular font and icon color; however, there may be times when this is not the case, and one or more folders may appear grayed out and otherwise faded. When this happens, you will not be able to open the folder, and unlike other folders that may show a small entry triangle next to them in list view, these will not have options for viewing what is inside. Continue reading