U盘自动挂载与卸载
2011-08-23 11:16
113 查看
方法一:要使用退格键的时候,同时按住ctrl+backspace
方法二:在任意一个启动脚本中添加如下内容
方法三:可以使用退格键,可以回调sqlplus中执行过的命令
使用第三方工具rlwraphttp://utopia.knoware.nl/~hlub/uck/rlwrap/解压安装完毕之后
立即生效
使用
也可以使用命令别名
如果想下次生效,可添加到启动脚本内
随笔记录
本文出自 “night ★linux运维” 博客,请务必保留此出处http://night820.blog.51cto.com/7492507/1257680
方法二:在任意一个启动脚本中添加如下内容
[oracle@night ~]$ tail -1 .bash_profile stty erase ^Hstty的意思是set tty,主要是用来检查和修改当前注册的终端的通信参数如上两种方法只是单一的解决了退格键的问题,如果我想回调sqlplus中执行过的命令 还是不行
方法三:可以使用退格键,可以回调sqlplus中执行过的命令
使用第三方工具rlwraphttp://utopia.knoware.nl/~hlub/uck/rlwrap/解压安装完毕之后
[oracle@night u01]$ ls app install rlwrap [oracle@night u01]$ cd rlwrap/ [oracle@night rlwrap]$ ls bin share [oracle@night rlwrap]$ [oracle@night rlwrap]$ cd bin/ [oracle@night bin]$ ll 总计 168 -rwxr-xr-x 1 oracle oinstall 165717 07-25 23:33 rlwrap [oracle@night bin]$添加到PATH中
[oracle@night ~]$ vim .bash_profile
export PATH=$PATH:$ORACLE_BASE:$ORACLE_HOME/bin:/u01/rlwrap/bin
立即生效
[oracle@night ~]$ source .bash_profile [oracle@night ~]$ echo $PATH /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/u01/app/oracle:/u01/app/oracle/product/bin:/home/oracle/bin:/u01/app/oracle:/u01/app/oracle/product/bin:/u01/rlwrap/bin [oracle@night ~]$
[oracle@night ~]$ rl rlatopam rletopnm rlog rlogin rlwrap [oracle@night ~]$ rl
使用
[oracle@night ~]$ rlwrap sqlplus /nolog SQL*Plus: Release 11.2.0.1.0 Production on Thu Jul 25 23:37:55 2013 Copyright (c) 1982, 2009, Oracle. All rights reserved. SQL> conn sys/ as sysdba Enter password: Connected. SQL>
也可以使用命令别名
[oracle@night ~]$ alias sqlplus='rlwrap sqlplus' [oracle@night ~]$ alias alias l.='ls -d .* --color=tty' alias ll='ls -l --color=tty' alias ls='ls --color=tty' alias sqlplus='rlwrap sqlplus' alias vi='vim' alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' [oracle@night ~]$ sqlplus /nolog SQL*Plus: Release 11.2.0.1.0 Production on Thu Jul 25 23:39:36 2013 Copyright (c) 1982, 2009, Oracle. All rights reserved. SQL> conn / as sysdba Connected. SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
如果想下次生效,可添加到启动脚本内
随笔记录
本文出自 “night ★linux运维” 博客,请务必保留此出处http://night820.blog.51cto.com/7492507/1257680
相关文章推荐
- Linux下U盘SD卡的自动挂载和卸载
- 嵌入式linux 实现mdev SD卡和U盘自动挂载和卸载的方法 mdev.conf
- 嵌入式linux自动挂载卸载u盘
- 关于实现mdev自动挂载与卸载(U盘)
- Linux下实现U盘、SD卡自动挂载功能
- linux 嵌入式自动检测u盘口并挂载
- 嵌入式Linux用mdev实现U盘自动挂载
- Linux下实现U盘、SD卡自动挂载功能
- Linux下实现U盘、SD卡自动挂载功能 .
- linux 自动挂载U盘之udev
- 标题: 添加Udev规则,让Linux自动挂载U盘。。(支持热插拔)[转]
- Linux下U盘的挂载,卸载
- mdev实现U盘和SD卡的自动挂载
- Linux上用udev自动识别并挂载U盘
- Ubuntu下如何挂载以及卸载U盘?
- Linux USB U盘热插拔挂载和卸载
- linux ubuntu 挂载 卸载 u盘
- 33.Linux-实现U盘自动挂载(详解)
- Udev实现U盘或SD卡的自动挂载
- mdev实现U盘和SD卡的自动挂载