Found 2065 Articles for Operating System

Bash Special Variables in Linux

Satish Kumar
Updated on 14-Jul-2023 17:47:17

130 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

Using xz Compression in Linux

Satish Kumar
Updated on 23-Mar-2023 17:43:26

3K+ Views

Introduction In world of computing, data compression has become a crucial tool in many applications. It is used to reduce size of files, improve transfer speed, and save storage space. Linux operating systems come with a wide range of compression tools, including popular gzip and bzip2. However, there is another compression tool that is becoming increasingly popular in Linux world, and that is xz compression. In this article, we will explore what xz compression is, how it works, and how to use it effectively in Linux. What is xz Compression? xz compression is a high-ratio data compression tool that is ... Read More

Guide to Linux screen Command

Satish Kumar
Updated on 23-Mar-2023 17:42:33

268 Views

Introduction When working on a Linux terminal, you may sometimes need to keep several processes running at same time. However, if you close terminal or accidentally disconnect from a remote session, processes will terminate, and you may lose all your progress. This is where Linux screen command comes in handy. Screen is a powerful command-line utility that allows you to create and manage multiple terminal sessions within a single shell window or over SSH connections. It is a handy tool for managing long-running processes or multiple commands, even if you are not physically connected to server. In this article, we ... Read More

Free Command in Linux

Satish Kumar
Updated on 23-Mar-2023 17:41:27

324 Views

Introduction In Linux operating system, there are many commands that can be used to get system information, manage files, and perform various other tasks. One of most commonly used commands is "free" command. This command is used to display amount of free and used memory in system. In this article, we will discuss "free" command in detail, including its usage, options, and examples. What is Free Command? The "free" command is a tool that is used to display amount of free and used memory in Linux system. This command is very useful for monitoring system performance and identifying memory-related issues. ... Read More

How to Pretty-Print XML From Command Line?

Satish Kumar
Updated on 23-Mar-2023 17:38:50

2K+ Views

XML is a commonly used format for exchanging data between systems. It is used extensively in web applications and other areas where data needs to be exchanged between different systems. However, XML can be difficult to read and understand when it is in its raw format. Pretty-printing XML is process of formatting XML in a more readable and understandable way. This article will discuss how to pretty-print XML from command line. What is Pretty-Printing? Pretty-printing is process of formatting data in a more human-readable and understandable way. In case of XML, pretty-printing involves adding whitespace and line breaks to XML ... Read More

Linux Commands – Remove All Text After X

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

128 Views

Introduction Linux commands are essential for operating and managing Linux-based systems. One of most common tasks that Linux administrators and users encounter is manipulating text files. In many cases, they need to remove all text after a certain point in a file, which can be a tedious and time-consuming task if done manually. Luckily, there are Linux commands that can make this process easier and more efficient. In this article, we will explore some of commands that can be used to remove all text after X, and provide examples of their usage. The Sed Command Sed, short for Stream Editor, ... Read More

Using sed to Replace a Multi-Line String

Satish Kumar
Updated on 23-Mar-2023 17:34:56

8K+ Views

Introduction Sed, or Stream Editor, is a powerful command-line tool that allows you to manipulate and transform text files. One of most common tasks that you may need to perform is to replace a multi-line string in a file with another string. In this article, we will explore how to use sed to accomplish this task. Understanding Sed's s Command Sed's s command is primary tool that you will use to perform text replacements. It takes following form − s/pattern/replacement/flags Here, pattern is a regular expression that matches text that you want to replace, replacement is text that you ... Read More

The Linux join Command

Satish Kumar
Updated on 23-Mar-2023 17:33:58

1K+ Views

Introduction Linux is an open-source operating system that provides users with a wide range of utilities and tools for managing and manipulating data. One such tool is join command, which is used to join two different files based on a common field. join command is a very useful utility that can be used to merge or join two files, where one file contains a list of unique fields and other file contains more detailed information about those fields. The Linux join command is a powerful tool that is used to merge two different files based on a common field. command ... Read More

Linux comm Command

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

495 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

301 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

Advertisements