This repository contains some additional activity questions for practice for the System Commands (SE2001) course.
- Clone this repository to your local machine.
- Open the terminal and navigate to the directory where you have cloned the repository.
- Source the
activate.sh
script to activate the environment. - Go inside each question's directory and type
qshow
to see the question. - Write the answer in a file called
script.sh
. - Run
qeval
in that folder to check your answer.
- Clone this repository to your local machine.
- Open the terminal and navigate to the directory where you have cloned the repository.
- Source the
activate.sh
script to activate the environment. - Type
qnew type_of_question
to create a new question. If you typeqnew awk
, it will automatically createq-awk-4
directory with the necessary files, if the last question wasq-awk-3
. - Type
qqedit
to edit the README.md file to add the question. - Type
qsedit
to edit thescript.sh
file to add the solution. - Create your test cases of the format
*.in
in the directory. - Type
qmake
to create the output files for the test cases of format*.out
. - If you change the solution, type
qeval
to check if the solution is correct. or remove the*.out
files and typeqmake
to create the output files again.
You can also run qeval all
to check all the questions at once.
All the commands can be also run from other directories by providing
the name of the question as an argument. For example, qshow q-awk-4
.