Archive for October, 2008

How to use strace on linux

strace -f -o my.x  app

How to add new user in MySql

login as root:

>mysql  -u root -p

>*******

mysql>GRANT ALL PRIVILEGES ON *.* TO 'cooluser'@'localhost'

             IDENTIFIED BY 'some_pass' WITH GRANT OPTION;

find out the size of directory in Linux

what command to use to find out the size of directory in linux?

//assume u want to know the size of mydir

du -h  mydir | grep mydir$