Skip to main content

Posts

Showing posts with the label nano

LPI E - vi or nano

LPI E - Scripting 3.3 Turning Commands into a Script  Review of Topics- Part 2 of 2 Part One: Scripting Editors to use with Linux Command Line Interface (CLI) Vi Editor  The Vi editor is a powerful and versatile text editor that is included with most Linux distributions. It can be accessed from the terminal by typing vi followed by the name of the file you want to edit. For example, to edit a file called "test.txt", you would enter the command $ vi test.txt Once you have opened a file in vi, you can begin editing it by pressing the "i" key to enter insert mode. In insert mode, you can type and edit text as you normally would in any other text editor. When you are finished editing, press the "Esc" key to return to command mode. From here, you can save your changes and exit the editor by typing :wq and pressing Enter. This command will save your changes and exit the editor. If you want to exit the editor without saving your changes, type :q! and press E...