I'm trying to run the command:
$ sudo echo ko_KR.UTF-8 UTF-8 >> /etc/locale.gen
but I get permission denied
. Strangely, it doesn't even ask for my password with sudo.
However, if I type
$ su
# echo ko_KR.UTF-8 UTF-8 >> /etc/locale.gen
It works.
I've tried this on two Manjaro installations - same problem. While the su
method works, I'm trying to write a guide so I want to keep it simple.
Does anyone know what I'm doing wrong? It seems like I'm doing some unintended bash syntax.
Thanks!