Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Mead Naji
Page 2 of 3
Micro Text Editor – An Alternative to Vim
Vim is a well-known text editor in the terminal, used by many developers and sysadmins around the world. However, it is also known for its complicated keybindings and modes. You may want to use Vim, but for those reasons, or if you don't want to invest much time just to learn a text editor, we have the solution: Micro, an awesome and easy-to-use terminal text editor. Micro, as the name implies, is a lightweight and easy-to-install editor that comes with a lot of features and capabilities. In this article, we will go through how to install Micro and how to ...
Read MorePodman vs Docker: What are the differences?
Podman and its Daemonless Approach? Podman is an open-source container engine project that helps us with developing, managing, and deploying containers. What makes Podman special is its daemonless approach. With Docker, when we work with the Docker CLI, we're actually interacting with the Docker daemon, which runs in the background to handle tasks for us. Podman, however, is different; instead of using a background daemon to manage and create containers, it does everything on the client side by forking itself, and this child process becomes the container. This makes Podman more secure and lightweight compared to Docker’s ...
Read MoreHow to Use Podman to Search for an Image in the Registry?
When we talk about applications that we take and run in the container world, we call this an image, which we save somewhere and run for as long as we need it. We have a lot of places where we can find an image; we call these image registries. We may have the image locally on our machine or in a specific place like the Internet (image repository or registry). Podman helps us deal with those registries. For example, we can search for a specific image in the image repository. If you search for an image for httpd, what you ...
Read MoreHow to Install Podman in Linux?
Podman is in the official repository for almost all distributions, making it easy to install. On Ubuntu / Debian / Mint. sudo apt install podman For Red Hat / Fedora sudo dnf install podman For Windows, it’s recommended to use WSL (Windows Subsystem for Linux) to install and use Podman. You can install Podman in WSL using the command: sudo apt install podman -y If you are a Mac user, the best option is to use Homebrew to install Podman. If you don’t have Homebrew installed, first install it with the command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ...
Read MoreHow to create a container using Podman?
These days, we hear a lot about the terms containers and VMs, and if you are a beginner, it's hard to differentiate between these terms and technologies that are similar and almost do the same work. In this comprehensive tutorial, we will explain in an easy way what a container is, what a container engine is, and finally, we will install and use Podman as a container technology to run our first container. What is a Container? To understand what a container is, basically let's take an example where we have an application that uses PHP version 8, for instance. ...
Read MoreHow to Save and Restore a Linux Process?
Sometimes, you get in a situation where you need to take a snapshot of the process and use it later in the same state. We call this operation of saving a process state to use it later in Linux Checkpointing. This operation is done by taking a running process and saving it into a file, and then later, you can quickly launch the process again without losing its state. To make it easier to understand, let’s say you have a process doing some calculations. To prevent data loss if the system crashes or when you reboot the machine, you save ...
Read MoreHow to Run Bash Commands from a File?
Bash script is a scripting language like other languages that have an extension and a way to interpret it. To interact with the operating system through the command line, commands are used. There are a lot of commands on Linux, and new commands are added regularly. However, all these commands have a common way of working. All commands consist of three parts: the command itself, its parameters, and arguments. Bash Script File A bash script file is a file that contains a sequence of commands put together to do a certain task. If you have a lot of commands, it ...
Read MoreHow to Run a Bash Script as Daemon?
Sometimes, we need to run an automated process, and for this, we use a script that runs continuously in the background. These types are called "daemons" in Linux. These daemons allow us to run independently from the terminal session. This means that the script will keep running even if we close the session. In this tutorial, we will go through how we can turn a bash script into a daemon. What is a Daemon? A daemon is just a program or process that runs in the background continuously without needing any interaction from the user. In your day-to-day Linux tasks, ...
Read MoreHow to Recover a Deleted File in Linux?
There is no doubt that the idea of losing an important file or deleting it unintentionally is certainly annoying and almost all of us have been in the same situation, especially if the files are very important, whether they are work files, personal photos or videos that you cannot do without and want to recover. If you are exposed to this problem, do not worry. There are many solutions and programs dedicated to recovering files, especially if you are using the famous Linux distribution. There are also many diverse and free programs dedicated to all famous distributions. Linux ...
Read MoreHow to Parse XML File in Bash Script?
XML stands for Extensible Markup Language. It's a widely used format that is used to exchange data between systems. Many applications are based on XML as their configuration files. Even the very well-known document application, Office, is based on XML. What makes XML very popular is that it is written in plain text, which makes it easy to work with and also independent. It can be used in any programming language. Unlike HTML and other markup languages, XML doesn't come with predefined tags that you need to remember and use. With XML, you can use tags of your choice ...
Read More