Skip to content

Tag Archives: python-os-module

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
Have you ever wondered that you can open your drives by just typing C, D or E and then that drives are open.This can be… Read More
A Digital Timestamp is a sequence of characters(usually a combination of digits and delimiters), identifying the time when a certain event occurred. In computer science,… Read More
Uptime is the time elapsed since the Operating system started. Operating systems have discrete mechanisms to keep track of this time, which they further utilize… Read More
Prerequisites: Python GUI – tkinter, os.listdir() method, os.rename() method In this article, the task is to rename a batch of images using Python. Now say… Read More
A process is identified on the system by what is referred to as a process ID and no other process can use that number as… Read More
In this article, we will find the file having the largest size in a given directory using Python. We will check all files in the… Read More
A Process is a program that is being executed (processed). A process may not have to be one run explicitly by the user, it could… Read More