Skip to content

Tag Archives: python-os-module

The cat command is a Linux shell command. It is the shorthand for concatenate. It is placed among the most often used shell commands. It… Read More
In this article, we are going to use a concept called hashing to identify unique files and delete duplicate files using Python. Modules required: tkinter:… Read More
In this article, we will be looking at the program to get the file name from the given file path in the python programming language.… Read More
While programming in any language, interaction between the programs and the operating system (Windows, Linux, macOS) can become important at some point in any developer’s… Read More
Modules are simply a python .py file from which we can use functions, classes, variables in another file. To use these things in another file… Read More
In this article, we will be learning on moving a collection of files and folders where there may be files/folders with the same name as… Read More
In this article, we will discuss how to move multiple folders into one folder. This can be done using Python’s OS and Shutil module. Approach:… Read More
Prerequisite: OS module in Python. os.replace() method in Python is used to rename the file or directory. If destination is a directory, OSError will be… Read More
Prerequisites: Webbrowser HTML files contain Hypertext Markup Language (HTML), which is used to design and format the structure of a webpage. It is stored in… Read More
We can get the location (path) of the running script file .py with __file__. __file__ is useful for reading other files and it gives the… Read More
In this article, we are going to delete a CSV file in Python. CSV (Comma-separated values file) is the most commonly used file format to… Read More
A Timestamp is a sequence of characters, that signify the occurrence of an event. Timestamps are required extensively in computer science. This exists of varying… Read More
Prerequisite: Some basic shell commands In programming, the shell is a software interface for accessing the functionality of the operating system. Shells in the operating… Read More
Linux is one of the most popular operating systems and is a common choice for developers. However, it is difficult to remember the vast range… Read More
In this article, we will create a menu-driven Python program which will execute the required user tool when user will give the input as a… Read More

Start Your Coding Journey Now!