Found 1383 Articles for Open Source

Linux comm Command

Satish Kumar
Updated on 23-Mar-2023 17:32:12

531 Views

Introduction Linux is an open-source operating system that provides a wide range of powerful and flexible tools for managing and manipulating files and data. One of essential tools in Linux is "comm" command, which is used to compare two sorted files line by line. This command can be used to identify common lines or differences between files. In this article, we will discuss comm command, its syntax, and examples. Syntax of comm Command The syntax of comm command is as follows − comm [OPTION]... FILE1 FILE2 Here, FILE1 and FILE2 are two files that need to be compared. options ... Read More

Display System Information in CLI with Neofetch

Satish Kumar
Updated on 04-Apr-2023 16:26:37

326 Views

As a computer user, it's important to know specifications and operating system information of machine you're working with. This information can be helpful in troubleshooting issues or optimizing system for better performance. While there are many graphical user interface (GUI) tools that can display this information, there are also command-line interface (CLI) tools that can do same job. One such tool is Neofetch, a CLI system information tool that can display a variety of information about your system. In this article, we'll explore Neofetch and how it can be used to display system information in CLI. What is Neofetch? Neofetch ... Read More

How to Evaluate Arithmetic Expressions in Bash?

Satish Kumar
Updated on 23-Mar-2023 17:17:21

953 Views

Bash is a powerful programming language used for writing shell scripts on Linux and other Unix-based systems. One of most common tasks in shell scripting is evaluating arithmetic expressions. In this article, we will discuss how to evaluate arithmetic expressions in Bash and explore some examples. Introduction Arithmetic expressions are mathematical calculations performed on numerical values. In Bash, arithmetic expressions are evaluated using expr command, which evaluates a string as an arithmetic expression and returns result. syntax for expr command is as follows − $ expr expression Here, expression is arithmetic expression to be evaluated. For example, to evaluate ... Read More

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

Satish Kumar
Updated on 23-Mar-2023 17:15:22

1K+ 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
Updated on 23-Mar-2023 17:12:17

144 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
Updated on 23-Mar-2023 17:11:29

13K+ 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
Updated on 23-Mar-2023 17:09:32

573 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

The Use of Swap Space in Modern Linux Systems

Satish Kumar
Updated on 23-Mar-2023 16:53:57

799 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

Sudo Command in Linux

Satish Kumar
Updated on 23-Mar-2023 16:51:23

474 Views

Introduction Linux is a powerful operating system that provides users with a command-line interface to perform various tasks. One of essential tools in Linux is sudo command. sudo command allows users to execute commands as a superuser or another user with elevated privileges. This article will explore sudo command in Linux, its usage, and different examples of its application. Understanding Sudo Command Sudo stands for "SuperUser Do, " and it is a powerful command in Linux that allows users to execute commands with elevated privileges. Sudo command is used to run a command as a superuser or another user with ... Read More

Send stdout to Multiple Commands

Satish Kumar
Updated on 23-Mar-2023 16:50:37

365 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

Advertisements