cat
cat Read one or more files and print them on standard output.
cat filename.txt (display the content of filename.txt)
cat -n myfiles.txt number all output lines, starting with 1
cat > newfile to exit, enter EOF (Ctrl-D)
cat >> newfile to append the file
vi editor
vi editor External Link 1 2 A screen-oriented text editor. Vi has two modes insert mode and command mode. The editor begins in command mode, where cursor movement and copy/paste commands may be issued
vi filename (creating or opening a filename)
esc + i insert the text
:wq Save and exit
:q exit without save
:wq! save and exit forcefully (! forcefully)
No comments:
Post a Comment