Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged osx



how to enable or disable spotlight disc indexing from the terminal. all the following work on root "/". to specify another volume, put its path at end of the command
1 1520 posted 16 years ago by stiobhart
0 1094 posted 16 years ago by randyjhunt
1 1731 posted 16 years ago by fnurl
Simply open up terminal and run these commands one at a time. You may need sudo or root access.
0 1327 posted 17 years ago by chrisaiv
`lookupd` doens't exist in Leopard, instead `dscacheutil` should be used.
2 2003 posted 17 years ago by rastersize
Place this in your ~/.bash_profile then type tab in your terminal window to see some magic happen.
0 1388 posted 17 years ago by zingo
When installing mysql and mysql-dev with fink, gem is unable to find the mysql headers and libraries: you should specify their location. If compiled manually from source, gem will find it if /usr/local/mysql (or what ever other location you specified...
0 1312 posted 17 years ago by iblis
recover to normal speed with /sbin/ipfw delete 100 /sbin/ipfw delete 200 ... or reboot
0 1553 posted 17 years ago by zingo
This command will not delete the .DS_Store files from the file system, just take them out of version control. Before doing this it would be a good idea to setup the repository to ignore .DS_Store files.
1 2462 posted 17 years ago by jachin
0 1489 posted 17 years ago by zingo
0 1531 posted 17 years ago by zingo
2 1752 posted 17 years ago by zingo
When Apache under OS X throws 'Forbidden' errors on files under the ~/Sites path, and the error log report 'Permission denied: access to /somefile/blah failed because search permissions are missing on a component of the path', check a missing Other E...
1 1809 posted 17 years ago by cczona
A very dynamic and flexible bash prompt. Personally I find this to have everything needed. It shows exit status, shortens itself for long directories, and shows bash history for easy referencing. Hopefully it doesn't get messed up.
2 1529 posted 17 years ago by robh
0 1330 posted 18 years ago by benpjohnson
After: sudo port -v selfupdate Update outdated ports with: sudo port upgrade outdated
1 1605 posted 18 years ago by rhockens
After installing MacPorts, try running a selfupdate to grab all the latest MacPorts Portfiles (Portfiles contain information about how to install MacPorts software "ports"). You will need to run this command as an administrator, and it requires root...
0 1209 posted 18 years ago by rhockens
[quote] Verbose booting shows you the actual process of Mac OS X's startup. You'll see drivers get loaded and services launch. This command should work on any recent (New World) Macintosh: sudo /usr/sbin/nvram boot-args="-v". The -v flag tells the s...
0 1261 posted 18 years ago by rhockens
"...UNIX systems run scheduled maintenance routines — known as maintenance scripts — to clean up a variety of System logs and temporary files. By default, these are executed between 03:15 and 05:30 hours local time, depending on the script. If...
1 1501 posted 18 years ago by rhockens
List the current version and installation date of every application on a OS X system, using of Spotlight.
1 1246 posted 18 years ago by zingo
8 1725 posted 18 years ago by zingo
Run this command in the Terminal on Mac OS X to flush the DNS cache on your computer. This is especially helpful when making changes to the host file.
2 2381 posted 18 years ago by jonhenshaw
Mount Samba share from osx terminal, might not show up in Finder
0 2055 posted 18 years ago by vanne
0 1194 posted 18 years ago by tgunr
Enter this at the commandline.
0 1478 posted 18 years ago by Roshambo
0 1923 posted 18 years ago by netjackal
Obviously you need to have heartbeatd handled by Launchd
0 1220 posted 19 years ago by smoothnoodle
0 1261 posted 19 years ago by whitetiger
0 1267 posted 19 years ago by whitetiger