• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

Best Command line Text Editors in Linux

{{postValue.id}}

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
{{postCtrl.cmtErrMsg}}

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.

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 legeek ?
Installation of the call center module

hello

I wish to install a call center in virtual with issabel, I downloaded the latest version of it , but I don' t arrive to install the call center module in issabel. please help me

thanks!

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.