解决“-bash:/home/yangzheng: is a directory”的问题
来源:互联网 发布:三星软件下载中心 编辑:程序博客网 时间:2024/05/16 01:01
我创建了一个普通用户,然后想在~/.bash_profile文件里配置ctags命令,结果配置完以后使用source命令有如下问题:
[yangzheng@localhost ~]$ source .bash_profile
-bash: /home/yangzheng: is a directory
[yangzheng@localhost ~]$sudo vim .bash-profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
#PATH=$PATH:$HOME/bin
#export PATH
#PATH=$PATH:$HOME/bin
PATH=/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/bin:/usr/sbin:/root/bin
alias tag='cscope -Rbq && ctags --c-kinds=+defglmnstuvx --langmap=c:.c.h.ho.hem.het.hec.hev.him. hit.hic.hiv -R .'
export PATH
unset USERNAME
~
~
~
~
~
这个文件的内容是从root用户下copy过来的,root用户可以source,可是我创建的用户不能source,郁闷。。。。。。最后发现上面红色背景的地方有问题,我用vim打开这个文件的时候,其他“~” 都是蓝色,就那个地方是红色,于是我把这行删除,再来source,成功!!!我想可能是我copy的时候格式出了点问题,导致这个地方变成红色!!!要细心啊!!!!
0 0
- 解决“-bash:/home/yangzheng: is a directory”的问题
- -bash: /home/oracle: is a directory
- -bash: /home/oracle: is a directory
- bash:...: is a directory
- 如何解决/home/oracle: is a directory报警
- IntelliJ IDEA导入JDK出现The selected directory is not a valid home for JDK问题的解决方法
- bash: ***No such file or directory问题的解决
- ...arch/arm: Is a directory. Stop." 的错误解决
- Warning the selected directory is not a valid tomcat home
- OEL修改字符集失败 -bash: /root: is a directory
- oracle 修改字符集导致 -bash: /root: is a directory
- spark yarn /bin/bash: /bin/java: is a directory
- 解决CentOs下FTP无法使用的问题(cannot change directory:/home/hlapp)
- Windows下如何解决git bash的默认home目录路径问题
- 关于解决line 1: #!/bin/bash: No such file or directory的问题
- 解决MATLAB出现Warning: Name is nonexistent or not a directory的办法
- Android Studio报错:the selected directory is not a valid home for unknow sdk
- Ubuntu 中安装 IDEA 报错:Warning the selected directory is not a valid tomcat home
- 如何在JNI中抛异常
- 图论的简单知识结构
- ci框架如何手动进行csrf攻击防范
- 数据结构之查找二叉树
- Centos6.2 Openvpn,Routeros Radius Mysql daloRADIUS
- 解决“-bash:/home/yangzheng: is a directory”的问题
- STL容器存储的内容动态分配情况下的内存管理
- yungowu微信营销是什么?
- tcpdump 抓包,wireshark分析。
- javaScript中的单引号和双引号解决
- C - 指定结构体中成员变量的位数
- Genymotion
- csdn网盘入口
- 平衡二叉树之二(删除节点)