Useful stuff for Labs - nus-cs2030/2021-s2 GitHub Wiki
Login to pLab:
- open Terminal
- type
ssh userid@pe101
, then hit enter/return (userid is found in the email titled CS2030 Account Slip sent to you)
- 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