After adding alias rm='rm -i'
to my ~/.bashrc
file (because, when I removed a file, it wasn't asking for confirmation), file names are surrounded with "â" signs as in the example below:
rm: cannot remove âfile1.txtâ: No such file or directory
List of aliases:
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias rm='rm -i'
alias vi='vim'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
Note: I am ssh'ing to my CentOS machine with PuTTY from my Windows machine, so this is definitely a character encoding issue. Using Ubuntu guest in my VM, everything is fine. Smart quotes are showing as they need to.
rm
already? Can you show all of them? Do you also have completion enabled?file1.txt
? That looks like the normal response fromrm
for a non-existent file when there is a character set translation issue (a terminal set up for ISO-8859-1 rather than UTF-8 for example)