Introduction to Bash Array in Linux

Satish Kumar
Updated on 24-Mar-2023 15:29:24

2K+ Views

Introduction Bash is a popular command-line shell used in Linux and other Unix-based operating systems. One of powerful features of Bash is its support for arrays. An array is a collection of values that can be accessed using an index. In this article, we will discuss basics of Bash arrays and how they can be used in Linux. What is a Bash Array? A Bash array is a variable that can hold multiple values. values are stored in consecutive memory locations and can be accessed using an index. index of first element in array is 0, and index of last ... Read More

Using Docker Compose with Private Repositories

Satish Kumar
Updated on 24-Mar-2023 15:28:00

6K+ Views

Introduction Docker Compose is a tool for defining and running multi-container Docker applications. It allows developers to define their application stack as a YAML file, making it easy to spin up complex environments with just a few commands. However, using private repositories with Docker Compose can be tricky. In this article, we'll explore how to use Docker Compose with private repositories, covering different authentication methods and their examples. What are Private Repositories? Docker images can be stored in private or public repositories. Public repositories are open to everyone, while private repositories require authentication to access them. Private repositories are often ... Read More

Understanding Time Command in Linux

Satish Kumar
Updated on 24-Mar-2023 15:27:06

601 Views

As a Linux user, you must have come across time command. It is a simple yet powerful command that allows you to measure execution time of a process. Whether you are a developer, system administrator, or just a curious user, understanding how time command works is essential for optimizing your workflow and identifying bottlenecks in your system. In this article, we will dive deep into time command in Linux and explore its various use cases. What is time command? The time command is a Linux utility that measures time it takes for a given command to execute. command accepts a ... Read More

Introduction to fzf Command in Linux

Satish Kumar
Updated on 24-Mar-2023 15:26:09

515 Views

Introduction Linux command-line interface is one of most powerful tools available to system administrators and developers for managing and working with their systems. One of challenges with CLI is that it requires memorizing many commands and options. However, there are tools that make it easier to navigate command line, such as fzf command. In this article, we will introduce fzf command, how it works, and its features. What is fzf? fzf is a command-line fuzzy finder, which allows you to easily search through files, directories, and other types of data. It is a highly customizable tool that can be used ... Read More

Linux Source Command

Satish Kumar
Updated on 24-Mar-2023 15:24:43

29K+ Views

Introduction The Linux source command is an essential tool for Linux users and administrators. It is used to execute a script file in current shell environment, and it allows you to modify current shell environment in same way that you would if you had typed commands manually. In this article, we will explore Linux source command and its various applications. What is Linux source command? The Linux source command is a shell command that reads and executes commands from a file in current shell environment. file is typically a shell script, but it can also be any text file containing ... Read More

Process Memory Management in Linux

Satish Kumar
Updated on 24-Mar-2023 15:23:51

9K+ Views

Process memory management is a crucial aspect of any operating system. In Linux, memory management system is designed to efficiently manage memory usage, allowing processes to access and use memory they require while preventing them from accessing memory they do not own. In this article, we will discuss process memory management in Linux in detail, covering various aspects such as memory allocation, virtual memory, memory mapping, and more. Memory Allocation Memory allocation is process of assigning memory to a process or program. In Linux, kernel provides two main methods for memory allocation: static and dynamic. Static Memory Allocation Static memory ... Read More

Linux Job Control: Disown and Nohup

Satish Kumar
Updated on 24-Mar-2023 15:23:28

803 Views

Introduction Linux is an open-source operating system that is widely used in industry. One of most notable features of Linux is its command-line interface (CLI), which provides a lot of flexibility and power to users. When working in command line, it is common to run multiple commands concurrently. However, sometimes, you may want to control how these commands are executed and how they interact with each other. This is where job control comes in. Job Control Job control refers to ability to manage and manipulate running processes in a Linux system. It allows users to start, stop, pause, resume, and ... Read More

Read Random Line from a File in Linux

Satish Kumar
Updated on 24-Mar-2023 15:20:44

2K+ Views

In Linux, reading a random line from a file can be a useful task in various scenarios. For example, when you want to select a random word from a dictionary or randomly select a line from a log file for analysis purposes. There are several ways to read a random line from a file in Linux. In this article, we will explore different methods to achieve this task along with their pros and cons. Method 1: Using shuf Command The shuf command is a simple and efficient way to read a random line from a file in Linux. shuf command ... Read More

Call an External Program Using AWK

Satish Kumar
Updated on 24-Mar-2023 15:20:03

909 Views

Introduction Awk is a powerful text processing tool that can be used to automate various tasks such as data manipulation, filtering, and reporting. One of interesting features of awk is its ability to call external programs from within script. In this article, we will explore how to call an external program using awk. Understanding System() Function The system() function is used to execute external commands from within awk. syntax of system() function is as follows − system(command) The command argument is external command that we want to execute. When system() function is executed, awk passes command argument to ... Read More

Apply Different Titles for Subplots Using Plotly in Python

Atharva Shah
Updated on 24-Mar-2023 15:17:39

5K+ Views

Introduction Subplot creation is one of several tools for data visualization provided by the Python library Plotly. A big narrative can be broken up into multiple smaller ones using subplots. Sometimes, in order to give the main story greater depth and consistency, it may be essential to give each subplot its own title. Syntax Customizing subplot titles in plot grids is made possible through the usage of the subplot_titles parameter, which enables us to create unique titles for each plot. The make_subplots() function is essentially a factory method that allows us to establish a plot grid with a designated number ... Read More

Advertisements