Articles on Trending Technologies

Technical articles with clear explanations and examples

The uniq Command in Linux

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

Introduction The Unix operating system is known for its powerful command-line interface and an extensive collection of tools. Among these tools, "uniq" command is a popular utility that is used to filter out duplicate lines in text files. This command is often used in conjunction with other command-line tools and shell scripts to manipulate data and automate tasks. In this article, we will explore "uniq" command in detail, including its syntax, options, and examples of its usage. Syntax The syntax of "uniq" command is simple and easy to understand. basic syntax of command is as follows − uniq [options] [input_file] ...

Read More

Process Multiple Input Files Using Awk

Satish Kumar
Satish Kumar
Updated on 24-Mar-2023 3K+ Views

Introduction Awk is a powerful text processing tool that is widely used by developers, system administrators, and analysts to manipulate data in a variety of ways. It is a versatile tool that can process text files, extract data, and transform it into a variety of formats. One of key features of Awk is its ability to process multiple input files at same time, making it ideal for batch processing tasks. In this article, we will explore how to use Awk to process multiple input files and examine several examples of how it can be used in practice. Using Awk with ...

Read More

How to Join Multiple Lines Into One on Linux

Satish Kumar
Satish Kumar
Updated on 24-Mar-2023 12K+ Views

Introduction 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 simplest ways to join ...

Read More

Print Linux Directory Structure as a Tree

Satish Kumar
Satish Kumar
Updated on 24-Mar-2023 3K+ Views

Introduction Linux is an open-source operating system that has gained a lot of popularity among developers and system administrators. It offers various powerful tools and commands to manage files, directories, and other resources on system. One such command that comes in handy is tree command, which helps in displaying directory structure of system in a tree-like format. In this article, we will explore tree command and its usage in detail. What is tree command? The tree command is a command-line tool that displays directory structure of a file system in a tree-like format. It shows nested structure of directories, sub-directories, ...

Read More

How to Use cd Command in Bash Scripts

Satish Kumar
Satish Kumar
Updated on 24-Mar-2023 17K+ Views

The cd command is one of most fundamental commands in Bash shell. It is used to change current working directory to a specified location. This command is particularly useful when navigating through file system, especially in situations where you need to access files or directories in a different location. In this article, we will explore how to use cd command in Bash scripts. What is cd Command? Before diving into usage of cd command, it is important to understand what it does. cd command is a built-in command in Bash that is used to change current working directory. When you ...

Read More

Linux man Command

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

Introduction In world of Linux, man command is an essential tool for anyone who is serious about using command line interface. It stands for "manual", and it is a built-in help system that provides users with detailed information on how to use various Linux commands. In this article, we will dive deep into Linux man command, exploring its functionality and usefulness, as well as providing examples of how to use it. Overview of Linux man Command The Linux man command is a built-in help system that provides users with detailed information about commands, utilities, and functions on Linux operating system. ...

Read More

How to Count Number of Files in Linux

Satish Kumar
Satish Kumar
Updated on 24-Mar-2023 28K+ Views

Introduction Linux is a popular open-source operating system used by millions of users worldwide. One of most common tasks in Linux is to count number of files in a directory. Counting number of files is an essential operation when dealing with large data sets and is also useful when cleaning up system or performing other maintenance tasks. In this article, we will discuss various methods to count number of files in Linux, along with examples. Method 1: Using ls command with option -l The 'ls' command is one of most commonly used commands in Linux to list files in a ...

Read More

Ifconfig Command in Linux

Satish Kumar
Satish Kumar
Updated on 24-Mar-2023 823 Views

Introduction ifconfig command is an important tool used in Linux operating system for network administration. It is a command line utility that is used to configure network interfaces and display network interface parameters. In this article, we will discuss ifconfig command in detail, including its syntax, options, and usage. Syntax of ifconfig Command The syntax of ifconfig command is as follows − ifconfig [interface] [options] In above syntax, "interface" parameter specifies network interface for which you want to configure or display information. If you do not specify any interface, command will display information for all available interfaces. The "options" ...

Read More

Remove Blank Lines From a File in Linux

Satish Kumar
Satish Kumar
Updated on 24-Mar-2023 15K+ Views

Introduction When working with files in Linux, it is common to come across files that contain blank lines. These blank lines can make it difficult to read file, especially when dealing with large files. In this article, we will discuss different methods to remove blank lines from a file in Linux. 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 file easier to read, especially when dealing with large files. Second, it can help reduce file size, which can be beneficial when transferring or ...

Read More

Guide to chgrp Command in Linux

Satish Kumar
Satish Kumar
Updated on 24-Mar-2023 9K+ Views

Introduction In Linux, 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. chgrp command is also useful for collaborative work where users need to share files and directories with specific groups. In this article, we will explore chgrp command and its usage in detail. What is chgrp Command in Linux? The chgrp command is used to change group ownership of files and directories in Linux. chgrp command changes group ownership of a file or ...

Read More
Showing 25861–25870 of 61,248 articles
Advertisements