How Do I Edit an Existing File in Linux?
Contents

How do I edit a file in Terminal?

In the Terminal app on your Mac, invoke a command-line editor by typing the name of the editor, followed by a space and then the name of the file you want to open. If you want to create a new file, type the editor name, followed by a space and the pathname of the file.

How do I edit a file in Unix?

In this article

2Use the arrow keys to move the cursor to the part of the file you want to change. 3Use the i command to enter Insert mode. 4Use the Delete key and the letters on the keyboard to make the correction. 5Press the Esc key to get back to Normal mode.

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest