File management

  • touch, mv, rm
  • chmod: permission bits
  • ln: symbolic/hard link

Shell programming

  • Passing arguments
  • Exit values:
    • demo: echo alice; echo $?; rm filenamedttt; echo $?
    • exercise:
      1. touch file111; rm touch file111; echo $? what is the output?
      2. what do you need to do to make echo $? printout 1
    • homework:
      1. makedir fff; echo $?; makedir fff; echo $?; why is output different?
  • Commenting

Redirection/Piping

  • & < |

Grep & Find

Process Management

  • ps
  • top
  • Background processes