Scripting with Shell and Bash Commands in Linux
In this brief chapter, we’ll delve into shell and Bash scripting with Linux, covering basic navigation control statements, functions, data processing and pipelines, and database operations. Additionally, you’ll learn how to leverage the cron
command for task scheduling and, importantly, how to run Python programs from the command line.
Although the likelihood of being tested on Linux commands during a data science interview is rare, you’ll be better prepared to utilize data science-adjacent technologies that leverage the command line. In this chapter, we will cover the following topics:
- Introduction to operating systems
- Navigating system directories
- Filing and directory manipulation
- Scripting with Bash
- Introducing control statements
- Creating functions
- Processing data and pipelines
- Using cron