- Bare Metal
- Bare Metal Cloud
- Big Data Benchmarks
- Big Data Experts Interviews
- Big Data Technologies
- Big Data Use Cases
- Big Data Week
- Data Lake as a Service
- Dedicated Servers
- Disaster Recovery
- Industry Standards
- Online Retail
- People of Bigstep
- Performance for Big Data Apps
- Press Corner
- Tech Trends
- What is Big Data
Best Command-Line Editors in Linux
Text editors are essential in any operating system and Linux is no exception. While desktop versions of various distributions are becoming more and more interactive and user-friendly, the real power of this operating system is the command line.
Regardless if you are a system administrator or a simple user, choosing the right editor for the command line is very important, because it can greatly increase your productivity. In this article, we will discuss a selection of the best five CLI editors available.
Vim is the most common and famous text editor of the Linux world and comes installed by default (either vim or the more basic version vi) in most distributions. It has been available since 1991 and it is an improved version of the vi editor found on Unix machines.
- very powerful and fast, once you master it
- numerous advanced features
- solid and easy to find documentation for it
- it can be easily customized for various tasks, with a wide range of plugins
- famously unfriendly with new users, so most of them will have a hard time figuring out how to edit texts or even how to exit the program
- has a steep learning curve
- in order to use it effectively, you have to learn many shortcuts and commands
Just like vim, emacs is a classic Unix/Linux text editor that has been around since the 1970s. The rivalry between vim and emacs users actually triggered one of the first flame wars between computer users, achieving cult status in the sysadmin and hacker culture.
- very stable and fast
- many powerful features, including the Lisp programming language and even applications such as IRC clients or a package manager
- multiple users can share the same emacs instance
- online help is available directly from the editor
- has a huge collection of modules and plugins
- difficult to learn and very complex for new users
- some of the documentation is outdated
Nano is a development of the pico editor and was developed from the start to be user-friendly and intuitive for command-line beginners.
- easy to use and learn
- quick navigation
- the most common shortcuts are displayed on the screen
- not as powerful as other editors
- intended for simple tasks
Micro is another user-friendly editor and actually aims to emulate the simplicity of nano, while adding more powerful features on top.
- easy to use and install
- standard defaults and key bindings
- includes features such as a terminal emulator, syntax highlighting and many more
- advanced mouse support
- lacks some of the capabilities of vim or emacs
- needs additional packages in order to work
Ok, we are aware that mc (Midnight Commander) is not an actual text editor. However, this clone of the old Norton Commander file manager includes a text editor (mcedit) that is surprisingly effective, and some system administrators use it heavily.
- easy to use
- ideal for editing configuration files directly from mc
- offers mouse support, automatic indentation, syntax highlighting and other useful features
- lacks advanced functions
About the Author
Dragos Baldescu is a Level 2 Technical Support Engineer at Bigstep, passionate about Linux and testing out new technologies and solutions.