Create a new file:
1 |
cat > filename.txt |
source: https://www.wikihow.com/Create-and-Edit-Text-File-in-Linux-by-Using-Terminal
Working with vim
source: https://stackoverflow.com/questions/11828270/how-to-exit-the-vim-editor
To switch between editing and command mode in vim hit the ‚i‘ key to edit text (insert) or the escape key to enter commands which start with a colon, like :q.