OPS435 Lecture 1 - Bash

From CDOT Wiki
(Redirected from OPS435 Lecture 1)
Jump to: navigation, search
  • Overview of course including
    • assignment expectations
    • lab preparation
    • teacher policies.
    • subject outline
    • evaluation
      • one midterm test 30%
      • ten labs 10%
      • first assignment 8%
      • second assignment 12%
      • first quiz 2%
      • second quiz 3%
      • final exam 35%
  • Coding Style
    • Always include author, date, purpose and usage
    • Tabs are 8 characters, use 2 spaces instead
    • Break long lines into smaller ones
    • Use correct indentation
    • Use short meaningful variable names
    • Make functions short with one exit point
    • Add short comments to explain complex statements
  • Using the Linux GUI
    • Work with three open windows
      • editor such as gedit
      • terminal such as konsole
      • browser such as firefox
  • Make use of desktops if you need more windows
  • Using the Linux CLI
    • Use "ssh -CX username@matrix.senecac.on.ca"
    • Use scp to copy files from local PC to/from Matrix
  • Example Commands
    • file
    • man
    • display
    • ssh
    • scp
    • echo
    • quota
  • Also discussed the PATH variable
    • to see your path use
      • echo $PATH
    • to set your path use
      • export PATH
    • to set your path for a terminal session include it in your .bashrc file
  • Gave examples of
    • file
    • cd