xxxxxxxxxx
vim filename.txt
//press i to enter insert mode
//press esc to exit insert mode
type :wq then enter to leave vim
xxxxxxxxxx
1. nano filepath.extension // to view and edit the file
2. vim filepath.extesion
2.a press i //for edit mode
2.b Enter Esc
2.c :wq // write this at the end of file to save the edited part
2.d :q! // without save and quite
3. ls -lh //to view all data of files present in directory with size