Found 1437 Articles for Linux

Introduction to tee Command in Linux

Satish Kumar
Updated on 24-Mar-2023 15:40:47

286 Views

Introduction The tee command is a commonly used command in Linux. It is a simple yet powerful command that is used to read standard input, then write it to a file, and also to standard output. tee command takes its name from T-splitter used in plumbing, which splits a stream of water into two streams. The tee command is a part of coreutils package in Linux, and it is pre-installed on almost all Linux distributions. tee command is useful for a wide variety of tasks, such as creating backups, debugging scripts, and monitoring system logs. In this article, we will ... Read More

How to Kill a Background Process in Linux

Satish Kumar
Updated on 24-Mar-2023 15:40:12

12K+ Views

Linux is a powerful and flexible operating system that is popular among developers and system administrators. One of benefits of Linux is that it allows users to run multiple processes simultaneously, which can increase productivity and efficiency. However, sometimes a background process may become unresponsive or cause system performance issues. In such cases, it becomes necessary to kill process. In this article, we will discuss how to kill a background process in Linux. Understanding Background Processes Before we dive into process of killing a background process, it's essential to understand what background processes are and why they are important. In ... Read More

Linux ping Command

Satish Kumar
Updated on 24-Mar-2023 15:39:24

13K+ Views

Introduction In world of networking, ability to check if a networked device is reachable or not is a basic requirement. One of tools that can help us achieve this is ping command. ping command is a tool that sends a signal to a specified networked device, and then waits for a response. ping command is available in almost all operating systems, including Linux. In this article, we will explore Linux ping command in detail, including its syntax, options, and examples. What is ping command in Linux? The ping command in Linux is a utility that helps to test connectivity ... Read More

How to find number of RAM Slots in Linux

Satish Kumar
Updated on 24-Mar-2023 15:38:36

7K+ Views

Random Access Memory (RAM) is an essential component of any computer system. It stores data that processor uses frequently to speed up processing of programs and applications. As number of RAM slots available on a computer determines maximum amount of RAM that can be installed, it is important to know number of RAM slots on a computer system. In this article, we will discuss how to find number of RAM slots in Linux. Why do you need to know number of RAM slots in Linux? How to find number of RAM slots in Linux a. Using dmidecode command b. ... Read More

Using gzip and gunzip in Linux

Satish Kumar
Updated on 24-Mar-2023 15:37:37

2K+ Views

Introduction When working in Linux, it's common to encounter large files that need to be compressed for storage or transfer. One popular compression tool available in Linux is gzip, which is used to compress files to save disk space and reduce transfer time. In this article, we'll explore how to use gzip and gunzip in Linux, including how to compress and decompress files, and how to work with compressed archives. What is gzip? Gzip is a compression utility tool used in Linux and other Unix-based systems. It's used to compress and decompress files, reducing their size for storage and transfer. ... Read More

How Do so (Shared Object) Filenames Work in Linux

Satish Kumar
Updated on 24-Mar-2023 15:36:38

2K+ Views

Introduction Linux is an open-source operating system that provides users with a wide range of features and functions. One of essential aspects of Linux is use of shared objects (so) files. Shared objects are files that are used by Linux programs to share code and data between different processes. In this article, we will discuss how shared object filenames work in Linux and provide examples to illustrate concepts. What are Shared Objects (so) Files? Shared objects are a type of file that contains code and data that can be shared between multiple processes in Linux. They are similar to dynamic ... Read More

String Manipulation in Bash on Linux

Satish Kumar
Updated on 24-Mar-2023 15:34:28

1K+ Views

Bash is a shell language used in Linux systems that allows users to interact with system through command-line interface. Bash offers several string manipulation capabilities that can help users manipulate and process text strings. In this article, we will explore various techniques available for string manipulation in Bash. Basic String Operations Bash provides basic operations for manipulating strings. To create a string variable in Bash, you simply assign a value to a variable name − mystring="Hello, world!" To display contents of string variable, you can use echo command − echo $mystring The output will be − Hello, world! ... Read More

How to Reverse Order of Lines in a File in Linux

Satish Kumar
Updated on 24-Mar-2023 15:31:39

5K+ Views

As a Linux user, it is common to come across situations where you need to reverse order of lines in a file. This could be necessary when you want to read a file in a reverse order or when you want to perform certain operations that require content of a file to be in reverse order. In this article, we will explore how to reverse order of lines in a file in Linux. Introduction to Linux Commands for Reversing Order of Lines in a File Linux provides several commands that can be used to reverse order of lines in a ... Read More

Delete Lines in a Text File That Contain a Specific String

Satish Kumar
Updated on 24-Mar-2023 15:30:56

7K+ Views

Introduction Text files are widely used for storing data and information in various fields such as computer science, engineering, healthcare, finance, etc. However, sometimes it is necessary to remove certain lines that contain specific strings or patterns from a text file. This task can be accomplished easily using various programming languages such as Python, Perl, Bash, etc. In this article, we will focus on how to delete lines in a text file that contain a specific string. Prerequisites Before proceeding further, we need to make sure that we have following prerequisites − A text file containing data and information. ... Read More

How to Randomize Lines in a File in Linux

Satish Kumar
Updated on 24-Mar-2023 15:29:57

2K+ Views

In Linux, it is often useful to randomize lines of a file. This can be helpful when working with large datasets or when performing certain operations that require lines of a file to be in a random order. In this article, we will discuss different ways to randomize lines in a file in Linux. Using 'shuf' command The 'shuf' command is a Linux utility that can be used to randomly shuffle lines in a file. To use 'shuf' command, you need to have it installed on your system. Most Linux distributions come with 'shuf' pre-installed, but if it is not ... Read More

Advertisements