Archive

Archive for the ‘linux’ Category

color grep less

May 25, 2009 varnit Leave a comment

Add this in your bashrc

alias grep='grep --color=always';
alias less='less -R';

Categories: bash, linux

find multiple files

February 6, 2009 varnit Leave a comment

find . -name file1.txt  -o -name file2.txt -o -name file3.txt

Categories: find, linux Tags: ,

sync date time with ntp client

February 2, 2009 varnit Leave a comment

ntpdate -u ntp.host.com

Categories: linux Tags:

gentoo add user

December 4, 2008 varnit Leave a comment

Add a new user called ‘username’ to users and wheel group, the wheel group will allow you to su

useradd -m -G users,wheel username

then

passwd username

Categories: gentoo, linux

gentoo apache2 userdir

November 8, 2008 varnit Leave a comment

edit file

/etc/conf.d/apache2

append

-D USERDIR

to APACHE2_OPTS

Categories: apache, gentoo, linux