Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Open Source Articles
Page 101 of 123
How to swap two files in Linux command line?
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 to /etc/passwd.backup. In other words, exchange content of /etc/passwd with /etc/passwd.backup and /etc/passwd.backup with /etc/passwd. The Linux operating system's useful tools and commands enable you to achieve/accomplish a wide range of file manipulation goals. For one reason or another, you may need to swap two files in the Linux ...
Read MoreHow to encrypt a large file using openssl?
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 of encryption. Encryption is a method of encoding a message to protect its contents from prying eyes. There are two types in general − Symmetric or secret-key encryption Asymmetric or public-key encryption Secret-key encryption uses the same key for encryption and decryption, whereas publickey encryption uses separate keys ...
Read MoreHow to Add a String After Each Line in a File in Linux?
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 follows will be used throughout this article − pi@TTP:~ $ touch language.txt Example A file will be created with the name of language.txt. pi@TTP:~ $ cat > language.txt With the help of cat command with > we can insert data into the file. If we open the file language.txt you ...
Read MoreDocker Container Network Namespace Is Invisible
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 virtualization, in which an application and all its dependencies and libraries are packaged into a single container; it can run in any computing environment. When the OS kernel and all necessary libraries and dependencies are included in the container, anyone working on the application can use only the container to ...
Read MorecURL Command Without Using Cache
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 cache and generate a new response from the server. Caching can occur on the client side (browser cache) or the server side. When using the cURL command, remember that it is only an HTTP client and does not cache any requests on the client side. As a result, any caching ...
Read MoreCreating a Hex Dump of a File
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 hex dump will be covered in this article. We will learn to create a hex dump of a file. To utilise as a model for this article, let's generate an ASCII text file. $ cat >> example.txt This is our sample text in the file. We will convert it ...
Read MoreConvert Hex to ASCII Characters in the Linux Shell
Introduction If a numbering system is represented in base 16 then it is considered to be hexadecimal. In this article we will understand to convert Hex to ASCII in the Linux Shell. The hexadecimal system uses a combination of digits and alphabetic characters, and it looks like this −0 1 2 3 4 5 6 7 8 9 A B C D E F Large digital systems are best suited for a hexadecimal numbering system since it can store and express long binary data. Because a total of 16 symbols (both digital and alphabetic, ranging from 0 to F) ...
Read MoreDifference between Open Source and Proprietary Software
Technology is something that has a significant impact on each and every one of our lives. Due to the large number of devices that we all interact with on a daily basis, we are exposed to a wide variety of software. We are able to complete a variety of tasks with the assistance of software.Software is an essential component that grants its users the ability to operate and carry out any designated activity. The difference between open-source software and proprietary software is a significant one in the software industry. Read through this article to find out how an open-source software ...
Read MoreBest Command Line HTTP Client for Linux
In this tutorial, we will explore some of the most commonly used and famous HTTP clients that are present in Linux. A HTTP Client is a software that is mainly used to allow us to download files from the Internet. The primary reason for using HTTP clients is generally to download files, but these can also be used in case we want to debug or interact with a web server or multiple web servers.Now, let's consider the most famous HTTP Clients that are used.HTTPieWith the name that almost resembles of the famous web protocol (i.e., HTTP), HTTPie, is command line ...
Read MoreHow to Find Out File Types in Linux
When it comes to Linux operating system, everything in general can be considered as a file. In UNIX, in total, there are seven standard file types −FIFO specialBlock specialCharacter specialSocketRegularDirectorySymbolic linkWhen it comes to Files, these can be mainly categorized into the following categories −Regular FilesDirectory FilesSpecial FilesThe simplest way to find out what a particular file is in an operating system is by looking at what kind of extension that particular file has. The extensions can be '.txt', '.py', '.go', etc. If a particular file does not have any extension in Linux, then we basically call that file as ...
Read More