- 论坛徽章:
- 1
|
用户如果改变了当前的shell就不会被记录.
love100 发表于 2011-01-06 16:07 ![]() histappend
If set, the history list is appended to the file named
by the value of the HISTFILE variable when the shell
exits, rather than overwriting the file.
histreedit
If set, and readline is being used, a user is given the
opportunity to re-edit a failed history substitution.
histverify
If set, and readline is being used, the results of his-
tory substitution are not immediately passed to the
shell parser. Instead, the resulting line is loaded
into the readline editing buffer, allowing further modi-
fication.
第一个应该可以达到你要求。上面的我们一般不设置的。- $ shopt | grep 'hist'
- cmdhist on
- histappend off
- histreedit off
- histverify off
- lithist off
复制代码 另外,既然如此限制用户,干脆用rbash算了。 |
|