原理:ls -G可显示彩色文件名。在终端输入:nano ~/.bash_profile辑器.bash_profile文件,粘贴下面内容:alias cls='tput reset'alias egrep='egrep --color=auto'alias fgrep='fgrep --color=a...
分类:
系统相关 时间:
2015-08-06 15:00:55
阅读次数:
369
书上的这个例子需要在ubuntu的低版本的系统才支持,现在基本上都不支持了,想实现也很简单自己写一个脚本先备份再删除。alias也只是做了一次替换alias rm='cp $@ ~/backup; rm $@' rm text.txt被转换成了cp$@ ~/backup; rm $@ text.t....
分类:
系统相关 时间:
2015-08-05 19:51:25
阅读次数:
189
SELECT info_key, info_value, info_status, edit_time FROM (SELECT * FROM `detail` WHERE login = ‘abc@abc.com‘ ORDER BY edit_time DESC? ) AS aaa GROUP BY info_key 希望通过Thinkphp实现基于alias的子查...
分类:
数据库 时间:
2015-08-04 23:24:19
阅读次数:
365
Alias(别名) ????eg(使用表名称别名):? ?????????select po.orderid,p.lastname,p.firstname from persons as p,product_orders as po where p.lastname=‘adams‘ and p.firstname=‘john‘(使用别...
分类:
数据库 时间:
2015-08-04 13:45:29
阅读次数:
192
在网上搜了一下,内容不是很完善。现进行整理,做个学习笔记,以备以后使用。(1)进入到jdk下的bin目录(2)输入如下指令“keytool -v -genkey -alias tomcat -keyalg RSA -keystore d:/tomcat.keystore”d:/tomcat.keys...
打开用户根目录 cd ~ 然后编辑.bash_profile文件 #可以尝试用自带工具打开
open -e .bash_profile
#或者
vim .bash_profile 加入语句 alias ll=‘ls la‘...
分类:
系统相关 时间:
2015-07-30 23:48:55
阅读次数:
332
Aliaswithnoargumentsorwiththe-poptionprintsthelistofaliasesintheformaliasname=valueonstandardoutput.Whenargumentsaresupplied,analiasisdefinedforeachnamewhosevalueisgiven.Atrailingspaceinvaluecausesthenextwordtobecheckedforaliassubstitutionwhenthealiasisexpa..
分类:
系统相关 时间:
2015-07-30 15:09:47
阅读次数:
192
1.查看config git config --list 可以列出所有config配置 1 user.email=tang_m_cong@163.com 2 user.name=thomas 3 core.editor=vim 4 alias.co=checkout 5 alias.br=bra.....
分类:
其他好文 时间:
2015-07-30 00:34:36
阅读次数:
210
[user] name=yulongdong email=dongyl0501@gmail.com[core] editor=vim whitespace=trailing-space,space-before-tab,tab-in-indent[commit] template=~/.ssh/.gitmsg.template[color] ui=auto status=auto branch=auto[rerere] enabled=0[merge] tool=vimdiff[alias] co=check..
分类:
其他好文 时间:
2015-07-29 10:26:42
阅读次数:
140
SELECT * | { [ DISTINCT ] column | expression [ alias ] , ... }
FROM table;
?SELECT 标识 选择哪些列。
?FROM 标识从哪个表中选择。
column后面加上空格,同时跟上别名(alias),或者 as 别名,到下一行的内...
分类:
数据库 时间:
2015-07-28 23:12:53
阅读次数:
195