export

sh/bash/dash/ksh/zsh等Shell脚本
回复
mad_frog
帖子: 55
注册时间: 2011-06-29 11:26

export

#1

帖子 mad_frog » 2011-07-07 17:13

大家有没碰到这个问题啊
[root@localhost ~]# export
export: Command not found.

echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: export

#2

帖子 eexpress » 2011-07-07 21:15

● type export
export 是 shell 内嵌

看你是啥shell
● 鸣学
mad_frog
帖子: 55
注册时间: 2011-06-29 11:26

Re: export

#3

帖子 mad_frog » 2011-07-08 10:01

eexpress 写了:● type export
export 是 shell 内嵌

看你是啥shell

type: Command not found.
mad_frog
帖子: 55
注册时间: 2011-06-29 11:26

Re: export

#4

帖子 mad_frog » 2011-07-08 10:26

问题解决了
1、echo $SHELL
/bin/csh
发现用的是C shell
运行 chsh -s /bin/bash
再从别的机器上拷 .bashrc 和.bash_profile 文件到~就OK了
回复