小编San*_*Jha的帖子

“$: command not found” 每次启动时都会在终端顶部打印。为什么要这样做?

每当我打开一个新终端时,我都会收到此错误:

$: command not found
sandeep@sandepp:~$ 
Run Code Online (Sandbox Code Playgroud)

它照常工作没有任何问题,但为什么它会在顶部显示该消息?我的笔记本电脑有 Ubuntu 14.04。

我的~/.bashrc文件:

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for …
Run Code Online (Sandbox Code Playgroud)

command-line bash

6
推荐指数
1
解决办法
4127
查看次数

标签 统计

bash ×1

command-line ×1