Vi si dwarf are edtoare text Linux. Be it Ubuntu or RedHat, CentOSThese editors are vital when it comes to modify a script, an crontab or any other file present on the Linux operating system. I am kind and nano Notepad for LinuxWith the difference that they do not have a graphical interface. Open directly via command line and edit them using the terminal / console or through a login on Linux client support SSH, Like Putty or OS X Terminal.
For many users, Vi is a little more complicated, with a set of editing commands which rely on typing more effective than the controls shortcutplants, as the nano. The extemplu if we want to close a file opened with "you" have to type the command ": Quit!"Or shorter"Q!"While at" nano "is enough key combination" Ctrl + X ". From this point of view, it is more close to the nano Windows and interface OS X.
If you installed Linux operating system, which is set to "vi" text editor default, then you need to follow a few steps to change the text editor deault of "you" in "nano".
How to change default text editor "vi" in "nano" on CentOS
First make sure that you have the editor "nano" installed on your system. Login on terminal server and execute the command:
yum install nano
If you already installed the final message you will receive the latest version is already installed on your system
Ex. Package nano-2.0.9-7.el6.x86_64 already installed and latest version / Nothing to do
After being installed "nano" use this program to edit the file "/ Etc / bashrc”
nano / etc / bashrc
In the file / etc / bashrc add the final line "export EDITOR =" nano ""
export EDITOR = "nano"
Ctrl + X (y) and save changes. Log out of the system and log back on to test whether the default text editor changed.
This tutorial is particularly useful for editing commands that execute without specifying what editor will be used for the file. The best example is editing crontab swaps, which is done by the command: crontab -e. Executing this command will open the file in the editor cron job sites set on the system default.
In the scenario where vi editor It sets default system and do not want to change it, but you want to crontab file open nanoThen execute the following command in the terminal:
EDITOR = nano crontab -e env
Fiser crontab will automatically open and can be edited with nano for the current session.
Change default Linux via command line text editor software - Linux Tutorials & Tips.How to install iOS Beta (Beta iOS 9.3 3) on an iPhone or iPad [iPhone or iPad to Apple Enroll Software Beta Program] »»
Old: «« Clean HDD / SSD OS X for more space (iMac, MacBook Pro, MacBook Air)
IT Tips - Windows, Mac OS X, Linux & Mobile - How to set default on Linux NANO editor or publisher of Vi such change in NANO
Users Who found this tutorials and downloads Were searching for:
- PXE start over ipv6 windows 7
- instalacii po type centos
- ubantu setting kaise kare
- indstillinger software download
- लिनक्स hai kaise खिड़कियों करे