- Copy k.sh to home directory
~/
. - Run
chmod +x ~/k.sh
- Add
alias k='~/k.sh'
to~/.bashrc
- Source
source ~/.bashrc
$ k simple.ko
Read module name from user
- Build using
make
, unload a module if alreasy loaded - Clear the kernal log
- Load the module
- Unload module
- Print and clear the kernal log
Please enjoy this .sh file and feel free add/change by using pull-request.