Archive for 二月, 2010

隐藏shell光标

隐藏shell光标的主要方法是产生有效的转义系列,方法如下:
echo ^[[?25l
请注意这个转义系列的敲法是,<ctrl+v><escape>[?25l(是字母l不是数字1)
先同是按下<ctrl> 和 v ,松开后然后按<escape>,就会出现^[ ,再输入[?25l
要使光标恢复则
echo ^[[?25h
注:这些字符一定要手敲,不要粘贴!

Read the rest of this entry »

shell命令的常用快捷键(转)

下面是一些shell的常用快捷键,快捷键玩熟悉了在一定程度上是可以提高工作效率滴…
Ctrl + a 切换到命令行开始
Ctrl + e 切换到命令行末尾
Ctrl + l 清除屏幕内容
Ctrl + u 清除光标之前的内容
Ctrl + k 清除光标之后的内容
Ctrl + h 类似于退格键
Ctrl + r 在历史命令中查找 (这个非常好用,输入关键字就调出以前的命令了)
Ctrl + c 终止命令
Ctrl + d 退出shell
Ctrl + z [...]

Read the rest of this entry »

Apache支持perl在web的应用

apache支持perl在web的应用
1、安装apache
如apache安装在/usr/local/apache2/
2、安装perl
perl默认在linux系统里是自带的,
PS:要注意安装版本的差异,版本过低会报错
Can’t locate Apache/Response.pm in @INC …
Found this issue in Aurora SPARC Linux 2.0 (Fedora Core 3 for SPARC) when trying to install… turns out that after installing all the modules for rt, I still had an ancient verion of CGI.pm, which was not intended to correctly detect the mod_perl2 modules vs. regular mod_perl. Upgrading CGI [...]

Read the rest of this entry »