linux命令:
修改权限:chown xiaohui.xiaohui *
$smarty模板:
得到URL中的page参数:<{$smarty.get.page}>
日期的格式:
客户端的日期:<{$smarty.now|date_format:"%Y-%m-%d %H:%M"}>
服务器端的日期:<{$smarty.server.REQUEST_TIME|date_format:"%Y-%m-%d %H:%M"}>
文件的替换:
sudo sed -i "s/已有的字符/替换后的字符/g" `grep 已有的字符 -rl ./`
转码为utf-8:
export LC_ALL = zh_CN.UTF8
给aa文件压缩打包
tar -zcvf aa.tar.gz(.tar.gz是后缀名,aa是文件名) aa