We may earn an affiliate commission when you visit our partners.
Course image
David Dalsveen

There are many choices when it comes to writing scripts on Linux. The bash shell script has been a popular choice, since the bash shell itself is a programming language and the commands used in the script match the syntax of the shell. Python is becoming increasingly popular for scripting on Linux because of its simple syntax, easy access to Linux system commands, and powerful libraries with which to create reports, for example. In addition, Python can be used in other applications and on multiple platforms, so there is also the benefit of learning one language for many programming requirements.

Read more

There are many choices when it comes to writing scripts on Linux. The bash shell script has been a popular choice, since the bash shell itself is a programming language and the commands used in the script match the syntax of the shell. Python is becoming increasingly popular for scripting on Linux because of its simple syntax, easy access to Linux system commands, and powerful libraries with which to create reports, for example. In addition, Python can be used in other applications and on multiple platforms, so there is also the benefit of learning one language for many programming requirements.

In this course, you will create a Python script in which you will determine disk space and generate a report on disk usage on an Ubuntu Linux system.

Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Enroll now

What's inside

Syllabus

Python Linux Script to Generate a Disk Usage Report
Linux is a popular operating system that is based on the Unix operating system. It has many distributions which have different interfaces for installing software, different user interfaces, and so on. One thing all of the ‘distros’ have in common is that they all have a command line interface, or terminal. In fact, sometimes there is no user interface except the terminal itself. A Linux server running a web application on AWS, for example, may only contain the software required to run the application, and no GUI ‘window’ system at all. It is crucial to learn the Linux command line if you are going to be a productive Linux user and/or administer a Linux server.In this course, you will use Linux commands to navigate Linux directories, search for files, search for patterns, create files and directories, and remove files and directories.There are many choices when it comes to writing scripts on Linux. The bash shell script has been a popular choice, since the bash shell itself is a programming language and the commands used in the script match the syntax of the shell. Python is becoming increasingly popular for scripting on Linux because of its simple syntax, easy access to Linux system commands, and powerful libraries with which to create reports, for example. In addition, Python can be used in other applications and on multiple platforms, so there is also the benefit of learning one language for many programming requirements. In this course, you will create a Python script in which you will determine disk space and generate a report on disk usage on an Ubuntu Linux system.

Good to know

Know what's good
, what to watch for
, and possible dealbreakers
Teaches skills in Python scripting for Linux, which are widely used in industry and open-source software development
Suitable for students with no or limited scripting and Linux command-line experience
Provides students with hands-on experience in creating a Python script to generate disk usage reports
Can be used as a stepping stone for further learning in Python scripting and Linux command-line tools
Covers core concepts of Python scripting, including data types, control flow, and functions
Exposes students to the Linux command-line interface and essential commands for file and directory management

Save this course

Save Create Python Linux Script to Generate a Disk Usage Report to your list so you can find it easily later:
Save

Reviews summary

Python disk usage report script

Learners say this course is a good starting point for new learners or those new to scripting. According to students, the instructor provides good explanations and the material is easy to understand. Those who found this course easy to understand also mention that it's not very in-depth and that the complexity of the libraries was low.
The material is easy to understand.
"Every step is very well explained leaving no doubt about what each line of code is doing, recommended! "
"This project helped rejuvenate my linux knowledge and Python some how."
A good course for new programmers.
"This project was awesome, is a little introduction to scripting using python and is easy to understand the foundational concepts."
"Really simple and beginner-friendly."
"Anyone getting started in Python will find this project fun and interesting."
This course is not very in-depth.
"Nice project to introduce python in scripting area but pretty short."
The complexity of the libraries used was low.
"Complexity of the libraries used should have been more"

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Create Python Linux Script to Generate a Disk Usage Report with these activities:
Review Python Basics
Ensure you have a strong foundation in Python before diving into the course materials.
Browse courses on Python Basics
Show steps
  • Review basic Python concepts such as variables, data types, and operators
  • Refresh your understanding of Python syntax
Review Linux Command Tutorial
Reinforce your knowledge by reviewing and following along with a Linux command tutorial.
Browse courses on Linux Commands
Show steps
  • Find a tutorial that covers common Linux commands
  • Review the tutorial
  • Try the examples in the tutorial
Practice using Linux commands in a Sandbox
Become comfortable using basic Linux commands by using a sandbox, which will allow you to try the command without harming your computer.
Browse courses on Linux
Show steps
  • Set up a Linux Sandbox
  • Try examples and experiment with the commands
  • Create Linux commands based on examples
Two other activities
Expand to see all activities and additional details
Show all five activities
Create a Linux Script for a Specific Task
Create a Python script that uses Linux commands to perform a specific task. This will test your understanding of Linux syntax and scripting capabilities.
Show steps
  • Identify a task that can be automated with a script
  • Write a Python script using Linux commands
  • Test your script
  • Refine and improve your script
Contribute to an Open Source Linux Project
Experience real-world Linux development and contribute to the community by making a contribution to an open source project.
Show steps
  • Find an open source Linux project to contribute to
  • Review the project's documentation and codebase
  • Identify an area where you can contribute
  • Develop and test your contribution
  • Submit a pull request

Career center

Learners who complete Create Python Linux Script to Generate a Disk Usage Report will develop knowledge and skills that may be useful to these careers:
Project Manager
Project Managers plan, execute, and close projects. This course can help build a foundation for this career by providing skills in Python programming, data analysis, and project management. Python is a popular language for project management, and this course will provide hands-on experience using it for this purpose.
Data Scientist
Data Scientists use data to extract meaningful insights and trends. This course can help build a foundation for this career by providing skills in Python programming, data analysis, and machine learning. Python is a popular language for data science, and this course will provide hands-on experience using it for this purpose.
Machine Learning Engineer
Machine Learning Engineers design, develop, and deploy machine learning models. This course can help build a foundation for this career by providing skills in Python programming, machine learning, and data analysis. Python is a popular language for machine learning, and this course will provide hands-on experience using it for this purpose.
Business Analyst
Business Analysts analyze business processes and identify opportunities for improvement. This course can help build a foundation for this career by providing skills in Python programming, data analysis, and business process analysis. Python is a popular language for business analysis, and this course will provide hands-on experience using it for this purpose.
Software Engineer
Software Engineers design, develop, and maintain software applications. This course can help build a foundation for this career by providing skills in Python programming, Linux command line, and scripting. Python is a popular language for software development, and this course will provide hands-on experience using it for this purpose.
Data Analyst
Data Analysts gather, analyze, and interpret data to extract meaningful insights and trends. This course can help build a foundation for this career by providing skills in data manipulation, analysis, and reporting. Python is a popular language for data analysis, and this course will provide hands-on experience using it for this purpose.
Product Manager
Product Managers manage the development and launch of new products. This course can help build a foundation for this career by providing skills in Python programming, data analysis, and product management. Python is a popular language for product management, and this course will provide hands-on experience using it for this purpose.
Quantitative Analyst
Quantitative Analysts use mathematical and statistical models to analyze financial data. This course can help build a foundation for this career by providing skills in Python programming, data analysis, and statistics. Python is a popular language for quantitative analysis, and this course will provide hands-on experience using it for this purpose.
DevOps Engineer
DevOps Engineers bridge the gap between development and operations teams, ensuring that software is developed and deployed efficiently and reliably. This course can help build a foundation for this career by providing skills in Python programming, Linux command line, scripting, and system administration. Python is a popular language for DevOps, and this course will provide hands-on experience using it for this purpose.
Cloud Engineer
Cloud Engineers design, implement, and maintain cloud computing systems. This course can help build a foundation for this career by providing skills in Python programming, Linux command line, scripting, and cloud computing. Python is a popular language for cloud engineering, and this course will provide hands-on experience using it for this purpose.
IT Manager
IT Managers plan, implement, and manage IT systems and services. This course can help build a foundation for this career by providing skills in Python programming, Linux command line, scripting, and system administration. Python is a popular language for IT management, and this course will provide hands-on experience using it for this purpose.
Network Engineer
Network Engineers design, implement, and maintain computer networks, including routers, switches, and firewalls. This course can help build a foundation for this career by providing skills in Linux command line, scripting, and network administration. Python is also a popular language for network administration, and this course will provide hands-on experience using it for this purpose.
Security Analyst
Security Analysts identify, assess, and mitigate security risks to computer systems and networks. This course can help build a foundation for this career by providing skills in Linux command line, scripting, and system security. Python is also a popular language for security analysis, and this course will provide hands-on experience using it for this purpose.
Systems Engineer
Systems Engineers design, implement, and maintain computer systems, including hardware, software, and networks. This course can help build a foundation for this career by providing skills in Linux command line, scripting, and system administration. Python is also a popular language for system administration, and this course will provide hands-on experience using it for this purpose.
Artificial Intelligence Engineer
Artificial Intelligence Engineers design, develop, and deploy artificial intelligence systems. This course can help build a foundation for this career by providing skills in Python programming, machine learning, and artificial intelligence. Python is a popular language for artificial intelligence, and this course will provide hands-on experience using it for this purpose.

Reading list

We've selected 14 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Create Python Linux Script to Generate a Disk Usage Report.
Provides a practical guide to using Python for natural language processing. It good choice for experienced programmers who want to learn more about Python and natural language processing.
Provides a comprehensive and up-to-date overview of Python programming. It good choice for experienced programmers who want to learn more about Python.
Provides a collection of recipes for solving common Python programming problems. It good choice for experienced programmers who need to find solutions to specific Python programming problems.
Provides a practical guide to using Python for data analysis. It good choice for experienced programmers who want to learn more about Python and data analysis.
Provides a practical guide to using Python for machine learning. It good choice for experienced programmers who want to learn more about Python and machine learning.
Provides a comprehensive overview of the Linux command line and shell scripting. It valuable resource for anyone who wants to learn more about Linux system administration or scripting.
Provides a practical introduction to Python programming. It teaches how to use Python to automate tasks and solve problems.
Provides a gentle introduction to Python programming. It good choice for beginners who want to learn the basics of Python.
Provides a practical guide to using Python for security testing and penetration testing. It good choice for experienced programmers who want to learn more about Python and security.
Provides a fast-paced introduction to Python programming. It good choice for experienced programmers who want to learn Python quickly.
Provides a concise and comprehensive reference to Python programming. It good choice for experienced programmers who need to look up Python syntax and semantics.
Provides a quick and easy reference to Python programming. It good choice for experienced programmers who need to look up Python syntax and semantics.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Here are nine courses similar to Create Python Linux Script to Generate a Disk Usage Report.
RHEL 8: Creating Shell Scripts
Most relevant
Use Bash Scripting on Linux to Execute Common commands
Most relevant
Bash Shell Scripting Tutorial for Beginners
Most relevant
Introduction to Bash Shell Scripting
Most relevant
Getting Started with Bash and Z Shell
Most relevant
Hands-on Introduction to Linux Commands and Shell...
Most relevant
Learn Ubuntu Fast: Learn, Practice, and Advance your...
Most relevant
Bash Scripting and Shell Programming (Linux Command Line)
Most relevant
Scripting for Security with Bash
Most relevant
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2024 OpenCourser