Satish Kumar

Satish Kumar

936 Articles Published

Articles by Satish Kumar

Page 69 of 94

How to Print Longest Line(s) in a File in Linux?

Satish Kumar
Satish Kumar
Updated on 23-Mar-2023 2K+ Views

Introduction Working with files is a common task for Linux users, and often, you may need to find longest line(s) in a file. While there are several ways to do this, there are a few simple methods that can make process quicker and more efficient. In this article, we will explore various methods for finding longest line(s) in a file in Linux. Method 1: Using wc Command The wc (word count) command is a useful tool that can be used to count number of lines, words, and characters in a file. However, it can also be used to find length ...

Read More

When to Use xargs in Linux?

Satish Kumar
Satish Kumar
Updated on 23-Mar-2023 358 Views

When it comes to working with command-line utilities in Linux, there are many tools and utilities available that can make your life easier. One such utility is xargs, a command that allows you to execute commands on a list of files, or arguments, from standard input. Xargs is particularly useful when you want to perform an operation on a large number of files, and you want to do it quickly and efficiently. In this article, we will discuss various scenarios where you may need to use xargs in Linux. We will also look at some examples to illustrate how to ...

Read More

Fastest Method to Check If Two Files Have Same Contents

Satish Kumar
Satish Kumar
Updated on 23-Mar-2023 18K+ Views

Introduction In today's era of technological advancements, use of computers and various electronic devices has become an essential part of our daily routine. We often find ourselves in situations where we need to compare two files to check if they contain same content or not. This can be a daunting task, especially if files are large in size, and traditional comparison methods can be quite time-consuming. In this article, we will explore fastest methods to check if two files have same contents. What is a File Comparison? A file comparison is a process of comparing two or more files to ...

Read More

Locale Environment Variables in Linux

Satish Kumar
Satish Kumar
Updated on 23-Mar-2023 1K+ Views

Locale Environment Variables in Linux Locale environment variables in Linux play a crucial role in enabling users to communicate effectively with operating system. locale environment variables are responsible for setting language, encoding, and cultural conventions in a system. In this article, we will explore different aspects of locale environment variables in Linux. What is a Locale? A locale is a set of parameters that define user's language, country, currency, and other cultural conventions. locale defines format of dates, time, and numbers, and character sets. For example, US locale uses dollar as currency symbol, while UK locale uses pound. Similarly, US ...

Read More

How to Use Multiple Databases with docker-compose?

Satish Kumar
Satish Kumar
Updated on 23-Mar-2023 7K+ Views

Introduction Docker is a popular platform for deploying and running applications in a containerized environment. It provides an efficient way to package, distribute and run applications with all their dependencies. One of main advantages of using Docker is that it enables use of multiple databases in an efficient way using docker-compose. Docker-compose is a tool for defining and running multi-container Docker applications. It allows you to define configuration of different containers in a single YAML file, which can be used to start, stop and manage containers. In this article, we will discuss how to use multiple databases with Docker-compose. Prerequisites ...

Read More

The Use of Swap Space in Modern Linux Systems

Satish Kumar
Satish Kumar
Updated on 23-Mar-2023 1K+ Views

Linux is a free and open-source operating system that is widely used in modern computing systems. It has a rich set of features that make it one of most popular operating systems in world. One such feature is use of swap space. Swap space is a part of Linux file system that is used to temporarily store data when computer's RAM (Random Access Memory) is full. In this article, we will discuss use of swap space in modern Linux systems, its benefits, and how to configure it. What is Swap Space? Swap space is a designated area on a hard ...

Read More

Send stdout to Multiple Commands

Satish Kumar
Satish Kumar
Updated on 23-Mar-2023 809 Views

Introduction When it comes to programming, there are numerous occasions when we need to execute multiple commands and take input or output from a single command. In such cases, sending output of a command to multiple commands becomes an essential task. Sending stdout to multiple commands is one of most frequently used techniques in programming. In this article, we will discuss what stdout is and how we can send it to multiple commands with examples. So, let’s get started. What is stdout? Stdout (Standard Output) is a default stream in Unix-like operating systems, which is used to display output of ...

Read More

Execute Bash Script Directly From a URL

Satish Kumar
Satish Kumar
Updated on 23-Mar-2023 8K+ Views

Introduction Bash scripting is a powerful way of automating repetitive tasks and executing complex commands with a single script. With increasing popularity of web-based technologies, it's now possible to execute Bash scripts directly from a URL. This opens up a whole new world of possibilities for web developers and system administrators. In this article, we'll explore how to execute Bash scripts directly from a URL and provide some examples to help you get started. What is Bash Scripting? Bash scripting is a type of scripting language that is commonly used on Unix-based systems such as Linux and macOS. Bash stands ...

Read More

Commands to Get Min, Max, Median, and Mean of a Dataset

Satish Kumar
Satish Kumar
Updated on 23-Mar-2023 2K+ Views

When working with datasets, it's important to understand characteristics of data. One of most fundamental aspects of a dataset is its central tendency - point around which data tends to cluster. This can be quantified in a number of ways, including minimum, maximum, median, and mean. In this article, we'll explore these different measures of central tendency and show you how to calculate them using a variety of programming languages. What is Minimum of a Dataset? The minimum of a dataset is smallest value in set. This value is useful for understanding lower bounds of data and can help identify ...

Read More

Combine and Execute Multiple Linux Commands

Satish Kumar
Satish Kumar
Updated on 23-Mar-2023 1K+ Views

Linux is a powerful and versatile operating system that has gained immense popularity in computing world. One of most useful features of Linux is ability to combine and execute multiple commands at once, which can significantly improve your productivity and efficiency. In this article, we will discuss various techniques for combining and executing multiple Linux commands, along with examples that demonstrate their practical applications. Combining Commands with Pipes The most common way to combine Linux commands is by using pipes. A pipe is a feature that allows output of one command to be passed as input to another command. syntax ...

Read More
Showing 681–690 of 936 articles
« Prev 1 67 68 69 70 71 94 Next »
Advertisements