ll ./jiehun/ 查看该文件列表
cd sites/jiehun cd 到结婚项目里
ln -s ~/jiehun/ 软连 到家目录的jiehun
unlink jiehun 删除连接名
ln -s ~/jiehen/ jh 连接名 jh
unlink jh
cd page
ll
reset_link 是公司内部写的
测试站点
97 # php测试站点
98 server {
99 listen 18600;
100 server_name wanggaopeng.hapn.cc;
101 root /home/wanggaopeng/sites/default;
102 index index.html index.php;
103
104 location / {
105
106 }
107
108 location ~ \.php$ {
109 fastcgi_pass 127.0.0.1:9200;
110 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
111 fastcgi_param SERVER_NAME $host;
112 include fastcgi_params;
113 }
114 }
cd ~/sites/jiehun
ls
cd log
tail -f HapN.log.wf
cd sites/jiehun
ls
rm app
ln -s ../../service/app/
ll
1.grep 命令
grep "classifybox" ./ --include=*.phtml -r|grep -v "id="
2.find 命令find ./
find ./ -name ActionController.php|grep mystore
3.awk 命令
awk '{print $1}' access.log
awk '{if ($1 >1) print $0}' access.log 中间{ }是个循环体
4.sed 命令
grep '拍婚照' ./ -r --include=.phtml
grep '拍婚照' ./ -rl --include=.phtmlgrep '拍婚照' ./ -rl --include=*.phtml|xargs sed 's/拍婚纱/拍婚照/g'
man awk
awk --help
网友评论