My Blog List

Monday, April 9, 2012

how to install scp on linux


[root@centos6 ~]# yum install openssh-clients

Friday, April 6, 2012

Change Database Characters

Change Character set

There are many way to change character set
this way is to change database character set
ALTER DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci;
belows sql query shows that what kind of character set mysql has
mysql> show character set;

Wednesday, April 4, 2012


+x means a+x : all user can execute

$ chmod +x your-script-name
$ chmod 755 your-script-name





Examples:
$ bash bar
$ sh bar
$ ./bar



echo show on monitor


$ vi first
#
# My first shell script
#
clear
echo "Knowledge is Power"


$ ./first