【问题标题】:Terminal Not responding To ANY Commands终端不响应任何命令
【发布时间】:2020-10-26 17:22:41
【问题描述】:

我一直在尝试设置 webdev,以便我可以使用颤振构建网站,但是颤振命令无法在终端中运行,所以我取消了所有操作。我以为它已经修复了,但是现在当我尝试使用终端时,除了 pwd 之外,其他命令都不起作用。 $ clear -bash: clear: command not found $ ls -bash: ls: command not found $ flutter --version -bash: flutter: command not found 我尝试使用 touch ~/.bash_profile; open ~/.bash_profile 重新打开 PATH,但上面写着 -bash: touch: command not found -bash: open: command not found 请帮忙。

【问题讨论】:

标签: command-line terminal flutter-web


【解决方案1】:

执行PATH=$(/usr/bin/getconf PATH) 将使您回到最小的操作状态。

然后您应该能够编辑您的 bash 启动文件以消除损坏。

【讨论】:

  • 谢谢!这帮助我修复了一个窗口。如何更改它以便我的终端在我打开它或打开一个新窗口时都能正常工作?
  • 修复您的 bash 启动文件,然后注销并重新登录。
猜你喜欢
  • 2012-07-18
  • 2011-08-28
  • 1970-01-01
  • 2018-01-30
  • 2020-09-16
  • 2013-10-30
  • 1970-01-01
  • 1970-01-01
  • 2021-05-05
相关资源
最近更新 更多