Found 1383 Articles for Open Source

Linux tar Command

Pradeep Jhuriya
Updated on 07-Nov-2023 04:39:46

61K+ Views

Introduction The tar command in Linux is one of the most essential commands when it comes to file management. It is short for Tape Archive and is used to create and extract archive files. An archive file is a compressed file that contains one or more files bundled together for more accessible storage and portability. In this guide, we'll demonstrate, through examples, how to create, list, edit, and extract tar archive files, and cover some of the more commonly used tar command options. Syntax of the tar command The tar command accepts the following syntax − $ $ tar [options][archive-file] ... Read More

Is There a Way to ‘uniq’ by Column on Linux?

Pradeep Jhuriya
Updated on 13-Feb-2023 17:13:44

2K+ Views

Introduction On the Linux operating system, the "uniq" command is used to remove duplicate lines from a sorted file. However, sometimes you may need to remove duplicates based on a specific column, rather than the entire row. This becomes particularly useful when working with column-based input files, such as CSV files. In this article, we'll explore several ways to do this per-column "uniq'ing" on Linux. Method 1: Use sort command The sort command is a simple and effective way to sort rows by a specific field and remove duplicates from the sort result. For duplicates, only the first instance will ... Read More

How to Change Terminal Output Color in Linux?

Pradeep Jhuriya
Updated on 13-Feb-2023 17:12:32

20K+ Views

Introduction The Linux Terminal is a powerful tool that allows users to interact with the operating system through the command line. However, the terminal's default output color can be dull and unattractive. In this article, we will discuss several ways to change the terminal output color in Linux. We'll cover the use of different commands and tools that can be used to customize the terminal's color scheme, as well as some examples of how to use them. This guide is intended for Linux users who want to improve their terminal experience by changing the output color. Using the "LS" command ... Read More

The traceroute Command in LINUX

Pradeep Jhuriya
Updated on 26-Feb-2024 11:10:38

4K+ Views

Introduction The “traceroute” command is a network diagnostic tool that allows users to track the route that a packet takes from the source computer to the destination. This tool is widely used by network administrators and engineers to troubleshoot network issues such as high latency, packet loss, and connectivity problems. Traceroute works by sending packets with gradually increasing Time-To-Live (TTL) values to the destination. As each packet reaches a router, the router decrements the TTL value by 1 and discards the packet if the TTL value becomes zero. The traceroute command listens for error messages sent back by the routers ... Read More

Shutdown and Reboot Linux Systems From the Terminal

Pradeep Jhuriya
Updated on 13-Feb-2023 17:09:07

577 Views

Introduction In this article, we will discuss how to shut down and restart Linux systems from the terminal. The ability to shut down and restart a system from the command line can be useful in a variety of situations, such as when the GUI is unavailable or when automating tasks via Linux shell scripts. Overview Linux is a fairly robust operating system, and as such, rebooting Linux servers is rarely necessary. However, sometimes there are reasons why you need to restart your system. For example, if we are running Linux on our personal computer, restarting and shutting down the system ... Read More

ARP Commands

Satish Kumar
Updated on 31-Jan-2023 09:20:26

12K+ Views

ARP (Address Resolution Protocol) is a networking protocol that is used to map a network address, such as an IP address, to a physical (MAC) address. It is a fundamental building block of the Internet Protocol (IP) and is used to allow devices to communicate with each other on a network. In this article, we will discuss the various ARP commands and their usage, with examples to help you better understand the concept. ARP Command: arp The arp command is used to display or modify the ARP cache on a computer. The ARP cache is a table that stores the ... Read More

What is the purpose of VOLUME in Dockerfile?

Hemant Sharma
Updated on 14-Sep-2023 14:04:20

31K+ Views

Introduction Docker is a popular containerization platform that allows users to package and deploy applications in a standardized and isolated environment. Docker uses a file called a Dockerfile to specify the instructions for building and running a Docker container. One important element of a Dockerfile is the VOLUME instruction, which specifies a mount point for a volume in the container. In this article, we will explore the purpose and usage of volumes in a Dockerfile. Definition of volume in Dockerfile In the context of Docker, a volume is a persistent storage location that exists outside of the container. Volumes ... Read More

Protect the Docker daemon socket

Hemant Sharma
Updated on 30-Jan-2023 10:06:29

436 Views

Introduction The Docker daemon is a background process that manages Docker containers and is responsible for the creation, execution, and deletion of containers. One key component of the Docker daemon is the Docker daemon socket, which is used to communicate with the daemon from the Docker CLI and other applications. It is important to secure the Docker daemon socket to prevent unauthorized access to the Docker daemon and to protect sensitive information that may be exposed through the socket. In this article, we will discuss the location and default permissions of the Docker daemon socket, potential security risks, and best ... Read More

How to run splash using Docker toolbox?

Hemant Sharma
Updated on 30-Jan-2023 10:01:12

304 Views

Introduction Splash is a powerful tool for rendering JavaScript-based websites, making it an essential tool for web scraping and data extraction. In this tutorial, we will show you how to run Splash using Docker Toolbox, an older version of Docker that is no longer being maintained but is still available for download. Prerequisites Before you can get started, you will need to install Docker Toolbox on your machine. Docker Toolbox is a version of Docker that is designed to run on older systems and/or systems without native virtualization. It is available for Windows, macOS, and Linux. Follow the steps ... Read More

How to reference embedded Docker resource files using file path URL?

Hemant Sharma
Updated on 30-Jan-2023 10:00:19

2K+ Views

Introduction Embedded Docker resource files are files included in a Docker image rather than stored on the host file system or an external network location. These files can be useful for including configuration files, scripts, or other resources that are needed by the applications or processes running in the Docker container. You can reference embedded Docker resource files in several different ways, including using file path URLs. This article explains what file path URLs are and how to use them to reference embedded Docker resource files. We will also provide tips and examples to help you use file path URLs ... Read More

Advertisements