Satish Kumar

Satish Kumar

936 Articles Published

Articles by Satish Kumar

Page 12 of 94

How to Zip a File in Linux?

Satish Kumar
Satish Kumar
Updated on 17-Jul-2023 5K+ Views

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 More

How to Write Scripts Using Awk Programming Language?

Satish Kumar
Satish Kumar
Updated on 17-Jul-2023 309 Views

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 More

How to Write a Mobile-Friendly App Using JQuery & Bootstrap?

Satish Kumar
Satish Kumar
Updated on 17-Jul-2023 404 Views

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 More

Bash Special Variables in Linux

Satish Kumar
Satish Kumar
Updated on 14-Jul-2023 505 Views

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 More

How To Use The Bash read Command?

Satish Kumar
Satish Kumar
Updated on 13-Jul-2023 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

How to Use the dmesg Linux Command?

Satish Kumar
Satish Kumar
Updated on 13-Jul-2023 622 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

How to Use the Apt-Get Command in Linux?

Satish Kumar
Satish Kumar
Updated on 13-Jul-2023 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

How to Use Static and Dynamic Inventories in Ansible?

Satish Kumar
Satish Kumar
Updated on 13-Jul-2023 782 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

How To Use shred Linux Command?

Satish Kumar
Satish Kumar
Updated on 13-Jul-2023 718 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

How to Use IP Command in Linux with Examples?

Satish Kumar
Satish Kumar
Updated on 13-Jul-2023 518 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
Showing 111–120 of 936 articles
« Prev 1 10 11 12 13 14 94 Next »
Advertisements