Using The Unix Shell

You can do pretty much everything with Python! Still, there’s a lot of value in becoming proficient on the command line. A well-crafted bash command or script can save hours that you would otherwise spend on coding it yourself (or doing stuff manually!).

The Unix philosophy

The Unix command-line has been around for decades, and it’s still going strong. Part of that success comes from the Unix philosophy:

  • Write programs that do one thing and do it well.
  • Write programs to work together.
  • Write programs to handle text streams, because that is a universal interface.

When working with the command line, it’s good to keep this philosophy in mind. You’ll find out that there’s always a combination of tools that does exactly what you want. The art is finding them and combining them correctly.

Linux commands and scripting

I’ll focus mostly on Linux, but what you’re about to learn applies one-one to other Unix-like operating systems, like MacOS or BSD-based distributions. I recommend you start by learning the most used, most needed Linux commands. After that, you can learn how to write Bash scripts, for example, to automate parts of your Python development process.

Get certified with our courses

Learn Python properly through small, easy-to-digest lessons, progress tracking, quizzes to test your knowledge, and practice sessions. Each course will earn you a downloadable course certificate.

Related articles

Leave a Comment