Chealion
  • Member for 12 years, 6 months
  • Last seen more than 2 years ago
Command to unlock "Locked" files on OS X
Accepted answer
176 votes

To unlock files you can use: chflags -R nouchg /PATH/TO/DIRECTORY/WITH/LOCKED/FILES/ chflags = change flags on files/folders such as "locked" -R = recursive or for everything and follow directories ...

View answer
Why does terminal say: "You have mail"?
Accepted answer
164 votes

Somehow you've had a script or something similar deliver mail to your account on your local machine which is stored in /var/mail/$USER You can either remove the file /var/mail/$USER which will remove ...

View answer
What does "2>&1" do in command line?
Accepted answer
89 votes

The 1 denotes standard output (stdout). The 2 denotes standard error (stderr). So 2>&1 says to send standard error to where ever standard output is being redirected as well. Which since it's ...

View answer
How can I get a script to run every day on Mac OS X?
Accepted answer
73 votes

For reference, all 3 options would work. The iCal option however has more limitations than the others. (There are GUIs for editing cron and launchd as mentioned in other answers) Cron is the most ...

View answer
Reset Mac OS X Windows Position after de-attaching external monitor
Accepted answer
69 votes

From my answer originally at Server Fault Question 7237: When a monitor is unplugged (including the adapter as well if applicable - leaving the adapter leaves OS X thinking the monitor is still ...

View answer
Quickly Empty Trash in Mac OS X
Accepted answer
66 votes

If you do it through the Terminal it is nearly always considerably faster: rm -rf ~/.Trash/* However it can be noted that this won't delete files that appear in your Trash from external hard drives, ...

View answer
RSSI value of wifi connection - how to interpret?
Accepted answer
62 votes

RSSI or received signal strength indication can go from 0 to -100 (for Apple - other vendors can measure it differently as RSSI has no stated units. See Wikipedia) Generally the higher (closer to 0) ...

View answer
Change DNS Server From Terminal (or script) on Mac OS X
60 votes

You can use networksetup: sudo networksetup -setdnsservers <networkservice> DNS1, DNS2, DNS3 eg (having the Airport connection use Google's DNS Servers) sudo networksetup -setdnsservers ...

View answer
How do I run a launchd command as root
Accepted answer
49 votes

What folder is the .plist stored in? launchd runs Daemons (/Library/LaunchDaemons or /System/Library/LaunchDaemons) as root, and will run them regardless of whether users are logged in or not. Launch ...

View answer
Markdown Live Preview Editor?
Accepted answer
40 votes

If you want to use TextMate, change your file's language association to 'HTML'. In the Preview window there is a drawer that offers the option pipe the text through 'Markdown.pl'. (See screenshot). ...

View answer
Expanding to all in Xcode Projects groups
Accepted answer
36 votes

The Mac OS X equivalent for expanding a complete tree view is: Option-Right Arrow Condensing it all is: Option-Left Arrow Using Left and Right arrow on their own will only do it for the selected ...

View answer
How do I uninstall and remove a .kext on Mac OS X?
Accepted answer
33 votes

If you don't know the name of the .kext file you can figure it out by using a QuickLook plugin like Suspicious Package if the installer is a standard package (.pkg or .mpkg) that opens in Installer....

View answer
Hide users from Mac OS X Snow Leopard logon screen
Accepted answer
32 votes

The easiest method for hiding system users (if their user ID is < 500) in the login window is to run the following command: sudo defaults write /Library/Preferences/com.apple.loginwindow ...

View answer
Mac OS X automatically turn off Airport if ethernet cable is plugged in
Accepted answer
23 votes

Depending on your reason for turning off the Airport card (as in use the wired connection instead of the wireless when it's plugged in) you may not even need to turn off the Airport card. If you go ...

View answer
Save OS X Grab images in formats other than .tiff?
22 votes

What kind of file are you wanting? If you use the built-in screenshot shortcuts (⌘-Shift-3 / 4) it will save the screenshots by default as .png files. You can find more about this by checking out the ...

View answer
How do I uninstall any Apple pkg Package file?
21 votes

Built into the system there is no option to uninstall the files using an uninstaller so you can either make an uninstaller yourself or remove the files manually. The best method to determine what ...

View answer
How to enable remote access for another account on Mac remotely via SSH?
Accepted answer
20 votes

SSH access by users is controlled by the local copy of Directory Services. (Controlled using dscl) First off run dscl . list /Groups | grep 'access_ssh'. If the returned value says com.apple....

View answer
Further compression of disk image files
19 votes

The Disk Image - is it currently compressed already and if so, did you use the default offered by Disk Utility? You can find out in Disk Utility or by running hdiutil imageinfo /PATH/To/DMG | grep '...

View answer
Keep a window always on top in Mac OS X
Accepted answer
18 votes

Yes and no: Yes, Mac OS X does have this ability for a window to always be on top (aka floating windows) but no, it's not built in to allow you to do that to any window as the user. However programs ...

View answer
How can I convert WAV to Apple lossless in the terminal?
Accepted answer
18 votes

You'll need to make a short bash for loop in a script (or xargs) but the command in question you care about is: afconvert -d alac in.wav out.m4a More info can be found by running man afconvert or ...

View answer
How to Suppress Repetition of Warnings That an Application Was Downloaded From the Internet on Mac OS X?
Accepted answer
18 votes

To remove the quarantine alert you can run the following command in Terminal: xattr -d com.apple.quarantine /PATH/TO/APPLICATION You may need to run this is an administrator depending on the ...

View answer
Common Mac OS folders/settings to check (when trying to get rid of a pesky self-launching app)
Accepted answer
17 votes

Apps that run on Startup: /Library/StartupItems - Standard Startup Items are found here sudo launchctl list or look at /Library/LaunchDaemons and /System/Library/LaunchDaemons for launchd plists that ...

View answer
How do you hide a computer name on a network? (OS X 10.6)
Accepted answer
16 votes

The easiest method is to make sure your computer is not broadcasting any Bonjour messages about what services are available on your computer by turning off the services. In terms of the Finder, make ...

View answer
Create specific GID for a group and add a user to it on Mac OS X 10.5
Accepted answer
15 votes

If you're looking for a more easy to use GUI, I suggest download the Server Admin Tools for your appropriate version (in this case Mac OS X 10.5.7 Server Admin Tools). The program Workgroup Manager ...

View answer
User login "log" on Mac OS X
Accepted answer
15 votes

You can try the command last which unless the log has been cleared should have a log right back until the OS was installed. Specifically look for any console entries.

View answer
How to remove duplicate "ghost" network drive on OS X?
Accepted answer
15 votes

Mac OS X mounts drives by default by creating a folder with the name of the drive in /Volumes and then mounting it at that point (so a drive is normally accessible via /Volumes/NAME_OF_DRIVE). Mac OS ...

View answer
How to create an ssh connection Terminal shortcut on Mac OS X?
14 votes

You have a couple of options that I can think of: Create a .command file In your favorite text editor create to save a plain text file with your ssh command, eg. ssh -p 23 admin@server.example.com ...

View answer
Mac Terminal: changed my shell, now can't start it
14 votes

Another method to change your shell (akin to the chsh command but using a GUI) for your user profile is to do the following: Open System Preferences.app Go to the Accounts Preference Pane If required ...

View answer
TextMate creates temporary files, and doesn't delete them!
Accepted answer
13 votes

._file files aren't actually temporary files but a file that holds the resource fork data for Mac OS X. Mac OS X will create this for files that are being stored on a non-HFS system in order to ...

View answer
iPhone log reader
13 votes

Apple does have some custom applications that allow them to read more information from the phone, however you can use iPhone Configuration Utility (Windows version) to view the iPhone's console log by ...

View answer
1
2 3 4 5
11