Welcome To Snipplr


Everyone's Recent Bash Snippets



As root run
0 425 posted 15 years ago by therobot
One shot verbose expansion.
4 463 posted 15 years ago by bbhack
-nd do not create a hierarchy of directories (save all recursively retrieved files in the current directory) -r recursive retrieving -l1 set maximum recursion depth to 1 (stay in that folder): set to 2 if necessary --no-parent do not...
3 673 posted 15 years ago by iblis
If you set the NSObjCMessageLoggingEnabled environment variable to "YES", the Objective-C runtime will log all dispatched Objective-C messages to a file named /tmp/msgSends-.
0 440 posted 15 years ago by zingo
2 485 posted 15 years ago by therobot
1 404 posted 15 years ago by therobot
0 360 posted 15 years ago by therobot
1 323 posted 15 years ago by hyperwhat
Good info here too: http://www.ilisys.com.au/support/linux-password-protect/
2 1000 posted 15 years ago by jonhenshaw
2 373 posted 15 years ago by hyperwhat
Manipulate the names of all the files in a folder in bash
4 490 posted 15 years ago by benpjohnson
After: sudo port -v selfupdate Update outdated ports with: sudo port upgrade outdated
1 489 posted 15 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 426 posted 15 years ago by rhockens
Leave off the final pipe to /bin/sh to do a 'dry run'
3 732 posted 15 years ago by ches
A one-liner to remove any temporary files modified over one day ago. Removes files from /tmp/ Run without the '-exec rm {} \;' part to check that it is matching the right set of files - this can be dangerous if run by root! If you want to remove fi...
1 523 posted 15 years ago by wolfie
[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 414 posted 15 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 512 posted 15 years ago by rhockens
Useful when your server runs out of disk space
1 419 posted 15 years ago by benpjohnson
Replace /dev/hda/ with the device path to your disk
0 395 posted 15 years ago by hyperwhat
0 393 posted 15 years ago by hyperwhat
Run this in a terminal on mac to set your screensaver as your background. (hint: use rss visualizer for a neat effect) Ctrl+C to stop.
1 417 posted 15 years ago by capitalist
List the current version and installation date of every application on a OS X system, using of Spotlight.
1 415 posted 15 years ago by zingo