Articles on Trending Technologies

Technical articles with clear explanations and examples

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 821 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

How to Kill a Background Process in Linux

Satish Kumar
Satish Kumar
Updated on 24-Mar-2023 15K+ 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
Satish Kumar
Updated on 24-Mar-2023 14K+ 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
Showing 14851–14860 of 61,248 articles
Advertisements