Interactive Course

Command Line Automation in Python

Learn to automate many common file system tasks and be able to manage and communicate with processes.

  • 4 hours
  • 16 Videos
  • 51 Exercises
  • 812 Participants
  • 3,950 XP

Loved by learners at thousands of top companies:

rei-grey.svg
roche-grey.svg
intel-grey.svg
ea-grey.svg
forrester-grey.svg
mercedes-grey.svg

Course Description

There are certain skills that will stay with you your entire life. One of those skills is learning to automate things. There is a motto for automation that gets straight to the point, "If it isn't automated...it's broken". In this course, you learn to adopt this mindset. In one of the many examples, you will create automation code that will traverse a filesystem, find files that match a pattern, and then detect which files are duplicates. Following the course, you will be able to automate many common file system tasks and be able to manage and communicate with Unix processes.

  1. 1

    IPython shell commands

    Free

    Learn to use powerful IPython shell commands that will enhance your day to day coding. These commands include SList objects that can sort and filter shell output all from the comfort of the IPython terminal.

  2. Shell commands with subprocess

    Learn to harness Unix processes with the subprocess module. By combining the output and input of scripts, processes, and applications, you'll create pipelines to automate complex tasks.

  3. Walking the file system

    Use the pathlib module to perform file system operations in Python. You'll learn to write tools to walk the filesystem, write files and archive directories all with a few lines of code.

  4. Command line functions

    Learn how to use functions to automate complex workflows. You'll use the click command line tool module to create sophisticated command line tools in a few lines of code.

What do other learners have to say?

Devon

“I've used other sites, but DataCamp's been the one that I've stuck with.”

Devon Edwards Joseph

Lloyd's Banking Group

Louis

“DataCamp is the top resource I recommend for learning data science.”

Louis Maiden

Harvard Business School

Ronbowers

“DataCamp is by far my favorite website to learn from.”

Ronald Bowers

Decision Science Analytics @ USAA

Noah  Gift
Noah Gift

Lecturer and consultant in data science

Noah Gift is lecturer and consultant at UC Davis Graduate School of Management MSBA program the Graduate Data Science program, MSDS, at Northwestern and the Graduate Data Science program at UC Berkeley. He is teaching and designing graduate machine learning, AI, Data Science courses and consulting on Machine Learning and Cloud Architecture for students and faculty. These responsibilities including leading a multi-cloud certification initiative for students. He has published over 100 technical publications including three books on subjects ranging from Cloud Machine Learning to DevOps. Gift received an MBA from UC Davis, a M.S. in Computer Information Systems from Cal State Los Angeles, and a B.S. in Nutritional Science from Cal Poly San Luis Obispo. He is the author of Python for DevOps: https://www.amazon.com/Python-DevOps-Ruthlessly-Effective-Automation/dp/149205769X and Pragmatic AI: https://www.amazon.com/Pragmatic-AI-Introduction-Cloud-Based-Analytics-ebook/dp/B07FB8F8QP/

See More
Icon Icon Icon professional info
Do you have 5 minutes to help us improve our navigation?
I'll do it No thanks