터미널이 이상합니다

우분투에서 터미널을 키면 이런게 나오는데 어떻게 해야 할지 모르겠네요.참고로 우분투는 8.10버전입니다.
bash: D: command not found
bash: D: command not found
bash: C: command not found
bash: A: command not found
bash: A: command not found
bash: A: command not found
bash: C: command not found
bash: C: command not found
usage: B [-nnnn] files…
usage: B [-nnnn] files…
usage: B [-nnnn] files…
bash: A: command not found
bash: A: command not found
bash: A: command not found
bash: D: command not found
bash: D: command not found

일단 확인해 볼 것은 .bashrc나 .bash_profile 같은 파일에 무슨 내용이 들어 있나 하는 것 같은데요.

파일시스템에서 찾아봤는데 bash.bashrc라는 파일을 열어보니 이렇게 나옵니다

System-wide .bashrc file for interactive bash(1) shells.

To enable the settings / commands in this file for login shells as well,

this file has to be sourced in /etc/profile.

If not running interactively, don’t do anything

[ -z "$PS1" ] && return

check the window size after each command and, if necessary,

update the values of LINES and COLUMNS.

shopt -s checkwinsize

set variable identifying the chroot you work in (used in the prompt below)

if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

set a fancy prompt (non-color, overwrite the one in /etc/profile)

PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$ ’

Commented out, don’t overwrite xterm -T "title" -n "icontitle" by default.

If this is an xterm set the title to user@host:dir

#case "$TERM" in
#xterm*|rxvt*)

PROMPT_COMMAND=‘echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"’

;;

#*)

;;

#esac

enable bash completion in interactive shells

#if [ -f /etc/bash_completion ]; then

. /etc/bash_completion

#fi

sudo hint

if [ ! -e $HOME/.sudo_as_admin_successful ]; then
case " $(groups) " in *\ admin\ *)
if [ -x /usr/bin/sudo ]; then
cat <<-EOF
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
EOF
fi
esac
fi

if the command-not-found package is installed, use it

if [ -x /usr/lib/command-not-found ]; then
function command_not_found_handle {
# check because c-n-f could’ve been removed in the meantime
if [ -x /usr/lib/command-not-found ]; then
/usr/bin/python /usr/lib/command-not-found – $1
return $?
else
return 127
fi
}
fi

[quote="자전거타기":1myr1qhs][code:1myr1qhs]# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found ]; then
function command_not_found_handle {
# check because c-n-f could’ve been removed in the meantime
if [ -x /usr/lib/command-not-found ]; then
/usr/bin/python /usr/lib/command-not-found – $1
return $?
else
return 127
fi
}
fi[/code:1myr1qhs][/quote:1myr1qhs]
얘가 뿌리는 메시지들인데… command-not-found 패키지가 뭐하는 건지 전 모르는 관계로 자세한 것은 다른 분이 알려주실 듯한… ^^

[quote="somebody":3extdy39]command-not-found 패키지가 뭐하는 건지 전 모르는 관계로 자세한 것은 다른 분이 알려주실 듯한… ^^[/quote:3extdy39]
command-not-found 패키지는 터미널에서 입력한 명령이 없는 경우에 어떤 패키지를 설치하면 그 명령이 사용가능해지는지를 알려주는 프로그램일 겁니다. 명령이 없으면 그 프로그램이 설치되지 않은 다른 패키지에서 제공되는 명령인지 알아본 다음에 있으면 그 패키지를 설치하라는 메시지를 출력해 주고, 다른 패키지에서도 제공되는 명령이 아니면 그냥 보통의 "명령이름: command not found"이라는 메시지를 출력하는 것이죠.

그 패키지가 손상돼서 저런 메시지가 나오는 것일 수도 있겠지만, 그보다는 우선 홈디렉토리에 있는 .bashrc (~/.bashrc)를 살펴보는 게 더 좋겠습니다. system default로 사용되는 /etc/bash.bashrc 말구요. 파일관리자에서 ALT+HOME 눌러서 홈 디렉토리로 가신 다음에 CTRL+H를 누르시면 숨김 파일들(파일 이름이 .으로 시작하는 파일들)이 보이는데 그 중에서 .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

[ -z "$PS1" ] && return

don’t put duplicate lines in the history. See bash(1) for more options

don’t overwrite GNU Midnight Commander’s setting of `ignorespace’.

export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups

… or force ignoredups and ignorespace

export HISTCONTROL=ignoreboth

append to the history file, don’t overwrite it

shopt -s histappend

for setting history length see HISTSIZE and HISTFILESIZE in bash(1)

check the window size after each command and, if necessary,

update the values of LINES and COLUMNS.

shopt -s checkwinsize

make less more friendly for non-text input files, see lesspipe(1)

[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

set variable identifying the chroot you work in (used in the prompt below)

if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

set a fancy prompt (non-color, unless we know we "want" color)

case "$TERM" in
xterm-color) color_prompt=yes;;
esac

uncomment for a colored prompt, if the terminal has the capability; turned

off by default to not distract the user: the focus in a terminal window

should be on the output of commands, not on the prompt

#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it’s compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi

if [ "$color_prompt" = yes ]; then
PS1=‘${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m]$ ’
else
PS1=’${debian_chroot:+($debian_chroot)}\u@\h:\w$ ’
fi
unset color_prompt force_color_prompt

If this is an xterm set the title to user@host:dir

case "$TERM" in
xterm*|rxvt*)
PS1="[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a]$PS1"
;;
*)
;;
esac

Alias definitions.

You may want to put all your additions into a separate file like

~/.bash_aliases, instead of adding them here directly.

See /usr/share/doc/bash-doc/examples in the bash-doc package.

#if [ -f ~/.bash_aliases ]; then

. ~/.bash_aliases

#fi

enable color support of ls and also add handy aliases

if [ -x /usr/bin/dircolors ]; then
eval "dircolors -b"
alias ls=‘ls --color=auto’
#alias dir=‘dir --color=auto’
#alias vdir=‘vdir --color=auto’

#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'

fi

some more ls aliases

#alias ll=‘ls -l’
#alias la=‘ls -A’
#alias l=‘ls -CF’

enable programmable completion features (you don’t need to enable

this, if it’s already enabled in /etc/bash.bashrc and /etc/profile

sources /etc/bash.bashrc).

if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

D
D
C
A
A
A

C
C
B
B
B
A
A
A
D
D
alias X=‘export LANG=ko_KR.UTF-8; startx’

[quote="자전거타기":njsxuy7o]
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

[b:njsxuy7o]
D
D
C
A
A
A

C
C
B
B
B
A
A
A
D
D[/b:njsxuy7o]
alias X=‘export LANG=ko_KR.UTF-8; startx’[/quote:njsxuy7o]

쟤네들이네요. ㅋㅋ 편집하시다가 실수하신듯?

해결됐습니다.
이렇게 간단한걸 가지고 그동안 뭘 한건지…
마지막 부분에있는 알파벳지우니까 제대로 나오내요.
댓글 달아주신 분들 고맙습니다.
덕분에 우분투가 더 재미있어질 것 같습니다.