# \#wsl

**URL:** https://www.isharkfly.com/tag/wsl/92.md

[Latest](https://www.isharkfly.com/latest.md) · [Categories](https://www.isharkfly.com/categories.md) · [Tags](https://www.isharkfly.com/tags.md)

---

## [行分隔符的问题在 IDE 中的提示](https://www.isharkfly.com/t/ide/14576)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [August 28, 2023, 9:43pm UTC](https://www.isharkfly.com/t/ide/14576 "2023-08-28T21:43:48Z")

</div>

我们在帖子：运行命令出现错误 /bin/bash^M: bad interpreter: No such file or directory 中讨论了有关行分隔符的问题。 具体在 IDE 中能看到的表现为： IDE 能够提醒你的行分隔符的问题。

---

## [运行命令出现错误 /bin/bash^M: bad interpreter: No such file or directory](https://www.isharkfly.com/t/bin-bash-m-bad-interpreter-no-such-file-or-directory/14568)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [August 26, 2023, 4:59pm UTC](https://www.isharkfly.com/t/bin-bash-m-bad-interpreter-no-such-file-or-directory/14568 "2023-08-26T16:59:02Z")

</div>

在系统上运行一个 Linux 的命令的时候出现下面的错误信息： -bash: ./build.sh: /bin/bash^M: bad interpreter: No such file or directory 这个是在 Windows 作为 WSL 的时候出的错误。 原因和解决 出现问题的原因在于脚本在 Windows 中使用的回车换行和 Linux 使用的回车换行不一样。 如果你的代码是在 Windows 下被下载的话…

---

## [微软 WSL 重装操作系统](https://www.isharkfly.com/t/wsl/13481)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [May 18, 2021, 4:50pm UTC](https://www.isharkfly.com/t/wsl/13481 "2021-05-18T16:50:59Z")

</div>

如果你对 WSL 还不怎么了解的话，请自行脑补下。 简单理解就是，WSL 主要为了让你能够在 Windows 系统中运行 Linux。 为什么需要这样？这是因为很多时候一些环境需要在 Linux 下运行。 操作系统重装 如果希望对操作系统进行重装也非常简单。 假设你现在已经在你的 Windows 操作系统中安装了 WSL。 搜索输入框中输入 Ubuntu，这是因为我们假设你安装的是 Ubuntu 子系统。 随后在屏幕的右侧中…
