Mukul Latiyan has Published 474 Articles

How to match two strings that are present in one line with grep in Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 30-Jul-2021 09:03:21

930 Views

In order to be able to grep two strings that exists on the same line in Linux command line, we must first understand what a grep command is and how to use it on Linux.The grep command in Linux is used to filter searches in a file for a particular ... Read More

How to list running screen sessions on Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 30-Jul-2021 09:02:15

3K+ Views

Screen or sometimes also known as GNU Screen, is a terminal multiplexer. What it means is that it allows you the privilege to start a screen session and then open any number of windows inside that session.It might also be interesting to note that a process that is running in ... Read More

How to list down all the available commands and aliases on Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 30-Jul-2021 09:01:18

10K+ Views

Linux provides us with a huge amount of commands along with their aliases that we can make use of. Although these commands serve different purposes we can still make use of all these commands anywhere we like in the terminal.There are different ways with which we can interact with Linux ... Read More

How to list all users in a Linux group?

Mukul Latiyan

Mukul Latiyan

Updated on 30-Jul-2021 08:59:51

976 Views

In order to be able to understand the command to list all the users that are present in a Linux group, you first must be able to print all the users present.For that there are many different possible ways, I’ll make use of the compgen command. The compgen command is a ... Read More

How to limit the number of results returned from grep in Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 30-Jul-2021 08:58:49

837 Views

In order to be able to grep limit the number of results returned from grep command in Linux, we must first understand what a grep command is and how to use it on Linux.The grep command in Linux is used to filter searches in a file for a particular pattern ... Read More

How to know what the ‘errno’ means in Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 30-Jul-2021 08:54:44

954 Views

Errno is a value that you get when the command you run returns the value of the call indicating an error. There is a header file that defines the integer variable errno, which is set by the system calls and some library function in the event of an error to ... Read More

How to iterate over a list of files with spaces in Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 30-Jul-2021 08:49:46

380 Views

In order to iterate over a list of files we will need to make use of the find command that Linux provides us with.Linux find statement is one of the most widely used statements that allows us to walk a file hierarchy. It is used to mostly find a specific ... Read More

How to invert a grep expression on Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 30-Jul-2021 08:47:14

9K+ Views

In order to be able to invert a grep expression on Linux command line, we must first understand what a grep command is and how to use it on Linux.The grep command in Linux is used to filter searches in a file for a particular pattern of characters. It is ... Read More

How to install the latest version of Git on CentOS 7.x/6.x?

Mukul Latiyan

Mukul Latiyan

Updated on 30-Jul-2021 08:45:33

752 Views

Installing the latest version of Git on CentOS can be done in many ways. Below are three approaches for the same.Approach 1Commandsyum install epel-release yum remove git rpm -U https://centos7.iuscommunity.org/ius-release.rpm yum install git2u git --versionOutputimmukul@192 lib % git --version git version 2.29.2Approach 2Commandsyum install -y curl-devel expat-devel gettext-devel openssl-devel zlib-devel ... Read More

How to insert a text at the beginning of a file in Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 30-Jul-2021 08:44:30

2K+ Views

In order to insert text at the beginning of a text file we must be familiar with either the sed command as the sed commands can be used to solve the above problem.Let’s first explore the sed command, which is short for stream editor. This command is used to perform ... Read More

Advertisements