[置顶]linux 命令备忘–持续更新中(2011/04/22)

1.MySQL创建用户 CREATE USER ‘devuser3’@’localhost’ IDENTIFIED BY ‘***’; GRANT ALL PRIVILEGES ON * . * TO ‘devuser’@’1.1.1.’ IDENTIFIED BY ‘&4r0Oai7ehDa9871M’ WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;

2.VI替换:来源:CU 举个例子啊: 将文件tihuan(假设此文本中字符a)中的所有字符a换成字符w,其命令为: 1。vi tihuan 2。按esc键 3。按shift+: 4。在:后输入 %s/a/w/g

Leave a Reply

Your email address will not be published. Required fields are marked *