(1)history查看一下最近的操作(2)last看一下系统状态http://blog.csdn.net/chaofanwei/article/details/11826567crash 意味着你的系统halt或者reboot 的时候,系统在syslog给出的标记是crashhttp://os.5...
分类:
系统相关 时间:
2014-07-25 14:03:11
阅读次数:
295
使用!来调用过往命令!!重复执行上一条指令!a重复执行上一条以a为首的指令!nubmer重复执行上一条在history表中记录号码为number的指令!-number重复执行前第number条指令ailasabc=‘cdxxxxxxxxxxx/xxxxxxxx/xxxxxxxxxxxxx‘unaliasabc""将一串字符当成字符串来看,可以转译特殊字..
分类:
系统相关 时间:
2014-07-24 23:58:14
阅读次数:
515
在/etc/profile追加exportHISTORY_FILE=/var/log/history/userhistory.log
readonlyPROMPT_COMMAND=‘{date"+%y-%m-%d%T#####$(whoami|awk"{print\$1\"\"\$2\"\"\$NF}")####$(id|awk"{print\$1}")####$(history1|{readxcmd;echo"$cmd";})";}>>$HISTORY_FILE‘重读source/et..
分类:
系统相关 时间:
2014-07-24 23:54:14
阅读次数:
281
XListCtrl,强大的ListCtrl!到目前为止,我所遇到的所有ListCtrl都用XListCtrl解决了。
XListCtrl能支持什么?
修改column的背景色、大小、线条、做成check……
修改item背景色、行背景色、做成edit、做成combox、做成check、做成进度条……
你还能想到什么?!...
分类:
其他好文 时间:
2014-07-24 23:32:03
阅读次数:
555
Format:column column_name new_value var_nameMeaning: use the column_name of a select statment to construct a variable, later we can use &var_name to r...
分类:
数据库 时间:
2014-07-24 22:38:53
阅读次数:
270
MySQL 加入?列,改动列,删除列ALTER TABLE:加入?,改动,删除表的列,约束等表的定义。查看列:desc 表名;改动表名:alter table t_book rename to bbb; 加入?列:alter table 表名 add column 列名 varchar(30); 删...
分类:
数据库 时间:
2014-07-24 14:42:45
阅读次数:
232
对于强大的linux来说,我们一定程度上都会认为是她秀坚强、稳定,同时也很有魅力。更多的如何使用她,而并没有对她的安全篇有很多的涉足,抛砖引玉,简单从常用的日志审计及pam用户验证块做个实例应用。1、操作日志审计系统的history再一定程度上可以告诉我们都干了什么,但对..
分类:
系统相关 时间:
2014-07-24 12:29:26
阅读次数:
319
Problem Description
Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leave...
分类:
其他好文 时间:
2014-07-23 22:33:38
阅读次数:
281
前段时间学习了一下ansible的配置管理(http://blog.csdn.net/column/details/ansible.html anisble配置工具翻译专栏),感觉很强大,就想着把最近看的tornado和twisted和它结合一下做一个webUI
今天动手做了一个demo,目前大概实现的功能是:添加ansible主机,然后单台运行脚本(后续会把playbook和批量运行加上)...
分类:
数据库 时间:
2014-07-23 22:31:47
阅读次数:
387
1,主键的删除
ALTER TABLE TABLENAME DROP PRIMARY_KEY
执行上面的SQL可以删除主键;如果不成功可以用
ALTER TABLE TABLENAME DROP CONSTRAINTS COLUMN CASCADE; --删除约束
ALTER TABLE TABLENAME DISABLE PRIMARY_COLUMN ; --设置被设置为主键的列为...
分类:
数据库 时间:
2014-07-23 21:01:55
阅读次数:
237