Read Time:1 Minute, 12 Second
- To exit without saving changes made:
- Press <
Escape>.
(You must be in insert or append mode if not, just start typing on a blank line to enter that mode) - Press
:<colon>.
The cursor should reappear at the lower left corner of the screen beside a colon prompt. The colon indicates that what follows is a Vim command. - Enter the following:
q! - Then press <Enter>.
This will quit the editor, and abandon all changes you have made; all changes to the document will be lost.
- To exit with saving changes made:
- Press <
Escape>.
(You must be in insert or append mode if not, just start typing on a blank line to enter that mode) - Press
:<colon>.
The cursor should reappear at the lower left corner of the screen beside a colon prompt. The colon indicates that what follows is a Vim command - Enter the following:
wq
Type “wq” , the “w” indicates that the file should be written, or saved which will overwrite existing file and the “q” indicates that vim should quit, or exit - Then press <Enter>.
This will quit the editor, and write all changes you have made; all changes to the document will be saved.
- To search process name which are processing:
- Enter the following.
ps-ef | grep testpython
Option:
- -e:Show all process
- f: Show by hierarchy
- grep : search command
- testpython: search test.