• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

Best Command line Text Editors in Linux

18

Best Command line Text Editors in Linux

In this article we will discuss about various command line text editors in Linux.

Vi/Vim Editor

Vim editor is a flexible editor which is the improved version of vi editor. It is used by linux power users and developers.

vim

To install vi/vim editor

On Debian and its derivatives
# apt-get install vim

On newer Fedora 22+ versions
# dnf install vim

On RedHat based systems

[root@linuxhelp]# yum install vim 
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
-->  Running transaction check
--->  Package vim-enhanced.x86_64 2:7.4.629-5.el6 will be installed
-->  Processing Dependency: vim-common = 2:7.4.629-5.el6 for package: 2:vim-enhanced-7.4.629-5.el6.x86_64
.
.
.
Installed:
vim-enhanced.x86_64 2:7.4.629-5.el6
Dependency Installed:
vim-filesystem.x86_64 2:7.4.629-5.el6
Dependency Updated:
vim-common.x86_64 2:7.4.629-5.el6
Complete!

Vim editor basic usage guide

Press Esc and do the following options,

I Inserting text
:q quit
:q! quit forcefully
:wq save and quit
:wq! save and quit forcefully

Saved in current location

Emacs Editor

Emacs editor is complex text editor and it is more productive because it provides integrated environment for different tasks.

EMAS

To install Emacs editor:

On Debian and its derivatives
apt-get install emacs

On newer Fedora 22+ versions
dnf install emacs
apt-get install emacs23-nox

On RedHat based systems

[root@linuxhelp]# yum install emacs 
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
-->  Running transaction check
--->  Package emacs.x86_64 1:23.1-28.el6 will be installed
-->  Finished Dependency Resolution
Dependencies Resolved

=============================================================================================
Package Arch Version Repository Size
=============================================================================================
Installing:
emacs x86_64 1:23.1-28.el6 base 2.2 M

Transaction Summary
=============================================================================================
.
.
.
Installed:
emacs.x86_64 1:23.1-28.el6
Complete!

Emacs editor basic usage guide

c-x + c-f - opening new file & finding files [c-ctrl]
Enter the new filename with path
c-x + c-s - save
c-x + c-c - quit

Nano Editor

Nano editor is a simple and it is reinstalled in Linux. It is the most frequently used command line text editors. It has features like cut text, spell check, uncut text, next page, and justify etc.

NANO

To install nano editor
On Debian and its derivatives
apt-get install nano

On newer Fedora 22+ versions

dnf install nano

On RedHat based systems

[root@linuxhelp]# yum install nano 
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
-->  Running transaction check
--->  Package nano.x86_64 0:2.0.9-7.el6 will be installed
-->  Finished Dependency Resolution

.
.
.
Installing : nano-2.0.9-7.el6.x86_64
1/1
Verifying : nano-2.0.9-7.el6.x86_64
1/1
Installed:
nano.x86_64 0:2.0.9-7.el6
Complete!

Basic usage of nano editor :
Just enter the text
Ctrl + x - exit
Saving option will be asked while saving, select yes or no
Enter file name and press enter
Saved in current.

Tags:
connor
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How to perform find and replace in vi/vim text editor?

A

Inside vi/vim text editor press Esc button and then type the following command --> :%s/old-text/new-text

Q

What is the difference between vi and vim text editor?

A

vim is updated version of vi text editor which has all features like vi and have some new cool features like coloured text for vim text editor

Q

Can you suggest any best text editor for programming?

A

You can use sublime text editor

Q

How to install atom text editor on opensuse

A

refer the following link https://www.linuxhelp.com/how-to-install-atom-text-editor-in-opensuse/

Q

What is gbit editor?

A

In this editor, the command line terminal has the variety of colors.

Related Tutorials in Best Command line Text Editors in Linux

Related Tutorials in Best Command line Text Editors in Linux

How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to Install NEdit on Ubuntu 18.04
How to Install NEdit on Ubuntu 18.04
Aug 29, 2018
How to Install NEdit on Centos 7
How to Install NEdit on Centos 7
Oct 1, 2018
How to install Xed Editor on Ubuntu 16.04
How to install Xed Editor on Ubuntu 16.04
May 6, 2017
How to install NixNote 2.0.2 on Ubuntu 18.04
How to install NixNote 2.0.2 on Ubuntu 18.04
Jul 6, 2018
How to install Leafpad 0.8.18.1 on Ubuntu 18.04
How to install Leafpad 0.8.18.1 on Ubuntu 18.04
Jun 19, 2018
How To Install Sublime Text Editor In Linux
How To Install Sublime Text Editor In Linux
Jul 9, 2016
How to install Bluefish Editor on Ubuntu
How to install Bluefish Editor on Ubuntu
Jul 13, 2016

Related Forums in Best Command line Text Editors in Linux

Related Forums in Best Command line Text Editors in Linux

vim
jacob class=
Change true vi-compatible editor from Debian Vim-compatible
Nov 8, 2021
Text Editor
ajinfernando class=
Vim editor : find and replace
Jan 29, 2018
Text Editor
MSD class=
How to set line number in vim editor
Feb 17, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Ganesh Konka ?
Zentya 6.1 http proxy configuration

please send link for creating zentyal 6.1 for http proxy and firewall as gateway.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.