TECH.ROOM

   Home | PCHelper.com Est 1996 | HostCheetah.net | ParagonHost.net | LiquidLayer.net | RamNode | News | Products | Blog | Video | Crawler.Search | Helpdesk

How to Edit Text Files in CentOS

Double-click on the “Home” folder on the desktop and navigate to the file you want to edit.

Double-click on the file icon to open the file in the Gedit text editor.

Edit the document using the mouse to navigate through the text and the keyboard to make changes.

Save your changes by pressing the “Ctrl-S” keys simultaneously or choose the “Save” option under the “File” menu.

Close the file by clicking on the “X” button or by choosing the “Close” option under the “File” menu.

Command Line

Right-click on the desktop and choose the “Open in Terminal” option from the menu that appears.

Type the cd command at the command prompt, followed by the name of directory that contains the text file:

cd directory_name

Type the vi command followed by the name of the file to open the file in Vi:

vi file_name.txt

Use the keyboard to navigate through the file. Press “j” to move the cursor down, “k” to move the cursor up, “h” to move the cursor left and “l” to move the cursor right.

Press the “i” key to insert text into the file.

Press the “Esc” key to return to normal mode to continue navigating through the file.

Type “:wq” on the keyboard to save and close the file.


Curated by: https://www.ParagonHost.net

Est. 1999 | Paragon Host Internet Group | Web, Email, Workspace | Global Hosting Services