°Ë¸ö²½ÖèÐÞ¸ÄlinuxÊ±Çø
For ubuntu: [1]http://webonrails.com/2009/07/15/change-timezone-of-ubuntu-machine-from-command-line/
2
Logged in as root, check which timezone your machine is currently using by executing `date`. You'll see something like Mon 17 Jan 2005 12:15:08 PM PST, PST in this case is the current timezone.
3
Change to the directory /usr/share/zoneinfo here you will find a list of time zone regions.Choose the most appropriate region, if you live in Canada or the US this directory is the "America" directory.
4
If you wish, backup the previous timezone configuration by copying it to a different location. Such as
mv /etc/localtime /etc/localtime-old
5
Create a symbolic link to the appropriate timezone from /etc/localtime. Example:
ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
6
If you have the utility rdate, update the current system time by executing
/usr/bin/rdate -s time-a.nist.gov
7
Set the ZONE entry in the file /etc/sysconfig/clock file (e.g. "America/Los_Angeles")
8
Set the hardware clock by executing:
/sbin/hwclock --systohc
2.ÐÞ¸ÄmysqlÊ±Çø
MySQL Ê±ÇøÄ¬ÈÏÊÇ·þÎñÆ÷µÄÊ±Çø¡£
¿ÉÒÔͨ¹ýÒÔÏÂÃüÁî²é¿´SQL´úÂëmysql> show variables like '%time_zone%'; +------------------+--------+ | Variable_name | Value | +------------------+--------+ | system_time_zone | CST | | time_zone | SYSTEM | +------------------+--------+ 2 rows in set (0.00 sec) ¿ÉÒÔͨ¹ýÐÞ¸Ämy.cnf
ÔÚ [mysqld] ֮ϼÓ
default-time-zone=timezone
À´ÐÞ¸ÄÊ±Çø¡£È磺
default-time-zone = '+8:00'
¸ÄÁ˼ǵÃÖØÆômsyqlà¸
×¢ÒâÒ»¶¨ÒªÔÚ [mysqld] Ö®ÏÂ¼Ó £¬·ñÔò»á³öÏÖ unknown variable 'default-time-zone=+8:00'
ÁíÍâÒ²¿ÉÒÔͨ¹ýÃüÁî set t
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
1. ´´½¨Ä¿Â¼
mkdir
NO1. ÔÚµ±Ç°Â·¾¶´´½¨Ò»¼¶Ä¿Â¼
[root@rehat root]# mkdir test
NO2. ÔÚµ±Ç°Â·¾¶´´½¨¶à¼¶Ä¿Â¼
[roo ......
Ò»¸öÎļþ£¬³ýÁ˱¾Éí°üº¬µÄÄÚÈÝÒÔÍ⣬»¹»áÓÐÒ»¸öÃû×ÖºÍÆäËûһЩÓÃÓÚ¹ÜÀí·½ÃæµÄ“ÊôÐÔ”ÐÅÏ¢£¬±ÈÈçÎļþµÄ½¨Á¢/ÐÞ¸ÄÈÕÖ¾£¬ËüµÄ·ÃÎÊȨÏ޵ȡ£ÕâЩÊôÐÔ¶¼±»±£´æµ½Ò»ÖÐÎÒÃdzÆÖ®Îªinode£¨½Úµã£©µÄÊý¾Ý½á¹¹ÖУ¬ÎļþµÄ³¤¶ÈºÍËüÔÚ´ÅÅÌÉϵĴæ·ÅµØµãÒ²±£´æÔÚÕâÀϵͳʹÓõÄÊÇÎļþµÄ½Úµã±àºÅ£¬¶ø×ÓĿ¼½á¹¹Ö»²»¹ýÊÇΪ·½±ãÈËÃÇ ......
1. grep¼ò½é
grep £¨global search regular expression(RE) and print out the line,È«ÃæËÑË÷ÕýÔò±í´ïʽ²¢°ÑÐдòÓ¡³öÀ´£©ÊÇÒ»ÖÖÇ¿´óµÄÎı¾ËÑË÷¹¤¾ß£¬ËüÄÜʹÓÃÕýÔò±í´ïʽËÑË÷Îı¾£¬²¢°ÑÆ¥ÅäµÄÐдòÓ¡³öÀ´¡£UnixµÄgrep¼Ò×å°ü À¨grep¡¢egrepºÍfgrep¡£egrepºÍfgrepµÄÃüÁîÖ»¸úgrepÓкÜС²»Í¬¡£egrepÊÇgrepµÄÀ©Õ¹£¬Ö§³Ö¸ü¶ ......