Vishesh Kumar has Published 11 Articles

How to Get the most recent file in a directory in Linux?

Vishesh Kumar

Vishesh Kumar

Updated on 21-Nov-2022 10:29:07

We can use a variety of commands to obtain various types of information about files and folders in a directory. In this article, we'll look at commands for finding the most recently updated or modified file in a directory. There are several ways to find out the most recent file ... Read More

How to Merge PDF Files in Bash?

Vishesh Kumar

Vishesh Kumar

Updated on 21-Nov-2022 10:21:51

Introduction On various occasions, we desired to combine PDF files to organise them, lessen clutter, or share them with others. Linux provides a variety of utilities for merging pdf files. Some of the most popular ones are listed below − pdfunite pdftk gs convert qpdf These application tools ... Read More

How to write Stdout to a file with colors?

Vishesh Kumar

Vishesh Kumar

Updated on 21-Nov-2022 10:20:02

Introduction The tools we can use to send standard output to files while maintaining their colours will be covered in this post. This is especially helpful while troubleshooting because it makes it simpler to scan the output logs thanks to the coloured areas. By Using Grep A file can be ... Read More

How to swap two files in Linux command line?

Vishesh Kumar

Vishesh Kumar

Updated on 21-Nov-2022 10:17:04

As system administrators or DevOps functions, many times we come with the requirement to exchange files content, for example, suppose you have a backup file of /etc/passwd by name /etc/password.backup and you want to restore the same in /etc/passwd but you also want current content of /etc/password should be copied ... Read More

How to encrypt a large file using openssl?

Vishesh Kumar

Vishesh Kumar

Updated on 21-Nov-2022 10:15:16

OpenSSL OpenSSL is a valuable tool for general-purpose cryptography and secure communication, and it does various tasks, including encrypting files. Most Linux distributions install the device by default; if not, you can install it using your package manager. Before encrypting a file using OpenSSL, let us have a basic understanding ... Read More

How to Add a String After Each Line in a File in Linux?

Vishesh Kumar

Vishesh Kumar

Updated on 21-Nov-2022 10:08:33

Introduction We occasionally need to make changes to files quickly, preferably from the command line. One example is adding a string to the end of each line of a file. In this article, we'll look at several ways to accomplish this using various Linux commands. The sample file language.txt that ... Read More

How to Find Open Port in Linux?

Vishesh Kumar

Vishesh Kumar

Updated on 21-Nov-2022 09:54:12

Before explaining how to list all open network ports in Linux, we will briefly discuss ports in computer networking. In computer networking and software terms, a port is a logical entity representing a network application. A port is a term used to recognize a network service by a number. The ... Read More

Docker Container Network Namespace Is Invisible

Vishesh Kumar

Vishesh Kumar

Updated on 21-Nov-2022 09:50:49

This article will look at a problem with the network namespace file in a Docker container. We'll examine why the network namespace file is invisible to the ip netns ls command. Before moving ahead, let's have a brief overview of Docker, Containers and Network Namespace Containerization Containerization is similar to ... Read More

cURL Command Without Using Cache

Vishesh Kumar

Vishesh Kumar

Updated on 21-Nov-2022 09:45:02

Introduction cURL (Client URL) is a command-line tool. It allows data to be transferred to or from a server without requiring user interaction by utilising the supported libcurl library. cURL can also be used to troubleshoot network connections. In some cases, we may need to send requests that bypass the ... Read More

Creating a Hex Dump of a File

Vishesh Kumar

Vishesh Kumar

Updated on 21-Nov-2022 09:42:30

Introduction Hexdump shows the binary file contents in hexadecimal, decimal, octal, or ASCII form. It is an inspection tool that is also useful for programming, reverse engineering, and data recovery. It represents the content of a file in hexadecimal form. The various tools we can use to generate a file's ... Read More

Advertisements