
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 1466 Articles for Linux

2K+ Views
Introduction In Linux, mutex locks are used for thread synchronization, allowing threads to safely access shared resources and avoid data races. A mutex, short for mutual exclusion, ensures that only one thread can acquire the lock at a time, preventing concurrent access to the critical section. In this article, we will be talking about the use cases, components, and examples of Mutex lock for Linux Thread Synchronization. Why do we need Mutex lock for Linux Thread Synchronization? When utilizing mutex locks over thread synchronization, the mutex must first be initialized before the crucial phase is executed, then a ... Read More

3K+ Views
GZIP and TAR are two independent tools that serve different purposes but are widely used together to create compressed archive files on Unix and Linux systems. GZIP is a common compression technique and file format for compressing individual files. The TAR (Tape Archive) file archiving program is widely used on Unix and Linux systems Read this article to find out more about GZIP and TAR and how they are different from each other What is GZIP? GZIP is a common compression technique and file format for compressing individual files. It is commonly used in Unix and Linux systems, and its ... Read More

543 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 The output will be ... Read More

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 your name. After you enter your ... Read More

4K+ Views
The Advanced Packaging Tool, or 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 basics of using the apt−get command, complete with examples and their outputs. 1. Updating Package Lists: apt−get update The first command you should know is apt−get update. This command retrieves information about the newest versions of packages and their ... Read More

664 Views
Ansible is a powerful automation tool that allows you to manage and configure systems, deploy software, and orchestrate more 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 in INI ... Read More

643 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 that the ... Read More

428 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. This article will guide you through the basics of the IP command and provide examples to help you understand its usage. 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 1000 ... Read More

258 Views
YUM (Yellowdog Updater, Modified) and Aptitude are two popular package managers for managing software packages on the Linux operating system. YUM (Yellowdog Updater, Modified) is a Linux package management application that is mainly used on the Red Hat, CentOS, and Fedora distributions. Aptitude is package management software for the Linux systems Debian and Ubuntu. Read this article to find out more about YUM and Aptitude and how they are different from each other. What is YUM? YUM (Yellowdog Updater, Modified) is a Linux package management application that is mainly used on the Red Hat, CentOS, and Fedora distributions. It is ... Read More

5K+ Views
Xfce and GNOME are two popular desktop environments for Linux and other open-source operating systems. While both provide a graphical user interface (GUI) to interact with the system, there are numerous variations between Xfce and GNOME in terms of design philosophy, user interface, resource utilization, and customization choices. Read this article to find out more about Xfce and GNOME and how they are different from each other. What is Xfce? Xfce is a small, open-source desktop environment popular on Linux and other Unix-like operating systems. It is designed to be fast, effective, and simple to use, making it a good ... Read More