这个问题已经在这里有了答案:
每次我打开Terminal时,它都会出现50次。
-bash: cd: /Users/Dakota/Documents/School/Spring: No such file or directory
-bash: cd: /Users/Dakota/Documents/School/Spring: No such file or directory
-bash: cd: /Users/Dakota/Documents/School/Spring: No such file or directory
-bash: cd: /Users/Dakota/Documents/School/Spring: No such file or directory
-bash: cd: /Users/Dakota/Documents/School/Spring: No such file or directory
-bash: cd: /Users/Dakota/Documents/School/Spring: No such file or directory
我不知道我在做什么,我只是想让我的终端从一个文件夹开始,然后我在网上找到了这个:
echo "cd "`pwd` >> ~/.bash_profile
我曾经用过,当我要在Terminal上开始时,它没有用,所以笨了,我做了50次,所以我的Terminal总是以一堆开头。-bash: cd: /Users/Dakota/Documents/School/Spring: No such file or directory.
这很丑,我需要它消失。
@Scipt Kitty无需使用
—
fd0
sudo
。
cd wherever_you_are
到bash_profile的末尾,以控制bash设置。轻松修复该问题,sudo nano ~/.bash_profile
然后删除该行并保存。如果您想通过终端使用创建文件夹mkdir myfolder