Operating System Tutorial
Chapter 4, Writing and editing

Summary

Summary

 To create a file with cat           cat > filename 
                                     text 
                                     <Ctrl>D 
 To display a file                   cat filename 
 To pause/resume the screen          <Ctrl>S/<Ctrl>Q 
 scrolling
 To start writing a file with the    vi filename 
 vi editor
 To insert text in vi                i 
 To return to command mode from      <Esc>
 insert mode
 To quit vi, saving any changes      :x 
 To move around in vi                use the arrow keys or h for left,
                                     l or <Space> for right, k for up,
                                     and j for down
 To delete a character in vi         x 
 To print a file                     lp filename 
 To print 2 copies of a file         lp -n2 filename 
 To print a file in the background   lp filename & 
 To run any job in the background    commandline & 
 To check the status of a print      lpstat [ job_id ]
 job
 To cancel a print job               cancel job_id 
 ---------------------------------------------------------------------
 For more information about          See
 ---------------------------------------------------------------------
 cat                                 cat(C) 
 vi                                  Chapter  4, ``Editing files'' 
                                     vi(C) 
 lp, lpstat, cancel                  lp(C) lpstat(C) and cancel(C)