Sometimes I have problems with opening a file using a graphical text editor -- I'm using geany
. The file can be read by vim
without a problem. I checked the file, and there wasn't anything wrong with it, except some lines. This is for example .bash_history
file:
776 reboot
777 ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@geany /etc/fstab
....
....
823 reboot
824 ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@exit
I don't know what ^@
is, but after removing each line that has it, the file can be read again in geany
. Maybe the reboot action has to do something with it? But I have other reboot
entries in the file and the ^@
characters appear only in two or three places.
This is only an example file, I saw the characters in some other files, one thing seems to be the same -- it concerns only big files, those that have many lines.
Does anyone know what ^@
means, where it came from and why vim
has no problems with reading the file whereas geany
can't read it at all?
/root/.bash_history: UTF-8 Unicode text, with very long lines
. The other difference is that they have^@
between each normal character, but in my case I have the whole line of these^@
, and it only occurs 2-3 times in some file. – Mikhail Morfikov Jan 08 '14 at 04:59