Agenda

Logging on to a server(ssh)
preprocessing, linking, compiling…
Working of os, cpu, kernel…
Filter commands: grep, head, tail
Basics of vi

Notes

  • Ctrl S stops screen updates (terminal will appear to have hanged)

$ \ $

  • Swap files and vi recovery mode

    Suddenly closing a file while editing in vim creates a swap file problem where you are prompted to work with the swap file or quit

    • Fix

      • Open the file causing the file in recovery mode vi -r filename.txt
      • Choose which swap file you want to work with by entering the corresponding number
      • save file with another name in vim -> :w newfilename.txt
      • Read this Vim documentation: recover Vim documentation: usr_11

$ \ $

  • Stray trailing \324 error

    • Something similar to

        $ stray '\302' in program 
        exec.c:76: error: stray '\244' in program
      
    • Fix

      - Usually because of strange non-ascii characters in file.
      - Fix strange looking characters or retype *,\ and such characters to be sure
      - Read this.