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 Satish Kumar
Page 12 of 94
How to Zip a File in Linux?
Introduction Linux, the popular open-source operating system, comes with a set of useful tools and commands that you can leverage for everyday tasks. One such task is file compression, and Linux provides various methods to zip or compress files and directories. This guide will walk you through how to zip a file in Linux using commands like 'gzip', 'zip', and 'tar'. Using the 'gzip' Command 'gzip' (GNU zip) is a widely-used command for file compression in Linux. Here is an example of how to use it − gzip filename.txt This command will compress the file 'filename.txt' and rename it ...
Read MoreHow to Write Scripts Using Awk Programming Language?
Awk is a powerful text-processing language named after its three original authors: Alfred Aho, Peter Weinberger, and Brian Kernighan. It's a versatile language primarily used for pattern scanning and processing. Awk is a staple of Unix scripting and is commonly used for tasks like data extraction, reporting, and data transformation. Awk scripts are quick to write and perform well for small to medium-sized tasks. In this article, we will introduce you to the basics of writing scripts using the Awk programming language. Basic Syntax An Awk program consists of a sequence of pattern-action pairs, written as − pattern { action ...
Read MoreHow to Write a Mobile-Friendly App Using JQuery & Bootstrap?
The paradigm shift towards mobile technology has paved the way for a responsive, user-friendly interface in app design. JQuery and Bootstrap are two powerful tools that can aid developers in creating mobile-friendly applications. Let's delve into how you can use these frameworks to create an efficient, responsive application. Prerequisites Before you begin, ensure that you have a basic understanding of HTML, CSS, and JavaScript. Familiarity with JQuery and Bootstrap is advantageous but not compulsory, as we'll go over the basics. Introduction to JQuery & Bootstrap JQuery − A fast, small, and feature-rich JavaScript library, JQuery makes things like HTML document ...
Read MoreBash Special Variables in Linux
Introduction Bash (Bourne Again SHell) is default shell for most Linux systems. It is a command language interpreter that executes commands from standard input, file or command-line arguments. Bash shell provides a set of special variables that contain various system-related and user-related information. These special variables are used to manipulate and access data efficiently. In this article, we will explore bash special variables in Linux with examples. What are Bash Special Variables? Bash special variables are predefined variables that are used to store system and user-related information. They start with "$" symbol and are used in bash scripts to perform ...
Read MoreHow To Use The Bash read Command?
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 MoreHow to Use the dmesg Linux Command?
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 MoreHow to Use the Apt-Get Command in Linux?
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 MoreHow to Use Static and Dynamic Inventories in Ansible?
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 MoreHow To Use shred Linux Command?
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 MoreHow to Use IP Command in Linux with Examples?
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