-
vi/vim: Full screen editors;viis always available since it is a POSIX requirement,vimmay need to beinstalled) -
vi filename: Multiple modes:Command modeallows for navigation and the entering of commands using combinations of one or more letters; these can be prefixed with numeric values for repetitionEx modeallow file manipulation; to enter this mode, type a colon (:) followed by the command desiredInsert modeto edit text; enter this post by pressingi- The ESC key always returns to command mode
-
vicommand examples:h: Move one character leftjMove down linekMove up linelMove one character rightHMove to top of screenLMove to bottom of screenGMove to end of file0Move to beginning of line$Move to end of lineiInsert at current positionIInsert at beginning of linexDelete characterddDelete lineoCreate a blank line after current lineOCreate a blank line before current line- Additional commands can be found in the vi/vim man pages
-
Text files can be created by various methods outside of
vi, vimor other editors: -
touch testfile.txt: Creates a blank file called testfile.txt owned by the current user in the current directory -
echo "Some value" > testfile.txt: Creates a file calledtestfile.txt, owned by the current user in the current directory, containing the text following the echo command (in this instance, “Some value”) -
Redirection of almost any command will take the output and place it into a file