> For the complete documentation index, see [llms.txt](https://moluo.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moluo.gitbook.io/notes/gong-ju-shi-yong/linux/shi-yong-zhong-zao-yu-de-wen-ti.md).

# 使用中遭遇的问题

1.shell脚本执行时报"bad interpreter: Text file busy"

解决方案一： 在`#!/bin/bash`的`#!`后加一空格。如`#! /bin/bash`即可解决问题。

解决方法二：可能有其它进程访问这个shell脚本文件，可以通过`lsof | grep SHELL_NAME`来查看是否有其它进程正在访问该文件。如果有，使用`kill -9 PID`命令杀掉其它进程。代码演示如下：

```bash
$ /root/hello.sh        # 假设我们运行hello.sh时报错
-bash: /root/hello.sh: /bin/bash: bad interpreter: Text file busy
$ lsof | grep  hello.sh # 查看是否有其他进程在使用hello.sh文件
hello.sh 14442  root    0r      CHR     1,3     0t0    6083 /root/hello.sh
$ kill -9 14442            # 杀掉其他进程
```

2.运行root用户名登录
