Linux Comm Ex
# Linux ex Command
[ Linux Command Manual](#)
The Linux ex command is used to start the vim text editor in Ex mode.
The execution effect of ex is the same as vi -E. The syntax and parameters can be referred to the vi command. To return from Ex mode to normal mode, enter the ":vi" or ":visual" command in vim.
### Syntax
ex
**Argument Description:**
+number: Start displaying from the specified line number in the file* -b: Edit the file in binary mode
* -c command: Execute the specified command after editing the first file
* -d : When editing multiple files, display the differences
* -m : Do not allow modifying the file
* -n : Do not use the buffer
* -oN: Where N is a number
* -r : List the buffers and display recovery information
* -R : Open the file in read-only mode
* -s : Do not display any error messages
* -V : Display the detailed execution process of the command
* --help : Display help information
* --version : Display version information
### Example
After entering the file name after the ex command and pressing the Enter key, you can enter the ex editing mode. For example, to edit the testfile file, the command format used is as follows:
ex testfile
The output information is as follows:
"testfile" 5L, 95C
"testfile" indicates the file name, 5L indicates 5 lines, and 95 indicates the number of bytes.
Enter ex mode. Type "visual" to return to normal mode.
Its operation is the same as in vim. At this time, if you type "visual" after ":" and press the Enter key, you will enter the vi command full-screen interface; if you type "q", you will exit the editor.
[ Linux Command Manual](#)
YouTip