Команда edit
Text editor (variant of ex for casual users).
edit [ -| -s ] [ -l ] [ -L ] [ -R ] [ -r [filename ] ] [ -t tag ] [ -v ] [ -V ] [ -x ] [ -wn ] [ -C ] [+command | -c command ] filename
| - | -s | Suppress all interactive user feedback. This is useful when processing editor scripts. |
| -l | Set up for editing LISP programs. |
| -L | List the name of all files saved as the result of an editor or system crash. |
| -R | Read only mode; the read only flag is set, prevent ing accidental overwriting of the file. |
| -r filename | Edit filename after an editor or system crash. (Recovers the version of filename that was in the buffer when the crash occurred.) |
| -t tag | Edit the file containing the tag and position the editor at its definition. |
| -v | Start up in display editing state using vi . You can achieve the same effect by simply typing the vi command itself. |
| -V | Verbose. When ex commands are read by means of standard input, the input will be echoed to standard error. This may be useful when processing ex commands within shell scripts. |
| -x | Encryption option; when used, edit simulates the X command of ex and prompts the user for a key. This key is used to encrypt and decrypt text using the algorithm of the crypt command. The X command makes an educated guess to determine whether text read in is encrypted or not. The temporary buffer file is encrypted also, using a transformed version of the key typed in for the -x option. |
| -wn | Set the default window size to n. This is useful when using the editor over a slow speed line. |
| -C | Encryption option; same as the -x option, except that vi simulates the C command of ex . The C command is like the X command of ex , except that all text read in is assumed to have been encrypted. |
| +command | -command | Begin editing by executing the specified editor command (usually a search or positioning command). |
| filename | The name of the file that you wish to edit. |
edit myfile.txt - Runs the editor for myfile.txt.