From the course: Practical Linux for Network Engineers: Part 1

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

nano and vi introduction

nano and vi introduction

- [Narrator] Now Nano is a easy text editor to use to get started and I recommend that you use it initially but a lot of experienced Linux administrators will either use VI or VIM. Now in this Docker container notice when I type VI, it's actually using VIM or VIimproved. I'd recommend that if you want to use VI that you actually use VIM rather than VI. On this Ubunto server, if I type VI, notice it's actually using VIM, and if I type VIM, it starts VIM. So initially I suggest that you use Nano, but you may come across systems that don't have Nano installed, so you need to use VIM or VI. So it's well worth learning VI once you get familiar with Linux. When you start Nano and you edit a file, such as myFile, you are immediately in an editing mode. So as an example, I could type something like Hello. Control-x to exit, Yes to save the file. But in VI there are two modes. There is command mode and editing mode. By default I'm in command mode, so if I keep pressing H here, nothinG's…

Contents