Easy Tutorial
❮ Linux Comm Read Linux Comm Last ❯

Linux ex Command

Linux Command Manual

The Linux ex command is used to start the vim text editor in Ex mode.

ex operates similarly to vi -E, and its syntax and parameters can be referenced from the vi command. To return from Ex mode to normal mode, enter ":vi" or ":visual" in vim.

Syntax

ex [options][arguments]

Parameter Description:

Example

After entering the ex command followed by the filename and pressing Enter, you can enter the ex editing mode. For example, to edit the testfile, use the following command format:

ex testfile

The output information is as follows:

"testfile" 5L, 95C

"testfile" represents the filename, 5L represents 5 lines, and 95 represents the number of bytes.

Enter ex mode. Enter "visual" to return to normal mode.

Its operations are the same as in vim. If you enter "visual" after ":" and press Enter, you will enter the full-screen vi interface; if you enter "q", you will exit the editor.

Linux Command Manual

❮ Linux Comm Read Linux Comm Last ❯