随笔分类 - linux
command of linux
摘要:1. 备份 2. 修改 在[mysqld]下修改为bind address=0.0.0.0 没有的话就直接加上 3. 重启 `service mysql restart`
阅读全文
摘要:test.txt原文内容 ` http://jsldfjaslfjsldfjasl/test?jlsdfjsalfjslfd ` 使用sed替换 ` sed ri 's/(http:\/\/)[^\/] (\/test)/\1localhost:8888\2/' test.txt ` test.tx
阅读全文
摘要:"reference" 用'&&' 当第一个命令正确执行完毕后再执行后续的命令 用';' 不管第一个命令是否出错都执行下一个命令
阅读全文
摘要:"reference" $( )与 (反引号)都是用来做命令替换(command substitution)用的 run command 3, 2, 1 command1 $(command2 $(command3)) ${ }用来作变量替换 A=1 echo ${A}0 print 10
阅读全文
摘要:"doc link" "uwsgi link" "video link"
阅读全文
摘要:set nocompatible set encoding=utf8 set guioptions-=T set number set guifont=consolas:h12 source $VIMRUNTIME/delmenu.vim source $VIMRUNTIME/menu.vim filetype off filetype plugin indent on syntax on...
阅读全文
摘要:vi /urs/bin/yum 将#!/usr/bin/python的python改为python2.x(你系统的python2的版本)
阅读全文
摘要:#!/bin/bash #@author vickey main() { TMP_PATH="/home/test" echo "are you sure to del all files in test/?" echo "y/n?: " read answer if [ ${answer} == "y" -o ${answer} == "Y" ] then restart ...
阅读全文
摘要:rm /usr/bin/python ln -s /usr/local/bin/python3.x /usr/bin/python sybomlic 安装目录 系统目录
阅读全文
摘要:转自:http://www.cnblogs.com/qingtingzhe/articles/5008902.html
阅读全文
摘要:下载地址:http://filehippo.com/zh/download_vmware-workstation-pro/ 许可证地址:http://www.zdfans.com/5928.html
阅读全文
摘要:shell learning note MAIN="/usr/local/" # 变量大写 STATUS="$MAIN/status" # 美元符加字符串是引用变量值,而美元符加数字表示命令行参数 echo "some words" >>$STATUS/l...
阅读全文
摘要:vim normal模式下 1、c+i+分隔符,删除分隔符里面的内容(不删除分隔符,c+a+分隔符则包括分隔符一起删掉) 如将光标位于'%s : %d years old ' 中,此时按c+i+' 则可以将'%s : %d years old ' 变为' ' 2、y+i+分隔符,y在vim是复制,与
阅读全文
摘要:参考资料:http://easwy.com/blog/archives/advanced-vim-skills-basic-move-method/ 在normal模式下使用如下命令 1、h, j, k, l分别代表向左、下、上、右移动 2、用CTRL b和CTRL f来进行翻页,我们的手就不用离开
阅读全文

浙公网安备 33010602011771号