Linux Articles

Page 108 of 134

How to Edit Hosts File in Linux, Windows, or Mac?

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 743 Views

Have you ever wondered how your computer connects to a website? The answer lies in the Domain Name System (DNS), which translates domain names into IP addresses. But did you know that you can actually edit this process by modifying your computer's hosts file? The hosts file is a simple text file that maps IP addresses to domain names, allowing you to bypass DNS and specify exactly where your computer should look for a website. This file exists on all operating systems and provides local DNS resolution before querying external DNS servers. Editing Hosts File in Linux ...

Read More

How to Configure Proxy Settings on Ubuntu 20.04?

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 12K+ Views

Proxy servers are intermediary servers that act as a gateway between a user's device and the internet. When connected through a proxy server, all data requests are first sent to the proxy server which then forwards them to the internet. This setup provides enhanced security, privacy, and network control for organizations and individuals. There are several types of proxies including HTTP proxies, HTTPS proxies, and SOCKS proxies. Each type serves different purposes with varying degrees of security and functionality. Understanding Proxy Settings on Ubuntu 20.04 Ubuntu 20.04 provides multiple methods to configure proxy settings, allowing you to ...

Read More

Difference Between YUM and Aptitude Package Managers

Md. Sajid
Md. Sajid
Updated on 17-Mar-2026 369 Views

YUM (Yellowdog Updater, Modified) and Aptitude are two popular package managers for managing software packages on Linux systems. YUM is primarily used on Red Hat-based distributions like CentOS and Fedora, while Aptitude is designed for Debian-based systems like Ubuntu. Understanding their differences helps administrators choose the right tool for their Linux environment. What is YUM? YUM (Yellowdog Updater, Modified) is a command-line package management tool for RPM-based Linux distributions. It simplifies software installation, updates, and removal by automatically handling package dependencies and repository management. YUM works with RPM packages and relies on configured repositories containing software ...

Read More

How to Use IP Command in Linux with Examples?

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 537 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 shred Linux Command?

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 738 Views

The shred command in Linux is a powerful tool that allows users to permanently delete files and make them unrecoverable. This command is particularly useful when you want to ensure that sensitive data is completely removed from a system. In this article, we will explore how to use the shred command, complete with examples and outputs. Understanding the shred Command Before we delve into the examples, it's important to understand what the shred command does. When you delete a file in Linux using the rm command, the file is not actually removed from the disk. Instead, the space ...

Read More

How to Use Static and Dynamic Inventories in Ansible?

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 795 Views

Ansible is a powerful automation tool that allows you to manage and configure systems, deploy software, and orchestrate advanced IT tasks such as continuous deployments or zero downtime rolling updates. One of the key components of Ansible is the inventory file, which describes the hosts and groups of hosts upon which commands, modules, and tasks in a playbook operate. In this article, we'll explore how to use both static and dynamic inventories in Ansible, complete with examples and their outputs. Static Inventories Static inventories are the simplest way to manage and organize your servers. They are defined ...

Read More

How to Use the Apt-Get Command in Linux?

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 4K+ Views

The Advanced Packaging Tool (APT) is a powerful command-line tool used in Debian-based systems like Ubuntu, Linux Mint, and others. The apt-get command is one of the most common ways to interact with APT. It's used to handle packages, allowing you to install, upgrade, and remove software on your Linux system. In this guide, we'll walk you through the essential apt-get commands with practical examples and their outputs. Updating Package Lists The first command you should know is apt-get update. This command retrieves information about the newest versions of packages and their dependencies. It doesn't install or ...

Read More

How to Use the dmesg Linux Command?

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 644 Views

The dmesg command is a powerful tool in the Linux command-line arsenal. It stands for "diagnostic message" and is used to read and write data from/to the kernel ring buffer, a data structure that holds messages about the system's hardware, kernel, or driver messages. This article will guide you through the usage of the dmesg command, complete with examples and their outputs. Basic Usage The most basic usage of the dmesg command is to simply type dmesg into your terminal and hit enter. This will display all the kernel messages in your terminal. $ dmesg ...

Read More

How To Use The Bash read Command?

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 6K+ Views

The read command is one of the most fundamental commands in Bash scripting. It is used to read input from the user or from a file. In this article, we will explore how to use the read command effectively, with several examples and their output. Basic Usage of read Command The most basic usage of the read command is to take input from the user. Here's a simple example − Example echo "Please enter your name: " read name echo "Hello, $name" When you run this script, it will prompt you to enter ...

Read More

Bash Special Variables in Linux

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 530 Views

Bash (Bourne Again SHell) is the default shell for most Linux systems. It is a command language interpreter that executes commands from standard input, files, or command-line arguments. Bash provides a set of special variables that contain various system-related and user-related information. These variables are automatically set by the shell and provide crucial data for script execution and system monitoring. What are Bash Special Variables? Bash special variables are predefined variables that store system and user-related information. They are prefixed with the $ symbol and are automatically updated by the shell. These variables are essential for creating robust ...

Read More
Showing 1071–1080 of 1,338 articles
« Prev 1 106 107 108 109 110 134 Next »
Advertisements