avatar
f*r
1
1)
在UNIX下记住我已经敲过的命令
我只要用上, 下箭头就可以调出以前写的命令
不用每次都重复敲同一个命令
2)
而且在我的UNIX中, 每次删出什么命令的时候
如果用 backspace 健就会出现^H 这样的字符
我不得不用Delete去删除
这样太麻烦了
3)
应该有个设制使的我一按 TAB键就可以显示出对应的文件名和目录名
比如我有一个目录名叫 JUNK
当我输入J的时候, 按TAB健就可以输出JUNK了
这样我就不用每次都TYPE 完整的文件名了
这些毛病都是在我学校的UNIX ACCOUNT下才有的

我在OFFICE的UNIX SYSTEM都可以完成这些功能.
请教各位了
avatar
p*y
2
use tcsh, set history

【在 f***r 的大作中提到】
: 1)
: 在UNIX下记住我已经敲过的命令
: 我只要用上, 下箭头就可以调出以前写的命令
: 不用每次都重复敲同一个命令
: 2)
: 而且在我的UNIX中, 每次删出什么命令的时候
: 如果用 backspace 健就会出现^H 这样的字符
: 我不得不用Delete去删除
: 这样太麻烦了
: 3)

avatar
f*r
3
could you give me more details about this?

【在 p***y 的大作中提到】
: use tcsh, set history
avatar
ft
4
tcsh, bash, ksh......
a lot of shells do that. If you are root on your machines, edit your
/etc/passwd file. :-)

【在 f***r 的大作中提到】
: could you give me more details about this?
avatar
s*t
5
you don't need root, on most system, you can change your login shell by
$ chsh
or you can use tcsh by typing
$ tcsh

【在 ft 的大作中提到】
: tcsh, bash, ksh......
: a lot of shells do that. If you are root on your machines, edit your
: /etc/passwd file. :-)

avatar
ft
6
Of course. But you have to do this everytime you login, or you
can change your .profile to do it automatically. But then you
have to logout twice. My way solves the problem once and for all.

【在 s***t 的大作中提到】
: you don't need root, on most system, you can change your login shell by
: $ chsh
: or you can use tcsh by typing
: $ tcsh

avatar
m*n
7
some Unix allow you change yourself using chsh command
In some ksh, ESC key will active your command line editor(vi for example),
you can using vi command key stroke to go back/forward and do any editing.
ESC twice will do the complete command line with filename

【在 ft 的大作中提到】
: tcsh, bash, ksh......
: a lot of shells do that. If you are root on your machines, edit your
: /etc/passwd file. :-)

avatar
m*n
8
chsh will modify your default shell in /etc/password

【在 ft 的大作中提到】
: Of course. But you have to do this everytime you login, or you
: can change your .profile to do it automatically. But then you
: have to logout twice. My way solves the problem once and for all.

avatar
c*t
9
Never edit /etc/passwd directly since there could be shadow files.
Also, simple mistakes in /etc/passwd could prevent users from
logging in.
Use commands such as usermod or chsh or some other user management
tools instead. They are much safer.

【在 ft 的大作中提到】
: Of course. But you have to do this everytime you login, or you
: can change your .profile to do it automatically. But then you
: have to logout twice. My way solves the problem once and for all.

avatar
m*e
10

chsh changes /etc/passwd.
Not really. You can use sth like "exec tcsh". It will replace the current
shell. If you can't use chsh or the sysadmin is not very friendly, you can
do it this way.

【在 ft 的大作中提到】
: Of course. But you have to do this everytime you login, or you
: can change your .profile to do it automatically. But then you
: have to logout twice. My way solves the problem once and for all.

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