Scripts for the assignments of GL1 Grupo Linux 1 (Linux Group 1). Traditionally, GL1 is divided in various (5) Tareas (Assignments/Homeworks), that are evaluated by the older members of MAC during the course of a regular trimester.
Pass the name of a classroom as argument to check if the computers of said classroom are up.
$ bash whosup [classroom]
Pass a module name as an argument to check if said module is loaded or not, and offer the option to unload/load it, respectively.
$ bash chkmod [module]
TODO. Matte gomen.
Not a script per se, but change your .bashrc so your prompt shows the exit code of the last executed command.
Checks the contents of the directories in the PATH
variable.
You can pass a directory as an argument through a flag to check if said
directory is in the PATH
.
$ bash indir -d [directory]
Check if the passed program is installed in the computers of a classroom.
$ bash whohas -f [classroom] -p [program]
Alternatively, you can make use of the general purpose ma
script, like so:
$ bash ma -f [classroom] -c 'which [program]'