Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged Bash



Open up terminal, paste the code below, then log your user out.
0 1609 posted 18 years ago by chrisaiv
Running this command will append a line with given values to a file you specify. Replace words between < and > with the values you desire.
1 2168 posted 18 years ago by engel
Set a reminder. Use +hhmm to set a reminder for some hh (hours) or mm (minutes) in the future; e.g., set an alarm for 45 minutes from now as: leave +0045
0 1326 posted 18 years ago by rhockens
0 1559 posted 18 years ago by benpjohnson
One shot verbose expansion.
4 1742 posted 18 years ago by bbhack
After: sudo port -v selfupdate Update outdated ports with: sudo port upgrade outdated
1 1816 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 1399 posted 18 years ago by rhockens
Leave off the final pipe to /bin/sh to do a 'dry run'
3 2741 posted 18 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 1871 posted 18 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 1466 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 1763 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 1432 posted 18 years ago by zingo
8 1969 posted 18 years ago by zingo
for .bashrc, a function that cd's to a directory and lists the contents it takes ls arguments and a directory. for example, cl goes to home dir and lists contents. cl -l goes to ~/ and long lists contents. and cl -lrt public_html shows the contents o...
0 1486 posted 18 years ago by zingo
updates (svn up) a working copy and displays the changes
4 1882 posted 18 years ago by zingo
0 1275 posted 18 years ago by gtcaz
- lowQ/ is the output directory - pass quality level from 1 to 100
2 2076 posted 18 years ago by abhiomkar
Usage: save the script to ~/scripts/my.bashrc and then source it in .bashrc.
0 1780 posted 18 years ago by thebugslayer
Mount Samba share from osx terminal, might not show up in Finder
0 2273 posted 18 years ago by vanne
2 1576 posted 19 years ago by gtcaz
1 1235 posted 19 years ago by tgunr
0 1394 posted 19 years ago by tgunr
List all packages that are installed in your system
1 1464 posted 19 years ago by vanne
0 2961 posted 19 years ago by sudarkoff
My additions to the textdrive .profile
0 1240 posted 19 years ago by ryansobol
7 1933 posted 19 years ago by basicmagic
Remove all those annoying thumbnail files that Windows users created while browsing your network drive. This command traverses all directories and deletes all "Thumbs.db" files as it finds them.
1 2724 posted 19 years ago by Roshambo
Move all mails with a certain subject (in this case starting with the word "Undelivered" into a backup dir. It is by no means a mail filter, I needed it to clean out the maildirectory after a HDD crash wich caused over 1000000 (one million) local bo...
0 1385 posted 19 years ago by berkes