Skip to main content

Command Line Automation in Python

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

Start Course for Free
4 Hours16 Videos51 Exercises5,620 Learners4250 XP

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

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'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


    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.

    Play Chapter Now
    Learn the Python interpreter
    50 xp
    Execute Python commands
    100 xp
    Execute IPython shell commands
    100 xp
    Capture IPython Shell output
    50 xp
    Using Bash Magic command
    100 xp
    Using the ! operator in IPython
    100 xp
    Automate with SList
    50 xp
    Use SList fields to parse shell output
    100 xp
    Find Python files using SLIST grep
    100 xp
    Using SList to grep
    100 xp


adriansotoAdrián Sotohillary-green-lermanHillary Green-Lerman


Intermediate PythonIntroduction to Shell
Noah  Gift Headshot

Noah Gift

Lecturer and consultant in data science

Noah Gift is a lecturer and consultant at UC Davis Graduate School of Management, Duke MIDS, UC Berkeley and Northwestern. He teaches and designs graduate machine learning, AI, Data Science courses and consults on Machine Learning and Cloud Architecture. He has published over 100 technical publications including multiple 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, Pragmatic AI, Cloud Computing for Data Analysis, and Testing in Python.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

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

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA