Hot answers tagged

15

For files hidden by prepended . To show: defaults write com.apple.finder AppleShowAllFiles YES; killall Finder To hide: defaults write com.apple.finder AppleShowAllFiles NO; killall Finder edit: as per RikerW's advice, to shorten these long strings into some shorter strings, add the following line to ~/.bash_profile from your favorite text editor: ...


11

I use Sublime Text 2 (version 2.0.2, Build 2221) under OS X 10.8.5 and I move from word to word by pressing the option key and left or right arrow key. option+← option+→ These are the OS X standard shortcuts so most apps that use the standard SDK behave similarly.


10

You can use the sips command to pad any JPEG or BMP image to a specified size, with a specified colour. In your case, the command would look something like: sips photo-500x640.jpg --padToHeightWidth 640 640 --padColor 000000 --out photo-640x640.jpg obviously with the input and output filenames of your choice. For white instead of black borders, change ...


9

/usr/local has been both re-creatable and writable on El Capitan since 2015-10-21 when Apple released /System/Library/Sandbox/Compatibility.bundle version 12 in software update 031-40358 patching 10.11 and 10.11.1, and installed as part of the 10.11.2 update, 10.11.2 combo update, and 10.11.2 clean installs. You do not need to do anything special unless you ...


7

export into a CSV: two columns, separated by ; (assuming there is no ; in a file name) open Terminal change to folder containing the files run perl -pi -e 's/\r\n/\n/;' LISTOFNAMES.csv to fix CRLF issues run while IFS=\; read old new; do mv "$old" "$new"; done < LISTOFNAMES.csv PS: This will overwrite existing files if the new name already exists. ...


5

Yes, the built-in Calendar app lets you add them. For your Mac: On your computer, open Calendar In the top left corner of your screen, click Calendar > Preferences. Click the Accounts tab. On the left side of the Accounts tab, click +. Select Google > Continue. Enter your Gmail address, password, and verification code (if you have one). Click Accept. On ...


5

Apple supports this out of the box. Under the Sharing preference pane you need to enable either the Screen Sharing or the Remote Management and then use the Computer Settings dialog to enable VNC. The service starts up automatically when incoming network traffic on the VNC ports is detected by the OS. Now, you do need to get past any FileVault pre-login ...


5

pbpaste pastes exactly what you copy. In your case you have copied the line not including the CR/LF at the end. To get the return you need to copy from the start of the line to the beginning of the next line From @patrix comment Most commands do end with a CR/LF. e.g. echo "Hello" will put out a newline, however for echo this can be changed echo -n ...


5

The best solution I use for adding the SSID to the menu bar is turning off Apple's menu item and using WiFi Signal app from Adrian Granados: https://www.adriangranados.com/?q=apps/wifi-signal https://itunes.apple.com/us/app/wifi-signal/id525912054?mt=12 It's much fuller featured than just displaying the SSID, but it does that job nicely. I am a very ...


5

One of Mac's most confusing features is the red close button, which you think would shut down an application but often doesn't. When you press X button in the window - you actually close the windows related to the app, but it does not quit. Here's more information: Close windows When you close an app’s window, the window closes, but the app remains ...


5

You can stop the ssh service by typing the following: $ sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist To start it again, use this: $ sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist


5

When using OS X, it's usually more advisable to use diskutil for disk-related activities. TL;DR: To mount a volume/disk by identifier: diskutil mount /dev/diskXsY # mounts just that volume diskutil mountDisk /dev/diskX # mounts the whole disk To mount a volume by UUID: diskutil mount [Volume/Partition UUID] To mount a volume by label: ...


4

When you download the installer from the AppStore, it is saved as Install OS X El Capitan.app in the Applications folder. Behind the scene .app files are really just folders which are treated as a single file by the OS. My guess is that you either have an incomplete file or something has gone wrong when you copied the file to the ftp server. If you ...


4

I also believe Time Machine's GUI is not able to do that. But if you feel like fiddling in CLI from terminal, and do some basic scripting, it can be done quite easily using the tmutil command: tmutil addexclusion and tmutil removeexclusion would allow to change your exclusion list by script whenever you want. tmutil startbackup -destination would allow to ...


4

The simplest and most secure way is to: reboot into recovery (CMD+R) start Disk Utility from the menu, select Macintosh HD and either Unlock if encrypted otherwise Mount once Macintosh HD is mounted, close Disk Utility start a Terminal from the Disk Utility menu Now run the following commands: $ mkdir "/Volumes/Macintosh HD/usr/local" $ chflags ...


4

on run {input, parameters} is AppleScript syntax, not a valid shell command. If you want to execute AppleScript in the service, use the Run AppleScript action instead of Run Shell Script.


4

Your main volume is encrypted with FileVault and still locked – consequently it doesn't show up in /Volumes. Before being able to mount it you'd have to unlock it: diskutil cs unlockVolume lvUUID #replace lvUUID by the one shown in the diskutil listing You will then be asked to enter the passphrase/password. You have to enter a passphrase or a password of ...


4

Aliases aren't interpreted within shell scripts. From bash(1): Aliases are not expanded when the shell is not interactive, unless the expand_aliases shell option is set using shopt) So the script still calls the standard readlink which doesn't know about --help. Instead of setting expand_aliases (which you have to remember to do so on each system and ...


3

I've found this to be one of the most simple ways: In a spreadsheet column, concatenate: "cp oldfilename newfilename" to create a copy with the new name. Use "mv oldfilename newfilename" to replace the old files rather than copy. Copy this concatenated column to a text file and save as rename.sh in the folder with the files to be renamed. Open terminal, ...


3

If you assume a malware infection, by all means reinstall the OS by rebooting into the Recovery Partition with Cmd-R and reinstall from there. This should not affect your existing users (or their files). See OS X: About OS X Recovery for details about the procedure.


3

exFAT is the only format which will work for you as it will allow files greater than 4GB and work on Windows. Disk Utility can format using exFAT.


3

You aren't releasing the Alt key (aka Option) quickly enough after typing the "|", so you're getting Option-Space, which is a non-breaking space. This looks like a normal space but gets treated as part of the command name rather than as a separator. See this SuperUser question for some options to disable the Option-Space key combo.


3

The standard package format is the "pkg" format. It's not often used for applications, but it's fine for a terminal-only utility. My go-to tool for creating packages is called Packages. I haven't used it myself, but it looks like CMake supports PackageMaker, which is a third party tool for creating OS X packages. There's also the built-in pkgbuild utility. ...


3

The trackpad is connected over USB - so try these things before seeking hardware service: Check System Information app like the image below Disconnect all external devices and restart to reset the NVRAM (that causes the hardware tree to repopulate) Make a system backup and possibly reinstall the latest combo update / or install a new OS on an external ...


3

Unless your models are Early for the years, they should be supported. http://www.apple.com/osx/how-to-upgrade/#hardware-requirements Apple requires you to have 10.6.8 or newer running since that's where the Mac App Store runs. If you have access to any Mac running 10.6.8 or newer, you could sign in to the App Store and download the 10.11 installer. It ...


3

OS X does not store a plain-text copy of your administrator password. This makes it impossible to have the computer show you the existing password. OS X can only test if an attempted password is the administrator password. OS X has no way to show you the original. The original is immediately thrown away when the password is set; only a hash of the password ...


3

There are access control restrictions on that directory. You can inspect those from the command line: ls -lOe / (That's a capital letter O and not a zero 0) I would suggest mounting your volume to another directory - either /tmp or $TMPDIR rather than messing with the restrictions that are designed to prevent what you have - an actual directory with ...


3

According to http://superuser.com/questions/59376/how-to-tell-where-an-item-in-the-trash-came-from, "I know the original locations are stored in ~/.Trash/.DS_Store". .DS_Store is the name of the file that stores various Finder-related information. Following that question, there is also How do I check where the file in .Trash was removed from? and How to ...


3

You can use sntp as standard query tool for either NTP or SNTP servers. You may get, set or adjust the time on your host with it. E.g. sntp time.euro.apple.com shows the time sntp -d time.euro.apple.com shows a more verbose response including the current time. Check man sntp for more options.


3

You need to go to Keyboard Preferences and add a new keyboard. Instead of using USA International keyboard you will need to use USA Keyboard. So from Use instead When you are going to add a Keyboard you select English. At the end of the list you will see both keyboards. Use the one that is not international.



Only top voted, non community-wiki answers of a minimum length are eligible