logo

UTK Notes


Hello World

Unix

  • Operating System - Windows/Mac
  • Unix –> Linux
  • Command Line –> different way to navigate without graphics (no double-clicking on icons, etc.)

Terminal

text1@text2 ~ % ##

  • text1 = username
  • text2 = computer
  • ~ = home directory
  • % = end

Commands

  • cd [dir] = change directory (beneath or in folder)
  • cd .. = change directory (go to parent directory)
  • cd [dive deep directory] = using forward slash
  • cd [tab button] = view preview of directories
  • mkdir [new name]= make directory (folder)
  • ls = list contents current directory
  • ls -a = list all hidden files in a directory
  • ls -l = list files with more information like access time and size
  • clear = clear screen
  • whoami = shows your username

Vim

  • vim/nano/emacs –> Text Editor
  • vim hello.cpp
  • type i → insert mode
  • write code
  • escape to exit insert mode
  • :w - write/save
  • :q - quit
  • :wq - save then quit

Video Lectures

CS 102 - 8.25 Syllabus Day (Both)

CS 102 - 8.30 Unix & VIM (Hello World with Both)

Quizzes