Now we will write a simple shell script that will print “Hello World”. Using SHC, the Shell script will be converted into binaries directly. Create a script hello.sh, and write the following content in it.
#!/bin/bashecho "Hello World"a=10b=20c=$((a+b))echo $c
Now, to log all commands, run the logger command as follows:
$ logger -f hello.sh