avatar
[转载] About the history# Unix - 噫吁兮,危乎高哉
ft
1
【 以下文字转载自 Linux 讨论区 】
【 原文由 ft 所发表 】
I recently installed a linux, but the configuration is still poor.
The up and down arrow key is not working when I want to make it
work like doskey. I wonder if anyone could tell me how to set
it up? I am using bsh, csh, and tcsh, and I hope to know
how to set them up respectively.
Thank you.
avatar
B*z
2
As I know of, it only works for tcsh, other shells work like vi or emacs
on the command line.

【在 ft 的大作中提到】
: 【 以下文字转载自 Linux 讨论区 】
: 【 原文由 ft 所发表 】
: I recently installed a linux, but the configuration is still poor.
: The up and down arrow key is not working when I want to make it
: work like doskey. I wonder if anyone could tell me how to set
: it up? I am using bsh, csh, and tcsh, and I hope to know
: how to set them up respectively.
: Thank you.

avatar
h*a
3
bsh,csh doesn't not support history.
bash, tcsh, ksh do.
bash is the default shell for Linux system, so it should work.
perhaps you need to write "set -o history" into your .bashrc in ur
home directory.

【在 ft 的大作中提到】
: 【 以下文字转载自 Linux 讨论区 】
: 【 原文由 ft 所发表 】
: I recently installed a linux, but the configuration is still poor.
: The up and down arrow key is not working when I want to make it
: work like doskey. I wonder if anyone could tell me how to set
: it up? I am using bsh, csh, and tcsh, and I hope to know
: how to set them up respectively.
: Thank you.

avatar
c*t
4
one correction, csh does support history, though in a wierd
way.

【在 h******a 的大作中提到】
: bsh,csh doesn't not support history.
: bash, tcsh, ksh do.
: bash is the default shell for Linux system, so it should work.
: perhaps you need to write "set -o history" into your .bashrc in ur
: home directory.

avatar
h*a
5
csh does support command history,
like !!,!n,!-n,!cmd
but not like bash/tcsh/ksh doskey style

【在 c*****t 的大作中提到】
: one correction, csh does support history, though in a wierd
: way.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。