3 Ways to Check Apache Server Status and Uptime in Linux

Satish Kumar
Updated on 17-Mar-2026 09:01:38

15K+ Views

Apache is a popular open-source web server that powers a large percentage of websites on the internet. In Linux, Apache can be easily installed and configured to serve web pages and other content. However, it's important to monitor the status and uptime of your Apache server to ensure it's running smoothly and efficiently. In this article, we'll explore three different ways to check Apache server status and uptime in Linux. Method 1: Using systemctl Command systemctl is a powerful command-line tool used to manage systemd services in Linux. It provides detailed information about service status, including Apache web ... Read More

Bat – A Cat Clone with Syntax Highlighting and Git Integration

Satish Kumar
Updated on 17-Mar-2026 09:01:38

778 Views

Bat is a modern replacement for the traditional cat command in Unix-like systems. It enhances file viewing with syntax highlighting, Git integration, line numbering, and automatic paging. Written in Rust for performance and safety, Bat makes code files more readable and provides visual feedback when working in the terminal. What is Bat? Bat works similarly to the cat command by concatenating and displaying file contents. However, it goes beyond basic file viewing by automatically detecting file types and applying syntax highlighting. This makes code more readable even when you're not using a syntax-aware editor. Bat is an open-source ... Read More

How To Add User to Sudoers & Add User to Sudo Group on CentOS 7

Satish Kumar
Updated on 17-Mar-2026 09:01:38

71K+ Views

If you're new to CentOS 7, one of the first things you'll want to do is learn how to add users to the sudoers file and the sudo group. This will give them elevated privileges and allow them to run commands with root-level permissions. In this article, we'll walk you through the process step-by-step. What is Sudo? Before we get started, let's talk about what sudo is and why it's important. Sudo stands for "superuser do" and is a command that allows users to perform tasks with administrative permissions. By default, only the root user has these permissions ... Read More

Best Open Source Text Editors (GUI + CLI) in 2023

Pradeep Jhuriya
Updated on 17-Mar-2026 09:01:38

824 Views

Text editors are an essential tool for developers, system administrators, and anyone working with code or configuration files. They enable users to write, edit, and manipulate text with efficiency and precision. This article explores the best open source text editors available in 2023, covering both graphical and command-line options. Open source text editors are freely available software programs that can be modified and customized to fit specific needs. They offer significant advantages including cost savings, flexibility, community support, and the ability to inspect and modify source code for enhanced security and functionality. Graphical User Interface (GUI) Text Editors ... Read More

How to Fix Cannot find a valid baseurl for repo in CentOS?

Satish Kumar
Updated on 17-Mar-2026 09:01:38

16K+ Views

CentOS is a popular Linux distribution widely used in organizations, web hosts, data centers, and enterprise-level companies. Known for its stability, security, and reliability, CentOS is free and open-source software. However, users may encounter the error message "Cannot find a valid baseurl for repo" when trying to install or update packages using the yum package manager. Understanding the Error Message This error occurs when the YUM package manager cannot connect to repository servers to retrieve necessary packages. A repository (repo) is a centralized storage location containing pre-compiled software packages tested for compatibility with your operating system. ... Read More

Difference between Turn Around Time (TAT) and Waiting Time (WT) in CPU Scheduling

Pradeep Kumar
Updated on 17-Mar-2026 09:01:38

2K+ Views

CPU scheduling is a crucial aspect of operating systems that determines the order in which processes are executed on the central processing unit (CPU). Two important metrics used to evaluate the efficiency of CPU scheduling algorithms are Turn Around Time (TAT) and Waiting Time (WT). Understanding the difference between these two metrics provides insights into the performance and responsiveness of a CPU scheduling algorithm. What is Turn Around Time (TAT)? Turn Around Time (TAT) is the total time taken for a process to complete its execution from the moment it enters the system until it finishes. It includes ... Read More

How to Use IP Command in Linux with Examples?

Satish Kumar
Updated on 17-Mar-2026 09:01:38

560 Views

The IP command is a powerful tool for network configuration in Linux. It is used to show, manipulate routing, devices, policy routing, and tunnels. The IP command is part of the iproute2 package, which is installed by default in most Linux distributions. It replaces legacy tools like ifconfig and route, providing a unified interface for network management. Displaying IP Addresses To display the IP address of all network interfaces, use the following command − Example ip addr show Output 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen ... Read More

How to use the sub process module with pipes on Linux?

Mukul Latiyan
Updated on 17-Mar-2026 09:01:38

525 Views

In Python, the subprocess module allows us to work with additional processes and provides a high-level interface for executing system commands. While other modules like os.spawn(), os.system(), and os.popen() offer similar functionality, subprocess is recommended because it provides better control, security, and flexibility. When working with subprocess on Linux, pipes allow us to chain commands together, passing the output of one command as input to another. This is essential for building secure command pipelines without shell injection vulnerabilities. Basic Subprocess Example Let's start with a simple example that demonstrates basic subprocess usage: import subprocess ... Read More

What is PID manager in Linux?

Arnab Chakraborty
Updated on 17-Mar-2026 09:01:38

1K+ Views

In Linux, when an executable stored on disk is called a program, and a program loaded into memory and running is called a process. A process is given a unique number called process ID (PID) that identifies that process to the system when it is started. If we ever need to kill a process, for example, we can refer to it by its PID. As each PID is unique, there is no ambiguity or risk of accidentally killing the wrong process (unless you enter the wrong PID). The PID manager is a kernel subsystem responsible for allocating, managing, and ... Read More

Implement a Counter in Bash Script on Linux

Pradeep Jhuriya
Updated on 17-Mar-2026 09:01:38

5K+ Views

Counters in Bash scripts are variables used to track the number of times specific events or tasks occur. They are essential for loop control, progress tracking, and performing actions after reaching certain thresholds. Understanding how to implement and use counters effectively can significantly improve your Bash scripting capabilities. What is a Counter Variable in Bash Script? A counter is a variable that stores and increments numerical values to count occurrences of events or iterations. It is commonly used in loops to track the number of iterations performed, count files in directories, or monitor task completion progress. Why ... Read More

Advertisements