2008-08-19

常用 Unix/Linux shell 命令

关键字: shell
转自:http://fanqiang.chinaunix.net/program/code/2006-06-27/4695.shtml 删除 core 文件 # find ~ -name core -exec file {} \; -exec rm -i {} \; 查看使用文件的进程 # fuser -u /usr/my_application/foo 搜索字符串 #grep "hello world" `find ./ -name "*" -print -exec file {} \; |grep text | cut -d ':' -f 1` 目录 ...
2008-03-03

用巧命令行DIY你的xterm 颜色 for linux

关键字: linux xterm color 终端颜色
在上面的示例中,我们使用了专用的用反斜杠转义的字符序列,藉此通知 bash 将用户名和主机名插入提示行中,当这些转义字符序列出现在 PS1 变量中时,bash 就会用特定的值替换它们。我们使用了序列 "\u"(表示用户名)和 "\ H"(表示主机名的第一部分)。下面是 bash 可识别的全部专用序列的完整列表(您可以在 bash man page 的 "PROMPTING" 部分找到这个列表): 序列 说明 \a ASCII 响铃字符(也可以键入 \007) \d "Wed Sep 06" 格式的日期 \e ASCII 转义字符(也可以键入 \033) \h 主机名 ...
2008-03-03

linux 终端下输出显示颜色color for xterm in ruby lang.

关键字: ruby xtermcolor logger 日志
linux 下,在ROR的app中,看到的有颜色的sql语句,实现方法,当然是调用 linux 的系统颜色来作设置的,当用tail -f file 查看文件的时候就可以看到不同颜色标识的文字啦. location at : /ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb def format_log_entry(message, dump = nil) if ActiveRecord ...
2007-11-29

fcitx

关键字: 输入法
去除fcitx的多余输入法: 1、去除五笔、二笔、仓额等。 zhancang@ubuntu:~$ sudo gedit /usr/share/fcitx/data/tables.conf [sudo] password for zhancang: #####以#打头的为注释(把不用的全添上#号)   例如: #[码表] #名称=五笔字型 #码表=wbx.mb #调频=0 #拼音=1 #拼音键=z #自动上屏=1 #模糊=1 #模糊键=z #自动词组=1 #自动词组长度=4 #词 ...
2007-10-12

#!/bin/bash stty -echo while

关键字: stty -echo while
sql 代码   #!/bin/bash      # none 1,2,3,15,20 signal   trap '' 1 2 3 15 20      #clear screen ,close redisplay   clear   ...
2007-10-11

利用shell 自动导出数据库每日数据检查,数据报告

关键字: shell script mysql auto report
sql 代码   #! /bin/bash   #check_productcenter_datas_daily   #      #SET mysql and bash environment   shell_path=/bin/bash   mysql_path=/usr/bin   PATH=$shel ...
xu_wccq
搜索本博客
我的相册
Ac7ad940-edbc-3b23-8443-5fe2ea338061-thumb
productcenter.bmp
共 2 张
最近加入圈子
存档
最新评论