我们在AIX上将sudosh配置为登录shell,将/ usr / bin / bash作为其默认shell。
一切正常,除了bash自动完成和命令历史不再有效。 TAB是TAB,箭头是向上,向下,向左,向右的光标。
知道如何让这个工作吗?
我们在AIX上将sudosh配置为登录shell,将/ usr / bin / bash作为其默认shell。
一切正常,除了bash自动完成和命令历史不再有效。 TAB是TAB,箭头是向上,向下,向左,向右的光标。
知道如何让这个工作吗?
Answers:
我不知道苏什,它看起来很古老。
首先你必须知道要加载的女巫配置文件,是.profile,.bash_profile,.bashrc?你能告诉我们你的路径吗?
echo $ PATH
应该返回一些东西,如果没有,这就是TAB不起作用的原因。
关于命令历史记录,您必须使用正确的权限和所有权检查主目录中是否包含.bash_history。
输入此命令以查看是否有历史记录:
历史
如果没有,请检查我告诉你的内容。
如果您可以在家中张贴ls -l,它可以帮助我
应该加载.bash_profile,因为bash配置为默认shell。
$ echo $PATH
echo $PATH
/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java6/jre/bin:/usr/java6/bin
$ history
history
1 echo $PATH
2 history
3 ls -la
4 cat /dev/null > .bash_history
5 ls -la
6 exit
7 echo $PATH
8 history
$ ls -l
ls -l
total 0
$ ls -la
ls -la
total 24
drwxr-xr-x 2 srarol staff 256 Jun 11 09:39 .
drwxr-xr-x 14 bin bin 4096 May 15 16:00 ..
-rw------- 1 srarol staff 68 Jun 11 09:40 .bash_history
-rw-r--r-- 1 srarol staff 255 Jun 11 09:37 .bash_profile
>>cat .bash_profile
# Local Environment
PS1='\[\e[1;36m\]${ORACLE_SID}\[\e[1;35m\] \[\e[1;33m\]\u\[\033[1;35m\]@\[\e[1;32m\]\h\[\e[0m\] $PWD $ '
EDITOR=vi
export PS1 EDITOR
# vi parameter AIX
case `uname` in
AIX) EXINIT="set ll=20000000"
export EXINIT
;;
esac
.bash_profile只是一个文件,但显然它没有正确的内容或存在其他一些问题。发布您自己机器的目录列表不是答案。