In Linux, the `su` command allows a user to switch to a different user account. The `su` command can be followed by the name of the user to switch to, and will prompt the user for the password of the user they are trying to switch to. The `su` command has a number of options that can be used to modify its behavior. One of these options is `-`, which stands for “login shell”. When the `-` option is used with the `su` command, it causes the su command to run a login shell for the specified user. This means…
Author: Rahul
Tkinter is a Python library that is used to create graphical user interfaces (GUIs). It is a standard Python interface to the Tk GUI toolkit, which is widely used in the Linux operating system. In this tutorial, we will learn how to install Tkinter on a Linux system using either pip or apt-get. Prerequisites To install Python’s Tkinter module on a Linux system, you will need to have the following prerequisites installed: Python: Tkinter is a module for Python, so you will need to have Python installed on your system. Most Linux distributions come with Python pre-installed, but if you…
As of today PHP 8 is the latest available version and is recommended to run your production websites. But many of the older websites still required PHP 7.x or PHP 5.6 to run. The application still using PHP 5.6 are advised to immediately upgrade to PHP 7.4 or the latest PHP versions. One way to install PHP on Pop!_OS is to use a Personal Package Archive (PPA). This article provides you with the steps for installing PHP 7.4 or PHP 5.6 on Pop!_OS using a PPA. How to Install PHP 8.x on Pop!_OS Installing PHP on Pop!_OS To install PHP…
If you get an error message saying “Could not find a version that satisfies the requirement tkinter (from versions: none). No matching distribution found for tkinter”, can be frustrating and may prevent you from using Tkinter in your Python scripts. In this tutorial, we will learn how to resolve this error and successfully install Tkinter on a Linux system using either default package manager. In this quick troubleshooting guide, I will try to help you to resolve this issue. Solution Most of the popular operating systems contain the `Tkinter` library in their default repositories. Which can be installed using the…
Welcome to our beginner’s guide to formatting EXT4 partitions on Linux! In this tutorial, we’ll walk you through the process of creating and formatting an EXT4 partition on a Linux system, using tools like `mkfs.ext4`. We’ll also cover some important considerations to keep in mind when formatting an EXT4 partition. Before we get started, it’s important to note that formatting a partition will erase all data on it. Make sure you have backed up any important data before proceeding. Prerequisites Before we begin, you’ll need to have a Linux system with a partition that you want to format as EXT4.…
When you want to schedule jobs and programs to run automatically at certain times or when something else happens, you have many options. You can use a common tool like cron, which is built into macOS and Linux, or a special tool like AWS Lambda. Cron is not as powerful as AWS Lambda, but it works well for background tasks on Unix systems, especially if you are using containers. However, with Docker, it’s a bit more complicated because you can’t simply start a new cron job from your terminal and expect it to work. How to Dockerize a Cron Job…
Docker is a popular tool for packaging and deploying applications, and a key part of the Docker workflow is running Docker containers. In this beginner’s guide, we will explain what Docker containers are and how to run them. What is a Docker Container? A Docker container is a lightweight and standalone executable package that includes everything needed to run an application, including the code, a runtime, libraries, environment variables, and config files. Containers are built on top of Docker’s open-source containerization technology, which allows developers to package and deploy applications in a container, making it easier to run applications consistently…
If you’re a Python programmer, you may have heard of the `writelines()` Method. But what exactly is it? The `writelines()` Method is a powerful tool that makes it easy to write a list of strings to a file. You can think of it as a shortcut for writing multiple lines to a file. It’s a great way to save time and effort when writing files. The `writelines()` method in Python is a method that is used to write a list of strings to a file. It is a method of the File object in Python, which represents an open file.…
Have you ever wanted to read a file line by line in Python? Then you should be familiar with the Python `readlines()` Method! This powerful Python Method is used to read a file line by line and store each line in a list. This means you can access each line of the file using a simple list index, and you can easily manipulate the contents of the file. The `readlines()` Method is very useful for reading files that contain lots of information or have many lines of text. You can also use the `readlines()` Method to read a file one…
Linux-based systems, renowned for their robust security measures, segregate sensitive data to ensure minimal unauthorized access. One such piece of data is user passwords. Contrary to what some might think, these passwords aren’t stored in plain text or even in the /etc/passwd file anymore. Instead, they reside encrypted within the /etc/shadow file. This article delves deep into the structure, purpose, and utilities related to the /etc/shadow file. 1. Background and Purpose In the early days of Unix, user passwords were stored in the /etc/passwd file in an encrypted form. However, since this file had to be world-readable to allow various…





