How to install mcedit on Linux Ubuntu?

I need to use mcedit to write my name to the file.
When I wrote “…~/file $ mcedit text1.txt”,
I got “mcedit: command not found”.
What should I do? Please, help me.

P.S. There are no bugs in the code