Tag

os module

1 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Apr 18, 2025 · Fundamentals

Essential Python Standard Library Modules for System and File Operations

This article introduces several essential Python standard‑library modules—including os, shutil, subprocess, signal, sys, platform, logging, getpass, pwd, and grp—explaining their primary functions for file and process management, system information, logging, and user/group queries, and provides concise example code for each.

Process ManagementPythonfile management
0 likes · 4 min read
Essential Python Standard Library Modules for System and File Operations
Python Programming Learning Circle
Python Programming Learning Circle
Mar 7, 2025 · Operations

Common Python os Module Functions for Automation and File Management

This article provides a concise reference of frequently used Python os and file handling functions, illustrating how to query, manipulate, and manage files, directories, and system attributes for automation tasks with clear code examples.

Pythonautomationfile management
0 likes · 11 min read
Common Python os Module Functions for Automation and File Management
Test Development Learning Exchange
Test Development Learning Exchange
Feb 8, 2025 · Fundamentals

Using Python’s os, sys, and os.path Modules: Common Operations and Code Examples

This article introduces Python’s os, sys, and os.path modules, demonstrating how to retrieve the current working directory, create and delete directories, list files, execute system commands, access interpreter information, handle command‑line arguments, redirect I/O, and manipulate file paths with practical code snippets.

PythonSystem Commandsfile handling
0 likes · 4 min read
Using Python’s os, sys, and os.path Modules: Common Operations and Code Examples
Test Development Learning Exchange
Test Development Learning Exchange
Nov 5, 2024 · Fundamentals

Using Python's os, os.path, pathlib, and tempfile Modules for File System Operations

This article demonstrates how to use Python's os, os.path, pathlib, and tempfile modules to retrieve the current working directory, list and manipulate files and directories, construct and normalize paths, and create temporary files and directories, providing clear code examples for each operation.

file handlingos modulepathlib
0 likes · 6 min read
Using Python's os, os.path, pathlib, and tempfile Modules for File System Operations
Test Development Learning Exchange
Test Development Learning Exchange
Oct 2, 2024 · Fundamentals

Python File Operations: Opening, Reading, Writing, and Directory Management

This guide explains how to open and close files, perform various read and write operations, and manage files and directories in Python using built‑in functions and the os, os.path, and shutil modules, with clear code examples for each task.

File I/OProgramming Basicsos module
0 likes · 7 min read
Python File Operations: Opening, Reading, Writing, and Directory Management
Test Development Learning Exchange
Test Development Learning Exchange
Aug 4, 2024 · Fundamentals

Using Python's os, os.path, and shutil Modules for File and Directory Operations

This article introduces Python's built-in os, os.path, and shutil modules, demonstrating how to create and delete directories, manipulate file paths, list directory contents, and perform advanced file operations such as copying, moving, and compressing files with clear code examples.

Tutorialfile operationsos module
0 likes · 6 min read
Using Python's os, os.path, and shutil Modules for File and Directory Operations
Python Programming Learning Circle
Python Programming Learning Circle
Jul 31, 2024 · Fundamentals

Using Python's os Module to Delete Duplicate Files

This article demonstrates a simple Python method for identifying and removing duplicate files by leveraging the built‑in os module, explaining how to list directory contents, construct file paths, and use os.remove() to delete unwanted copies, complete with example code and usage notes.

Duplicate FilesPythonautomation
0 likes · 4 min read
Using Python's os Module to Delete Duplicate Files
Test Development Learning Exchange
Test Development Learning Exchange
Jul 13, 2024 · Fundamentals

Python File Operations: Reading, Writing, and Managing Files

This guide demonstrates Python techniques for reading, writing, and manipulating various file types—including text, binary, CSV, and JSON—while also covering file existence checks, renaming, deletion, and directory handling using os and shutil modules.

File I/Oos modulereading
0 likes · 5 min read
Python File Operations: Reading, Writing, and Managing Files
Test Development Learning Exchange
Test Development Learning Exchange
May 11, 2024 · Fundamentals

Common Operations with Python's os, sys, and datetime Modules

This guide demonstrates how to list directory contents, create and delete folders, manage the current working directory with the os module, retrieve interpreter information, handle command‑line arguments and exit codes using sys, and work with dates and times via the datetime module, providing expected outputs for each operation.

Pythondatetime modulefile operations
0 likes · 5 min read
Common Operations with Python's os, sys, and datetime Modules
Python Programming Learning Circle
Python Programming Learning Circle
Dec 29, 2023 · Fundamentals

How to Retrieve All File Names in a Directory and Keep the Largest ZIP File Using Python

This article explains how to list all file names in a specified folder with os.listdir and os.path.isfile, shows a concise list‑comprehension version, and demonstrates how to retain only the largest ZIP file by sorting and deleting others using Python's os and glob modules.

Directory OperationsZIP filesfile handling
0 likes · 5 min read
How to Retrieve All File Names in a Directory and Keep the Largest ZIP File Using Python
IT Services Circle
IT Services Circle
Apr 22, 2022 · Fundamentals

Introduction to Common Python File Handling Modules: os, shutil, and zipfile

This article introduces the commonly used Python file handling modules—os, shutil, and zipfile—explaining their key functions, demonstrating path operations, file copying, moving, and compression/decompression with practical code examples to help readers efficiently manage files and directories.

PythonTutorialfile handling
0 likes · 4 min read
Introduction to Common Python File Handling Modules: os, shutil, and zipfile
Python Programming Learning Circle
Python Programming Learning Circle
Feb 9, 2022 · Information Security

Simple Python Antivirus Script Tutorial

This article narrates a real‑world incident where a frozen computer leads the author to develop a simple Python antivirus that scans directories, matches files against a virus list, and deletes infected files using the os module, illustrating basic information‑security scripting techniques.

Tutorialantivirusfile scanning
0 likes · 6 min read
Simple Python Antivirus Script Tutorial
Python Programming Learning Circle
Python Programming Learning Circle
Nov 19, 2021 · Fundamentals

Using Python to Execute Shell Commands: os.system, os.popen, commands, and subprocess

This article explains Python's built‑in methods for invoking shell commands—including os.system, os.popen, the commands module, and the subprocess module—detailing their return values, usage examples, and when to choose each approach for capturing command output.

Pythoncommand executionos module
0 likes · 4 min read
Using Python to Execute Shell Commands: os.system, os.popen, commands, and subprocess
Python Programming Learning Circle
Python Programming Learning Circle
May 29, 2020 · Fundamentals

Python os Module Functions Overview and Usage

This article provides a comprehensive guide to Python's os module, detailing common file and directory operations such as creating folders, listing files, deleting files, and retrieving file attributes, with syntax, descriptions, and code examples for each function.

FilesystemPythonfile operations
0 likes · 22 min read
Python os Module Functions Overview and Usage
Test Development Learning Exchange
Test Development Learning Exchange
Mar 1, 2019 · Fundamentals

Common Python os and shutil Functions for File and Directory Operations

This guide outlines essential Python os and shutil functions for file and directory manipulation, covering path queries, creation, deletion, permission changes, environment variables, and common file opening modes, providing concise examples for each operation.

FilesystemPythonfile operations
0 likes · 3 min read
Common Python os and shutil Functions for File and Directory Operations