You can always start up an editor immediately to edit the current file being viewed. This will save some time while typing commands. The editor is taken from the environment variable VISUAL if defined, or EDITOR if VISUAL is not defined, or defaults to “vi” if neither VISUAL nor EDITOR is defined. I suggest you define your EDITOR first, enter:
$ export EDITOR=vim OR $ echo 'export EDITOR=vim' >> ~/.bash_profile export EDITOR=vim Feel free to replace vim with emacs, joe or any other editor of your choice. Open a text file using more or less pager, type: $ less myfile.txt OR $ more ~/some.conf To edit a file, hit v key from keyboard. This will start up an editor at current line and file.
man page less and more
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics: