How to use vi to edit crontab - Printable Version +- BSDForAll.Org | Forums (https://bsdforall.org/forum) +-- Forum: BsdforALL (Public Forum) (https://bsdforall.org/forum/forumdisplay.php?fid=94) +--- Forum: Guides (https://bsdforall.org/forum/forumdisplay.php?fid=84) +--- Thread: How to use vi to edit crontab (/showthread.php?tid=336) |
How to use vi to edit crontab - monsieur - 10-25-2024 For Linux Web Hosting packages and Managed Dedicated Servers When the crontab -e command is used, the vi editor opens. This editor has a command mode and an insert mode. In command mode, you can enter commands, such as saving the file. Keystrokes in this mode do not appear as text on the screen, but are interpreted as commands. You can access the insert mode by entering an appropriate command. In most cases, this is the i (insert) or insert key. In this mode, the characters you enter are immediately inserted into the text editor. To enter the command mode, press the ESC key. dd Delete current line u Reverse last change x Delete character under the cursor j Merge lines o Insert a new line under the current one p Insert data from the memory buffer at the cursor position q Quit the editor without saving the text. wq Write the changes to the file and quit the editor i Switch to input mode, in order to add and edit text Quote:Taken from: https://www.ionos.com/help/hosting/cron-jobs/editing-the-crontab-file-with-vi/ |