---
title: 'Text editor mcedit | Zomro'
description: 'In this article, we will discuss the basic techniques for working with the text editor mcedit, which can be used to edit texts in the Linux operating system.'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a44@server-panel.net/2022/05/01/1653561048_1653560995928.png'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * Text editor mcedit 



# Text editor mcedit

30-05-2022

The operating system _Linux_ has a wide range of text editing programs that can be used by logging into the server via _ssh_. Among them, there are both simple (for example, _nano_) and complex (_vim_ , _emacs_). Here we will consider the text editor _mcedit_ , which is installed along with the file manager _Midnight Commander_. Its name stands for _Midnight Commander Editor_.

## 

## What is the mcedit editor?

  
To install _Midnight Commander_ , log into the server via _SSH_ using the _PuTTY_ program or the built-in _ssh_ program and execute one of the following commands depending on the distribution. For _deb-based_ :
    
    
    apt install mc

  
For _rpm-based_ :
    
    
    yum install mc

  
The _Midnight Commander_ program looks as follows. For its usage, look for an article in our blog.

![Text editor mcedit - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a44@server-panel.net/2022/05/01/1653561048_1653560995928.png)

_Image 1. Appearance of the Midnight Commander program_

  
Here you can select the file you want to edit by pressing **F4** or create a new one by pressing **SHIFT+F4**. If multiple editors are installed on the system, you first need to select the one you will use. Choose _mcedit_. If another editor is already selected, click with the mouse (or press **F9**) in the top menu bar _Options - Configuration_ and check _Use internal edit_ (with the mouse or by pressing **space**) and then at the bottom _OK_.  
  


## **How to launch the editor from the command line?**

## 

To do this, execute one of the commands:
    
    
    mcedit
    mcedit filename

  
The program looks as follows:

![Text editor mcedit - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a44@server-panel.net/2022/05/01/1653561303_1653561270866.png)

_Image 2. Appearance of the mcedit text editor_

  
In the center, there is a large text input area. At the bottom - a cheat sheet of possible commands.  
  
At the top is the status bar. But if you click on this area with the left mouse button or press the **F9** key, the program's menu panel will open. This menu is similar to the menus of regular graphical text editors, for example, the _Notepad_ program in Windows.

![Text editor mcedit - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a44@server-panel.net/2022/05/01/1653561531_1653561525661.png)

_Image 3. Main menu of mcedit_

  
For example, in the _Options - General_ menu, you can enable the _Dynamic paragraphing_ option for word wrapping. Then _Options - Save setup_ to save the settings for subsequent launches of the application.

![Text editor mcedit - 4](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a44@server-panel.net/2022/05/01/1653561664_1653561571682.png)

_Image 4. Main settings window of the mcedit editor_

  
The program has all the necessary features for text editing. Help can be obtained by pressing the **F1** key. After finishing work with the program, press **F2** \- to save and **F10** \- to exit.  
  
To search, press the **F7** key. Enter the word or phrase to search, as well as parameters such as searching in reverse order and others. To search for the next occurrence of the word or phrase, press **SHIFT+F7**.  
  
You can also perform _replacement_. To do this, place the cursor at the beginning of the document or from the line where you want to start the replacement and press **F4**. A replacement window will appear:

![Text editor mcedit - 5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a44@server-panel.net/2022/06/01/1655971387_1655971374985.png)_Image 5. Replacement window_

  
Then you will have the option to choose: replace, skip, or replace all.  
  
To undo an action, press the combination **CTRL+U** , to redo - **ALT+R**.  
  
In the editor, you can also highlight a fragment of text and perform some actions on it. To highlight a fragment, place the cursor at its beginning and press **F3**. Move the cursor to the end of the fragment (the next character after the last highlighted character) and press **F3** again. Then place the cursor in the desired position in the document and press **F5** to copy the highlighted fragment or **F6** to move it (acts like cut and paste).

### Conclusion

Thus, we have reviewed the basic capabilities of the _mcedit_ text editor, which allows you to create and edit files on [Linux servers](https://zomro.com/vps) with _Linux_ family operating systems.  
  
  
We also suggest considering other useful articles:​​​​​​​

  * [File manager Midnight Commander](https://zomro.com/blog/faq/207-fajlovyj-menedzher-midnight-commander)
  * [Dockerfile: A complete guide for beginners and professionals](https://zomro.com/blog/faq/477-dockerfile-a-complete-guide-for-beginners-and-professionals)
  * [How to connect to a Docker container via sFTP](https://zomro.com/blog/faq/306-how-to-connect-to-a-docker-container-via-sftp)



Similar articles:

[How to Install Python 3.10 on Ubuntu 20.04](https://zomro.com/blog/faq/299-kak-ustanovit-python-310-na-ubuntu-2004) [How to log in to a Linux server via SSH (Windows / macOS / Linux)](https://zomro.com/blog/faq/688-how-to-login-to-a-linux-server-via-ssh-windows-macos-linux) [Databases in cPanel](https://zomro.com/blog/faq/178-bazy-dannyh-v-cpanel) [How to Install Docker on Ubuntu 20.04](https://zomro.com/blog/faq/286-kak-ustanovit-docker-na-ubuntu-2004) [How to order a dedicated server in the new billing](https://zomro.com/blog/faq/230-kak-zakazat-vydelennyj-server-v-novom-billinge)

[ Dedicated servers from €88.80/mon ](/dedicated-servers)
