Find the largest files in a folder in Linux

Just a quick note here, if you are running out of space on your Linux machine and need to find the files taking up the most room, try this command!

du -hsx * | sort -rh | head -10

3.9G    logs
85M     vendor
79M     utils
71M     sales
43M     products
27M     src
23M     classes
15M     images
14M     forms
12M     yui

Subversion – Add all new files

Git rocks.

But sometimes we must use Subversion, or worse still CVS!

Anyway, with git I would usually:

git status
git add .
git commit -a
git push (if necessary)

subversion won’t let you just ‘add .’, which really sucks! As always though, you can geek it up in the command line and type this:

svn status | grep ‘?’ | sed ‘s/^.* /svn add /’ | bash

which filters through the status, greps for the new files starting with ‘?’ and then adds them, outputting to the terminal window. A bit long winded, but it works!