Skip to content

Useful stuff for Labs

TengWeiWen edited this page Apr 22, 2021 · 5 revisions

Login to pLab:

  1. open Terminal
  2. type ssh userid@pe101, then hit enter/return (userid is found in the email titled CS2030 Account Slip sent to you)
  3. type your password, then hit enter/return (password is found in the email titled CS2030 Account Slip sent to you)

Useful commands

  • ls(this shows you a list of all the files in your current directory). ls -a shows hidden files!
  • elinks index.html (this opens the lab question)
  • jshell -q your_java_files_in_bottom-up_dependency_order < testX.jsh to run the test files
  • javac *.java compiles all code in current directory
  • cd change directory (to home)
  • cd directory_name change directory (to specified directory)
  • rm filename removes specified file
  • mv existing_filename new_filename renames file