touch:.bash_profile:没有这样的文件或目录

时间:2014-08-03 08:46:09

标签: macos terminal

我在尝试

时尝试创建bash配置文件
touch ~/.bash_profile
touch: /Users/ramesh/.bash_profile: No such file or directory

有什么想法吗?

我甚至尝试过使用sudo

1 个答案:

答案 0 :(得分:0)

那里有一个破损的符号链接文件。也就是说,~/.bash_profile是一个现有的符号链接,它指向一条不存在的路径。 touch命令无法创建新文件,因为它已存在,但它也无法访问指向的文件,因为它不存在。< / p>