Create Python Linux Script to Generate a Disk Usage Report
61件の評価

4,470人がすでに登録済みです
Prepare the Python Script
Iterate through a directory structure using the Python script
Use a python package to generate a report in CSV format
61件の評価
4,470人がすでに登録済みです
Prepare the Python Script
Iterate through a directory structure using the Python script
Use a python package to generate a report in CSV format
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.
Linux Disk Usage
Pandas
Command Line
Python Scripting
Computer Programming
ワークエリアを使用した分割画面で再生するビデオでは、講師がこれらの手順を説明します。
Prepare the Python Script.
Use the __name__ to identify the main code and use sys.argv to access the command line arguments.
Create a for loop to access each sub-directory.
Create a function to determine the disk space used by each directory.
Use a python package to generate a report in CSV format.
ワークスペースは、ブラウザに完全にロードされたクラウドデスクトップですので、ダウンロードは不要です
分割画面のビデオで、講師が手順ごとにガイドします
Eにより
2020年12月4日Every step is very well explained leaving no doubt about what each line of code is doing, recommended!
PLにより
2020年9月8日Helped me understand Ubuntu interfacing with Python and creating CSV files using Python. Recommended!
ガイド付きプロジェクトを購入することによって、ガイド付きプロジェクトを完了するために必要なものすべてが得られます。これには、開始する必要のあるファイルとソフトウェアを含むWebブラウザを介したクラウドデスクトップワークスペースへのアクセスの他、専門家によるステップバイステップのビデオ講座が含まれます。
ワークスペースにはラップトップまたはデスクトップコンピューターに適したサイズのクラウドデスクトップが含まれているため、モバイル機器ではガイド付きプロジェクトを使用できません。
ガイド付きプロジェクトの講師は、プロジェクトのスキル、ツール、またはその分野での経験があり、知識を共有して世界中の何百万人もの受講生に影響を与えるたことに情熱を持つ専門家です。
ガイド付きプロジェクトから作成したファイルをダウンロードして保持できます。そのためには、クラウドデスクトップにアクセスしているときに「ファイルブラウザ」機能を使用できます。
ガイド付きプロジェクトは払い戻しの対象外です。すべての返金ポリシーを表示する。
ガイド付きプロジェクトには学費援助が利用できません。
ガイド付きプロジェクトでは監査を使用できません。
ページの上部で、このガイド付きプロジェクトの経験レベルを押して、知識の前提条件を表示できます。ガイド付きプロジェクトのすべてのレベルで、インストラクターがステップバイステップでご案内します。
はい。ガイド付きプロジェクトを完了するために必要なものはすべて、ブラウザで利用可能なクラウドデスクトップで利用できます。
分割画面環境でタスクをブラウザで直接完了することで学習できます。画面の左側で、ワークスペースでタスクを完了します。画面の右側で、講師がプロジェクトをステップごとにガイドします。
さらに質問がある場合は、受講者ヘルプセンターにアクセスしてください。