Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

2/09/2012

Restore file permissions

I didn't test it but it must work for owners and owner groups too. Something like:

2/07/2012

Find a directory by name in linux

-type d == directory
-name '.svn' == all directories named .svn
-ls == converts unusual characters to C style escape sequences

To delete the list of directories returned by the above command execute xargs builds and executes command lines from standard input
/bin/rm -dr == remove command with the directory and recursive flags

2/01/2012

Group Sticky bit

To ensure that the group owner of existing and new files stays the same set the group sticky bit like so:

9/16/2010

top - you should use u

I was looking at tops output to observe apache, and was thinking to myself how useful it would be to just go ahead and filter by user, and well...turns out that I should have thought of this years ago (RTFM?): while viewing top, just press u, now enter desired user, hit enter and be amazed ;-)

2/23/2010

Know thy vim!

Real short post! If you use vim, check this out:

9/15/2009

Using VIM color schemes with putty

My eyes are always grateful if I can spare them terrible color schemes. The other day I stumbled on what seemed to be a really nice color scheme called wombat, so I decided to allot five minutes of my time to quickly change the color scheme...or so I thought ;-)

Turns out that when using putty, not all colors are available, and most good looking vim color schemes will not work. After googling, I found that someone has converted the theme for 88 and 256 color xterms. So I downloaded that one too. Surely, now it would work, right?

Well, almost, after some more googling, I finally found the solution. In your vimrc file, simply add the following line

and presto, now you can use the wombat256 theme ;-)