由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 问个terminal的问题
相关主题
问一个 remote terminal 的Shell 问题如何使terminal里面总是显示一行当前目录?
不过每次打开terminal,都会随机显示一首中文诗
Putty term for ubuntu?mac下从terminal启动emacs
装windows文件的硬盘新手问个shell的问题
请教如何更改启动时的默认目录?问个tmux的问题
why terminal is not like an editor?ssh用vim里的问题
The command line is powerful, but the UI can be more efficient!问个基础问题,关于linux command存放地址
.bash_profile not run when opening a terminal from desktopbash中比较无聊的功能
相关话题的讨论汇总
话题: terminal话题: ssh话题: 机器话题: term话题: 颜色
进入Linux版参与讨论
1 (共1页)
x*********s
发帖数: 5554
1
【 以下文字转载自 Apple 讨论区 】
发信人: xrhinoceros (elegant rhino), 信区: Apple
标 题: 问个terminal的问题
发信站: BBS 未名空间站 (Tue May 11 15:27:42 2010, 美东)
我在terminal下ssh 到别的机器, 视觉效果正常, 目录/文件/链接颜色各不相同, 但是
再从
这台机器ssh到另外的机器, 颜色就都没有了. 在windows下面用putty,就没有这种事情
发生
,所以应该是我mac下面terminal的配置问题.
我在bash下面添加了
export CLICOLOR=1
export LSCOLORS=gxfxdxcxbxedabagacad
没有用, 依旧是本机和第一次ssh的机器正常, 再加一层的话就有没有颜色了.
请教
D******y
发帖数: 3780
2
what OS do you run on your second and third computer?

【在 x*********s 的大作中提到】
: 【 以下文字转载自 Apple 讨论区 】
: 发信人: xrhinoceros (elegant rhino), 信区: Apple
: 标 题: 问个terminal的问题
: 发信站: BBS 未名空间站 (Tue May 11 15:27:42 2010, 美东)
: 我在terminal下ssh 到别的机器, 视觉效果正常, 目录/文件/链接颜色各不相同, 但是
: 再从
: 这台机器ssh到另外的机器, 颜色就都没有了. 在windows下面用putty,就没有这种事情
: 发生
: ,所以应该是我mac下面terminal的配置问题.
: 我在bash下面添加了

b***d
发帖数: 186
3
$ echo $TERM
返回啥结果
$ TERM=ansi export TERM
试试

【在 x*********s 的大作中提到】
: 【 以下文字转载自 Apple 讨论区 】
: 发信人: xrhinoceros (elegant rhino), 信区: Apple
: 标 题: 问个terminal的问题
: 发信站: BBS 未名空间站 (Tue May 11 15:27:42 2010, 美东)
: 我在terminal下ssh 到别的机器, 视觉效果正常, 目录/文件/链接颜色各不相同, 但是
: 再从
: 这台机器ssh到另外的机器, 颜色就都没有了. 在windows下面用putty,就没有这种事情
: 发生
: ,所以应该是我mac下面terminal的配置问题.
: 我在bash下面添加了

x*********s
发帖数: 5554
4
两个都是rhel4.5, 第二次ssh的机器一个是suse9一个是rhel4.5
我觉得不是别人机器的问题, 因为用windows+putty就不存在这个问题
是我自己terminal设置的问题, 但我又不知道在哪里改

【在 D******y 的大作中提到】
: what OS do you run on your second and third computer?
x*********s
发帖数: 5554
5
echo $TERM ==> xterm-color
改成ansi也不行~
不管用
D******y
发帖数: 3780
6
i thought you asked this in apple board, so
there is at least one computer is a mac.
why 2 rhel, 1 suse?
did you try ls --color=auto

【在 x*********s 的大作中提到】
: 两个都是rhel4.5, 第二次ssh的机器一个是suse9一个是rhel4.5
: 我觉得不是别人机器的问题, 因为用windows+putty就不存在这个问题
: 是我自己terminal设置的问题, 但我又不知道在哪里改

x*********s
发帖数: 5554
7
本机是mac os , ssh 到rhel的机器, 此时颜色正常, 再从这才rhel4.5的机器ssh 到别
的机器, 无论什么系统, 都没有五颜六色.
如果从windows+putty 去做这两个ssh的操作, 那么都有颜色.

【在 D******y 的大作中提到】
: i thought you asked this in apple board, so
: there is at least one computer is a mac.
: why 2 rhel, 1 suse?
: did you try ls --color=auto

wy
发帖数: 14511
8
then try try iTerm

【在 x*********s 的大作中提到】
: 本机是mac os , ssh 到rhel的机器, 此时颜色正常, 再从这才rhel4.5的机器ssh 到别
: 的机器, 无论什么系统, 都没有五颜六色.
: 如果从windows+putty 去做这两个ssh的操作, 那么都有颜色.

x*********s
发帖数: 5554
9

这个可以了
谢谢

【在 D******y 的大作中提到】
: i thought you asked this in apple board, so
: there is at least one computer is a mac.
: why 2 rhel, 1 suse?
: did you try ls --color=auto

D******y
发帖数: 3780
10
just create an alias in your .bashrc then.
it should be your shell's settings instead of your terminal settings.
baozi plz

【在 x*********s 的大作中提到】
:
: 这个可以了
: 谢谢

x*********s
发帖数: 5554
11
我知道把他做成alias
我看看我有没有包子, 貌似我从来就没有过包子

【在 D******y 的大作中提到】
: just create an alias in your .bashrc then.
: it should be your shell's settings instead of your terminal settings.
: baozi plz

x*********s
发帖数: 5554
12
付了~

【在 D******y 的大作中提到】
: just create an alias in your .bashrc then.
: it should be your shell's settings instead of your terminal settings.
: baozi plz

D******y
发帖数: 3780
13
saw it. rhino very da fang. gave me 90% of his wallet. zan

【在 x*********s 的大作中提到】
: 付了~
1 (共1页)
进入Linux版参与讨论
相关主题
bash中比较无聊的功能请教如何更改启动时的默认目录?
请总结一下:如何实现自启动 autostart?why terminal is not like an editor?
ubuntu 里 term的字的颜色怎么显示?The command line is powerful, but the UI can be more efficient!
新手问问题,在Mac里用linux.bash_profile not run when opening a terminal from desktop
问一个 remote terminal 的Shell 问题如何使terminal里面总是显示一行当前目录?
不过每次打开terminal,都会随机显示一首中文诗
Putty term for ubuntu?mac下从terminal启动emacs
装windows文件的硬盘新手问个shell的问题
相关话题的讨论汇总
话题: terminal话题: ssh话题: 机器话题: term话题: 颜色