Software

Why Everyone Should Learn Shell

Shell script

  • The scripting languages are funky
  • The tool is always available
  • Learning Shell will be the course in operating systems you never had
    • Sockets
    • Cron jobs
    • file systems
    • Networking

When majoring in Computer Science at my alma mater, our CS 4410/5410: Operating Systems course was a requirement.

Along with that, I took the practicum course, CS 4411/5411: Practicum in Operating Systems, which lets you implement sections of an operating system in C.

Lessons from my first Shell script

One day, my manager proposed to me a task that involved backing up a folder located on server that hosts the backend our that were used to template out Word documents that can be automatically generated. As multiple types of employees (both technical and non-technical) will be editing these JSP files at anytime, we wanted a way to schedule a backup of the folder. Thus, my task was to generate a script that could sync this folder to a local instance of a git repository, and then commit these changes to its remote repo.