Linux Articles

Page 70 of 134

How to Kill a Background Process in Linux

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 15K+ Views

Linux is a powerful and flexible operating system that 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 the process. In this article, we will discuss how to kill a background process in Linux using various methods. Understanding Background Processes In Linux, a process is a running instance of a program or application. A background process is a process that runs in the background, without requiring user input or interaction. These processes typically ...

Read More

Guide to chgrp Command in Linux

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 9K+ Views

In Linux, the chgrp command is a useful tool for changing group ownership of files and directories. It is an important command for system administrators who need to manage user permissions and access control on a Linux system. The chgrp command is also useful for collaborative work where users need to share files and directories with specific groups. What is chgrp Command in Linux? The chgrp command is used to change group ownership of files and directories in Linux. It changes the group ownership of a file or directory to a specified group. The command is usually used ...

Read More

Remove Blank Lines From a File in Linux

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 15K+ Views

When working with files in Linux, it is common to encounter files that contain blank lines. These blank lines can make it difficult to read the file, especially when dealing with large files. In this article, we will explore different methods to remove blank lines from a file in Linux using various command-line tools. Why Remove Blank Lines from a File? There are several reasons why you may want to remove blank lines from a file. First, it makes the file easier to read, especially when dealing with large files. Second, it can help reduce file size, which ...

Read More

Ifconfig Command in Linux

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 840 Views

The ifconfig command is an essential network administration tool in Linux systems used to configure network interfaces and display network interface parameters. It allows system administrators to view current network configuration, assign IP addresses, enable/disable interfaces, and modify various network settings from the command line. Syntax The basic syntax of the ifconfig command is − ifconfig [interface] [options] Where interface specifies the network interface name (e.g., eth0, wlan0), and options define the actions to perform. If no interface is specified, ifconfig displays information for all available interfaces. Common Options Interface Control ...

Read More

How to Count Number of Files in Linux

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 28K+ Views

Linux provides several powerful methods to count the number of files in a directory. This is an essential skill for system administrators, developers, and Linux users who need to manage large datasets, perform system maintenance, or analyze directory contents. Understanding these techniques helps you efficiently handle file management tasks from the command line. Method 1: Using ls Command with grep and wc The ls command combined with grep and wc provides a reliable way to count regular files while excluding directories and special files. ls -l | grep "^-" | wc -l This command ...

Read More

Linux man Command

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 2K+ Views

The man command in Linux is an essential tool for anyone working with the command line interface. It stands for "manual" and provides a built-in help system that offers detailed documentation about commands, system calls, library functions, and more. This comprehensive reference tool is crucial for understanding Linux command syntax, options, and usage. How the man Command Works The man command displays manual pages (often called "man pages") stored on your system. To use it, simply type man followed by the name of the command or topic you want to learn about. man ls man grep ...

Read More

Print Linux Directory Structure as a Tree

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 3K+ Views

Linux is an open-source operating system that offers various powerful command-line tools to manage files and directories. One such essential tool is the tree command, which displays the directory structure of a Linux system in a hierarchical tree-like format. This visual representation makes it easier to understand the nested structure of directories and files. What is the tree Command? The tree command is a command-line utility that displays the directory structure of a file system in a tree-like format. It shows the hierarchical relationship between directories, sub-directories, and files using ASCII characters to create visual branches. The tree ...

Read More

How to Join Multiple Lines Into One on Linux

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 12K+ Views

When working with Linux or any command-line interface, you may come across situations where you need to combine multiple lines of text into a single line. This can be helpful for formatting or readability purposes, and it can also be necessary for certain scripting tasks. In this article, we will discuss several methods for joining multiple lines into one on Linux, including use of command-line tools like sed, awk, and paste. We will provide examples of each method to demonstrate how they can be used in different situations. Method 1: Using "tr" Command One of the simplest ...

Read More

Process Multiple Input Files Using Awk

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 3K+ Views

Awk is a powerful text processing tool widely used by developers, system administrators, and analysts to manipulate data in various ways. It can process text files, extract data, and transform it into different formats. One of its key features is the ability to process multiple input files simultaneously, making it ideal for batch processing tasks. How Awk Handles Multiple Input Files When processing multiple input files, Awk treats each file as a separate stream of input data. It reads each file in sequence, processing the input data from each file in turn. This allows you to process files ...

Read More

The uniq Command in Linux

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 2K+ Views

The uniq command in Linux is a powerful text processing utility used to filter out duplicate lines from sorted text files. It works by comparing adjacent lines and removing consecutive duplicates, making it an essential tool for data cleaning and text manipulation tasks. Syntax The basic syntax of the uniq command is straightforward: uniq [options] [input_file] [output_file] Where options are command-line switches that modify the behavior, input_file is the file to process (defaults to stdin), and output_file is where results are written (defaults to stdout). Important Note Critical: The uniq command only ...

Read More
Showing 691–700 of 1,338 articles
« Prev 1 68 69 70 71 72 134 Next »
Advertisements